Skip to content

Releases: NaturalIntelligence/fast-xml-parser

v5.9.3

Choose a tag to compare

@github-actions github-actions released this 19 Jun 08:18

What's Changed

New Contributors

Full Changelog: v5.9.2...v5.9.3

v5.9.2

Choose a tag to compare

@github-actions github-actions released this 17 Jun 08:03

Full Changelog: v5.9.1...v5.9.2

v5.9.1

Choose a tag to compare

@github-actions github-actions released this 17 Jun 04:53

Full Changelog: v5.9.0...v5.9.1

update strnum, use is-unsafe

Choose a tag to compare

@amitguptagwl amitguptagwl released this 16 Jun 16:07
  • update strnum to 2.3.0
    • you can set hex, binary, enotation, infinity, unicode
  • validate unsafe HTML or XML data in doctype entities unsing 'is-unsafe' library. User can override rules by overriding EntityDecoder.

update strnum, FXB. Use xml-naming for DOCTYPE

Choose a tag to compare

@amitguptagwl amitguptagwl released this 12 May 03:42
  • 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
  • update strnum to 2.3.0
    • You can set octal and binary parsing which is by deault off
  • update fast-xml-builder to 1.2.0
    • can sanitize tag names if found invalid
    • fix format output

fix minor old bugs and update builder

Choose a tag to compare

@amitguptagwl amitguptagwl released this 05 May 01:36
  • fix: 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

backward compatibility for numerical external entity, fix #705, #817

Choose a tag to compare

@amitguptagwl amitguptagwl released this 24 Apr 22:35
  • allow numerical external entity for backward compatibility
  • fix #705: attributesGroupName working with preserveOrder
  • fix #817: stackoverflow when tag expression is very long

upgrade @nodable/entities and FXB

Choose a tag to compare

@amitguptagwl amitguptagwl released this 17 Apr 23:23
  • 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

Choose a tag to compare

@amitguptagwl amitguptagwl released this 15 Apr 02:55
  • 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

Choose a tag to compare

@amitguptagwl amitguptagwl released this 03 Apr 04:10
  • 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