Skip to content

Releases: reshape/reshape

v1.0.0

24 Jul 22:39
Compare
Choose a tag to compare

While there have been breaking releases to the parser and code generator that are bundled with this release, there was no code updates to the code in this package, meaning that technically this is not a breaking release. However, there were some major changes made which we will go through now.

The parser and code generator have been updated in two specific ways. First, extra handling was added to escaping html entities, which previously was not present and although infrequently occurring, was technically a bug. Now, if you use &,  , <, and/or > (or their plaintext representations) within a text node, and &,   and/or " (or their plaintext representations) within an attribute's content, they will be properly escaped. Previously this wasn't the case.

Additionally, a new node type has been added: doctype. This node type, as you might be able to guess, is exclusively for doctypes, which used to be represented by a text node, but this can no longer be the case due to the enhanced entity escaping described above.

For plugin authors, this only matters if you are injecting or modifying a doctype declaration within your plugin. If so, make sure to change the node type from text to doctype. For custom parser authors, the same change must be made. For everyone else, you should be able to upgrade without issue, but as always, be careful and make sure to test before releasing.

v0.5.1

19 Jun 04:57
Compare
Choose a tag to compare
  • Patch to fix a bug with detecting prefixed attributes (like xlink:href) in the parser

v0.5.0

23 May 17:32
Compare
Choose a tag to compare
  • Updated dependencies, including the parser which now exposes more location info

v0.4.0

18 Jan 00:13
Compare
Choose a tag to compare
  • Performance increased significantly through a couple tweaks in reshape core and code-gen
  • All dependencies brought up to date

v0.3.2

19 Aug 21:38
Compare
Choose a tag to compare
  • Update core parser to fix an issue with attributes containing a : character

v0.3.1

17 Aug 22:17
Compare
Choose a tag to compare
  • Parser errors now handled through the promise chain rather than throwing
  • Parser and generator receive reshape options as an optional third argument

v0.3.0

10 Aug 22:20
Compare
Choose a tag to compare
  • Update default parser to latest version. Now returns sync.

v0.2.0

10 Aug 19:41
Compare
Choose a tag to compare
  • Initial release! 🎉