Skip to content

Commit badf189

Browse files
committed
Use Uint8Array in place of Buffer in Parser
1 parent 418ab95 commit badf189

14 files changed

+338
-332
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
22

3+
**5.3.0 / 2025-10-03**
4+
- Use `Uint8Array` in place of `Buffer` in Parser
5+
36
**5.2.5 / 2025-06-08**
47
- Inform user to use [fxp-cli](https://github.com/NaturalIntelligence/fxp-cli) instead of in-built CLI feature
58
- Export typings for direct use

docs/CHECK_LIST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Pre release
55
* [ ] `package-lock.json` reflects the right version : `npm install`
66
* [ ] Browser bundle are generated `npm run bundle`
77
* [ ] TS and CJS typings are updated
8-
- fxp.d.cjs
8+
- fxp.d.cts
99
- fxp.d.ts
1010
* [ ] ReadMe file or docs are updated for any change, user list, performance report, links etc.
1111
* [ ] Single test is not running `fit`

lib/fxp.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/fxp.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ type ValidationError = {
406406

407407
declare class XMLParser {
408408
constructor(options?: X2jOptions);
409-
parse(xmlData: string | Buffer ,validationOptions?: validationOptions | boolean): any;
409+
parse(xmlData: string | Uint8Array ,validationOptions?: validationOptions | boolean): any;
410410
/**
411411
* Add Entity which is not by default supported by this library
412412
* @param entityIdentifier {string} Eg: 'ent' for &ent;

lib/fxp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxp.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fast-xml-parser",
3-
"version": "5.2.5",
3+
"version": "5.3.0",
44
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
55
"main": "./lib/fxp.cjs",
66
"type": "module",

0 commit comments

Comments
 (0)