Releases: jsdom/w3c-xmlserializer
Releases · jsdom/w3c-xmlserializer
5.0.0
4.0.0
3.0.0
The minimum required Node.js version is now v12.
When the requireWellFormed
option is passed, XML name validation is now done correctly. Previously it would always pass validation even for invalid names, due to incorrect usage of the xml-name-validator
package.
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.