Skip to content

Releases: NaturalIntelligence/fast-xml-parser

upgrade @nodable/entities and FXB

17 Apr 23:23

Choose a tag to compare

  • Use @nodable/entities v2.1.0
    • breaking changes
      • single entity scan. You're not allowed to use entity value to form another entity name.
      • you cant add numeric external entity
      • entity error message when expantion limit is crossed might change
    • typings are updated for new options related to process entity
    • please follow documentation of @nodable/entities for more detail.
    • performance
      • if processEntities is false, then there should not be impact on performance.
      • if processEntities is true, but you dont pass entity decoder separately then performance may degrade by approx 8-10%
      • if processEntities is true, and you pass entity decoder separately
        • if no entity then performance should be same as before
        • if there are entities then performance should be increased from past versions
    • ignoreAttributes is not required to be set to set xml version for NCR entity value
  • update 'fast-xml-builder' to sanitize malicious CDATA and comment's content

use @nodable/entities to replace entities

15 Apr 02:55

Choose a tag to compare

  • 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.

Full Changelog: v5.5.12...v5.6.0

performance improvment, increase entity expansion default limit

03 Apr 04:10

Choose a tag to compare

  • increase default entity explansion limit as many projects demand for that
maxEntitySize: 10000,
maxExpansionDepth: 10000,
maxTotalExpansions: Infinity,
maxExpandedLength: 100000,
maxEntityCount: 1000,
  • performance improvement
    • reduce calls to toString
    • early return when entities are not present
    • prepare rawAttrsForMatcher only if user sets jPath: false

Full Changelog: v5.5.9...v5.5.10

fix typins and matcher instance in callbacks

26 Mar 13:58

Choose a tag to compare

combine typings file to avoid configuration changes
pass readonly instance of matcher to the call backs to avoid accidental push/pop call

fix bugs of entity parsing and value parsing

26 Mar 13:56

Choose a tag to compare

fix: entity expansion limits
update strnum package to 2.2.0

fix entity expansion and incorrect replacement and performance

16 Mar 14:21

Choose a tag to compare

support onDangerousProperty

16 Mar 14:20

Choose a tag to compare

update dependecies to fix typings

11 Mar 11:23

Choose a tag to compare

integrate path-expression-matcher

10 Mar 15:28

Choose a tag to compare

  • support path-expression-matcher
  • fix: stopNode should not be parsed
  • performance improvement for stopNode checking

Separate Builder

25 Feb 10:53

Choose a tag to compare

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.