Packages

fast-xml-parser

5.12.1 · 13 Nov 2026MIT118.5M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.0

major6 Jan 2022Where it was published

4.5.7 is the newest release of 4.x.

In short

9 new8 fixed19 changed

Security

Release note

  • Generating different combined, parser only, builder only, validator only browser bundles

  • Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer esm branch.

4.0.0-beta.8 / 2021-12-13

  • Call tagValueProcessor for stop nodes

4.0.0-beta.7 / 2021-12-09

  • Fix Validator bug when an attribute has no value but '=' only

  • XML Builder should suppress unpaired tags by default.

  • Documents update for missing features

  • Refactoring to use Object.assign

  • Refactoring to remove repeated code

4.0.0-beta.6 / 2021-12-05

  • Support PI Tags processing

  • Support suppressBooleanAttributes by XML Builder for attributes with value true.

4.0.0-beta.5 / 2021-12-04

  • When a tag with name "attributes"

4.0.0-beta.4 / 2021-12-02

  • Support HTML document parsing

  • Skip stop nodes parsing when building the XML from JS object

  • Support external entites without DOCTYPE

  • Update dev dependency: strnum v1.0.5 to fix long number issue

4.0.0-beta.3 / 2021-11-30

  • Support global stopNodes expression like "*.stop"

  • Support self-closing and paired unpaired tags

  • CDATA should not be parsed.

  • Fix typings for XMLBuilder (#396)(By Anders Emil Salvesen)

  • Supports XML entities, HTML entities, DOCTYPE entities

⚠️ 4.0.0-beta.2 / 2021-11-19

  • Rename attrMap to attibutes in parser output when preserveOrder:true

  • Supports unpairedTags

⚠️ 4.0.0-beta.1 / 2021-11-18

  • Parser returns an array now

    • to make the structure common

    • and to return root level detail

  • Renamed cdataTagName to cdataPropName

  • Added commentPropName

  • Fix typings

⚠️ 4.0.0-beta.0 / 2021-11-16

  • Name change of many configuration properties.

    • attrNodeName to attributesGroupName

    • attrValueProcessor to attributeValueProcessor

    • parseNodeValue to parseTagValue

    • ignoreNameSpace to removeNSPrefix

    • numParseOptions to numberParseOptions

    • spelling correction for suppressEmptyNode

  • Name change of cli and browser bundle to fxparser

  • isArray option is added to parse a tag into array

  • preserveOrder option is added to render XML in such a way that the result js Object maintains the order of properties same as in XML.

  • Processing behaviour of tagValueProcessor and attributeValueProcessor are changes with extra input parameters

  • j2xparser is renamed to XMLBuilder.

  • You need to build XML parser instance for given options first before parsing XML.

  • Fix #327, #336: throw error when extra text after XML content

  • Fix #330: attribute value can have '\n',

  • Fix #350: attributes can be separated by '\n' from tagname

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.