unstale

npm / xmlbuilder2

xmlbuilder2

What changed in xmlbuilder2 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.

3 breaking1 new APIs and options6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.4 on npm

xmlbuilder2 44 changes

Breaking changes 1

  • The minimum required Node.js version is now 20.

    4.0.0release notes

Fixes and other changes 3

  • Text-only element nodes are no longer printed on new lines in callback mode.

    4.0.3release notes

  • The minified browser bundle was added back.

    4.0.2release notes

  • Attributes are no longer grouped when the group option is not set.

    4.0.0release notes

xmlbuilder2 36 changes

Breaking changes 2

  • Support for node.js 10 was removed.

    3.0.0release notes

  • The noDoubleEncoding flag was removed from serializers; parsers now decode predefined entities.

    3.0.0release notes

New APIs and options 1

Fixes and other changes 3

  • The XML parser now consistently returns the last top level element node created.

    3.0.0release notes

  • The JS object parser now parses mixed content.

    3.0.0release notes

  • Parsers now decode predefined entities.

    3.0.0release notes