You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.