Skip to content

2.0.0

Compare
Choose a tag to compare
@domenic domenic released this 02 Jan 19:53

This version overhauls the package's API:

  • The XMLSerializer export was removed, as it was fairly useless anyway.
  • The produceXMLSerialization export was changed to be the main module's default export.
  • The boolean parameter to the serialization function was changed to an options object containing the requireWellFormed boolean member.
  • Serialization errors are no longer thrown as DOMException instances, but instead as Errors (for well-formedness errors) and TypeErrors (for use on non-nodes).

This new API is now fully documented in the README, unlike before.

The package has also moved to only officially supporting and being tested on Node.js v10 or later.