fast-xml-parser
5.12.1 · 13 Nov 2026MIT118.5M / weekRepositoryHomepagenpmAtom feed
195 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
5.12.1
13 Nov 2026Correct demo parser and builder options
Skip quoted attribute values in one step (long SVG path data 4-5x faster)
What's Changed
Correct demo parser and builder options
Skip quoted attribute values in one step (long SVG path data 4-5x faster)
5.12.0
3 Nov 2026Add endIndex to the CommonJS XMLMetaData declaration
Preserve original metadata offsets for CRLF input
README.md: Fix documentation links
What's Changed
Add endIndex to the CommonJS XMLMetaData declaration
Preserve original metadata offsets for CRLF input
README.md: Fix documentation links
5.11.2
29 Sep 2026Decode Uint8Array XML input as UTF-8
Type EntityDecoderOptions.setXmlVersion's version as a number
5.11.1
27 Aug 2026Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
5.11.0
16 Aug 2026Add support for endIndex in node metadata (5.x edition)
Don't crash on a closing tag with no matching opening tag
5.9.3
19 Jun 2026Harden GitHub Actions workflows
GitHub Actions workflow fixes
5.9.0
15 Jun 2026Validate unsafe HTML or XML data in doctype entities unsing 'is-unsafe' library. User can override rules by overriding EntityDecoder.
Validate unsafe HTML or XML data in doctype entities unsing 'is-unsafe' library. User can override rules by overriding EntityDecoder.
5.8.0
12 May 2026Integrate xml-naming to validate DOCTYPE entity name and notation name (using qname because of backward compatibility)
Integrate xml-naming to validate DOCTYPE entity name and notation name (using qname because of backward compatibility)
This will consider xml-version as well. '1.0' is default
5.7.3
5 May 2026alwaysCreateTextNode should create text node when attributes are present for self closing node
Fix stop node expression when ns prefix is removed (found by iruizsalinas)
Update XML Builder to 1.1.7
alwaysCreateTextNode should create text node when attributes are present for self closing node
Fix stop node expression when ns prefix is removed (found by iruizsalinas)
Update XML Builder to 1.1.7
Mark addEntity deprecated
5.7.1
17 Apr 2026Use
@nodable/entitiesv2.1.0Update 'fast-xml-builder' to sanitize malicious CDATA and comment's content
5.7.0
17 Apr 20265.6.0
15 Apr 2026- Breaking
Error messages for entities might have been changed.
No API change
No change in performance for basic usage
No API change
No change in performance for basic usage
No typing change
No config change
New dependency
- Breaking
Error messages for entities might have been changed.
5.5.10
3 Apr 2026Increase default entity explansion limit as many projects demand for that
Performance improvement
5.5.9
23 Mar 2026combine typings file to avoid configuration changes
pass readonly instance of matcher to the call backs to avoid accidental push/pop call5.5.8
20 Mar 20265.5.7
19 Mar 2026fix: entity expansion limits
update strnum package to 2.2.05.5.1
10 Mar 2026Support path-expression-matcher
stopNode should not be parsed
Performance improvement for stopNode checking
5.4.0
25 Feb 2026XML Builder was the part of fast-xml-parser for years. But considering that any bug in builder may false-alarm the users who are only using parser and vice-versa, we have decided to split it into a separate package.
XML Builder was the part of fast-xml-parser for years. But considering that any bug in builder may false-alarm the users who are only using parser and vice-versa, we have decided to split it into a separate package.
Migration
To migrate to fast-xml-builder;
From
import { XMLBuilder } from "fast-xml-parser";To
import XMLBuilder from "fast-xml-builder";
XMLBuilder will be removed from current package in any next major version of this library. So better to migrate.
5.3.9
25 Feb 20265.3.8
25 Feb 2026Support maxNestedTags
Handle non-array input for XML builder when preserveOrder is true (By Angelo Coetzee)
Save use of js properies
5.3.7
20 Feb 2026Unexport
X2jOptionsat declaration site
5.3.6
14 Feb 2026Improve security and performance of entity processing
5.3.5
8 Feb 2026Add missing exports to fxp commonjs types
Escape regex char in entity name
What's Changed
Add missing exports to fxp commonjs types
Escape regex char in entity name
5.3.4
30 Jan 20265.3.3
12 Dec 2025Fix #775: transformTagName with allowBooleanAttributes adds an unnecessary attribute
Performance improvement for stopNodes (By Maciek Lamberski)
5.3.0
3 Oct 2025Launched Separate CLI module
Replace
BufferwithUint8Array
5.2.2
5 May 2025Support ESM modules
Fix value parsing issues
A feature to access tag location is added (metadata)
Support ESM modules
Fix value parsing issues
A feature to access tag location is added (metadata)
Fix to read DOCTYPE correctly
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.