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 initxmlbuilder2 44 changes
Breaking changes 1
The minimum required Node.js version is now 20.
Fixes and other changes 3
Text-only element nodes are no longer printed on new lines in callback mode.
The minified browser bundle was added back.
Attributes are no longer grouped when the group option is not set.
xmlbuilder2 36 changes
Breaking changes 2
Support for node.js 10 was removed.
The noDoubleEncoding flag was removed from serializers; parsers now decode predefined entities.
New APIs and options 1
Added the import function to the callback API.
Fixes and other changes 3
The XML parser now consistently returns the last top level element node created.
The JS object parser now parses mixed content.
Parsers now decode predefined entities.