Skip to content

Releases: jsdom/w3c-xmlserializer

5.0.0

12 Nov 07:59
Compare
Choose a tag to compare

The minimum required Node.js version is now v18.

4.0.0

20 Nov 07:23
Compare
Choose a tag to compare

The minimum required Node.js version is now v14.

When the requireWellFormed option is passed, emoji are now correctly allowed. (@hata6502, #27)

3.0.0

18 Sep 22:20
Compare
Choose a tag to compare

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

02 Jan 19:53
Compare
Choose a tag to compare

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.

1.1.2

25 Mar 04:04
Compare
Choose a tag to compare

Fix missing index.js file which would make require()ing this package fail. This regressed in v1.1.0.

1.1.1

25 Mar 03:08
Compare
Choose a tag to compare

Fixed incorrect README sample code.

1.1.0

25 Mar 03:05
Compare
Choose a tag to compare

Added support for serializing CDATA section nodes. (#3, @TechQuery)

Fixed serialization of tabs in require-wellformedness mode to not throw. (#6)

Fixed incorrect namespace prefix memoization for attributes. (#7)

Included a README file with basic usage instructions. (#1, @musale)

1.0.1

11 Dec 11:49
Compare
Choose a tag to compare

Fixed serialization of unknown prefixes to no longer throw an exception from the internals. (#4, @Zirro)

1.0.0

11 Dec 11:48
Compare
Choose a tag to compare

Initial release.