Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NaturalIntelligence/fast-xml-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.9
Choose a base ref
...
head repository: NaturalIntelligence/fast-xml-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.1.0
Choose a head ref
  • 5 commits
  • 8 files changed
  • 2 contributors

Commits on Apr 2, 2025

  1. feat: declare package as side-effect free (#738)

    This enables bundlers like webpack to perform better tree-shaking.
    tbouffard authored Apr 2, 2025

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    lukekarrys Luke Karrys
    Copy the full SHA
    0eac76b View commit details
  2. fix cjs build mode

    amitguptagwl committed Apr 2, 2025
    Copy the full SHA
    81949ad View commit details
  3. Copy the full SHA
    a917fdc View commit details
  4. update checklist

    amitguptagwl committed Apr 2, 2025
    Copy the full SHA
    26ce477 View commit details
  5. update package detail

    amitguptagwl committed Apr 2, 2025
    Copy the full SHA
    0272fd5 View commit details
Showing with 17 additions and 214 deletions.
  1. +6 −0 CHANGELOG.md
  2. +3 −1 docs/CHECK_LIST.md
  3. +1 −207 lib/fxp.cjs
  4. +1 −1 lib/fxp.d.cts
  5. +2 −2 package-lock.json
  6. +2 −1 package.json
  7. +1 −1 src/fxp.d.ts
  8. +1 −1 webpack.cjs.config.js
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,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>

**5.1.0 / 2025-04-02**
- feat: declare package as side-effect free (#738) (By [Thomas Bouffard](https://github.com/tbouffard))
- fix cjs build mode
- fix builder return type to string
-

**5.0.9 / 2025-03-14**
- fix: support numeric entities with values over 0xFFFF (#726) (By (Marc Durdin)[https://github.com/mcdurdin])
- fix: update strnum to fix parsing 0 if skiplike option is used
4 changes: 3 additions & 1 deletion docs/CHECK_LIST.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,9 @@ Pre release
* [ ] Added/updated documentation for new properties/features
* [ ] `package-lock.json` reflects the right version : `npm install`
* [ ] Browser bundle are generated `npm run bundle`
* [ ] TS typings are updated
* [ ] TS and CJS typings are updated
- fxp.d.cjs
- fxp.d.ts
* [ ] ReadMe file or docs are updated for any change, user list, performance report, links etc.
* [ ] Single test is not running `fit`
* [ ] `npm run checkReadiness` is used to check the files being published
208 changes: 1 addition & 207 deletions lib/fxp.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/fxp.d.cts
Original file line number Diff line number Diff line change
@@ -415,7 +415,7 @@ declare class XMLValidator{

declare class XMLBuilder {
constructor(options?: XmlBuilderOptions);
build(jObj: any): any;
build(jObj: any): string;
}

declare namespace fxp {
4 changes: 2 additions & 2 deletions package-lock.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "fast-xml-parser",
"version": "5.0.9",
"version": "5.1.0",
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
"main": "./lib/fxp.cjs",
"type": "module",
"sideEffects": false,
"module": "./src/fxp.js",
"types": "./src/fxp.d.ts",
"exports": {
2 changes: 1 addition & 1 deletion src/fxp.d.ts
Original file line number Diff line number Diff line change
@@ -414,5 +414,5 @@ export class XMLValidator{
}
export class XMLBuilder {
constructor(options?: XmlBuilderOptions);
build(jObj: any): any;
build(jObj: any): string;
}
2 changes: 1 addition & 1 deletion webpack.cjs.config.js
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const __dirname = dirname(__filename);
export default [
{
entry: "./src/fxp.js",
mode: "development",
mode: "production",
output: {
path: __dirname,
filename: "./lib/fxp.cjs",