WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

v4.2.0

Latest

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.