Skip to content

v4.2.0

Latest
Compare
Choose a tag to compare
@rgrove rgrove released this 25 Oct 03:59
· 1 commit to main since this release
v4.2.0
a7e2653

Faster! Smaller! Better in ways you can't even see and probably don't care about! And still completely backwards compatible.

Improved

  • Parsing performance in Node.js 22 is up to 28% faster than version 4.1.0. Note that the performance gain will vary depending on the document being parsed.

  • The minified bundle size has been reduced by a mind-blowing 87 bytes (uncompressed).

Changed

  • Moved initial parsing steps out of the Parser constructor and into a new parse() method. #35

    This change is an internal refactoring that doesn't affect the public API, but may make error handling easier for people who like living dangerously and are using parse-xml internals in interesting ways.

Fixed

  • The parser now throws an error when it encounters an invalid character in an encoding declaration.