2.0.0
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 asError
s (for well-formedness errors) andTypeError
s (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.