Skip to content

Releases: tdewolff/parse

Release for minify-v2.3.5

11 Jun 21:23
Compare
Choose a tag to compare
v2.3.3

Add flex

Bugfixes for NULL handling

01 Dec 12:58
Compare
Choose a tag to compare

This fixes a couple of bugs in the HTML, XML and JS implementations that caused out-of-bounds panics. The HTML parser now allows NULL bytes to be in the source.

Remove dependencies on buffer and strconv

12 Nov 23:24
Compare
Choose a tag to compare
v2.3.1

Merge buffer and strconv packages

Performance

12 Nov 17:12
Compare
Choose a tag to compare
  • Use a new buffer that holds all data in memory, giving significant speed-ups for parsing
  • Speed-up JSON consumeString
  • Break CSS selectors at the commas, this reduces memory requirements for (mostly) SASS/LESS generated CSS
  • Add position tracking upon errors, showing line number and column in the error message

v2.2.0

19 Oct 22:26
Compare
Choose a tag to compare

This v2.2 release is synchronous with tdewolff/minify v2.2

Changelog:

  • JS: improved parsing of edge cases
  • JS: allow HTML inline comments
  • CSS: improved parsing of bad declarations
  • CSS: parse custom properties

Thanks to @RReverser for improvements on the JS parser.

v2.1.0

12 Mar 13:00
Compare
Choose a tag to compare

This v2.1 release is synchronous with tdewolff/minify v2.1

Changelog:

  • HTML: foreign tags are now parsed entirely by the foreign parser (XML), not just their contents
  • Unexpected NULL character error now returned by parsers

Performance

21 Apr 19:53
Compare
Choose a tag to compare

This is v2 that works with minify-v2 and the buffer package. It is mostly a performance upgrade from v1.1.0. Also refactored tests and increased test coverage. Some minor API changes have been made, namely the Next() methods now return TokenType and []byte but not the total shifted number of bytes (used for freeing up bytes from the underlying buffer). This now happens through calling Free(int) on the underlying buffer.

Changelog:

  • functionality move between parse and other packages
  • differentiate between (raw) data and text for tokens
  • keep newlines when reducing whitespace
  • keep bang-comments

Bugfixes:

  • HTML/XML: don't panic on empty end tags
  • JS: don't panic on EOF in template
  • XML: don't panic on early ending CDATA

Zero-copy

03 Nov 08:15
Compare
Choose a tag to compare

This uses a more performant underlying buffer and which removes any need to copy byte slices. This release point is to be used with minify v1.1.0.

v1

03 Nov 08:11
Compare
Choose a tag to compare
v1

This denotes a stable release point to be used with minify v1.0.0.