Releases: tdewolff/parse
Releases · tdewolff/parse
v2.3.8
v2.3.7
v2.3.6
- Prevent panic when returning
Bytes()
on empty buffer - Set proper context in errors
- Limit the length in context in errors
- In
EqualFold
only match upper/lower case on alphabet characters - Add option to
EscapeAttrVal
to handle attribute values for XML (use double quotes) - HTML: add hashes for RDFa attribute names
- JS: accept NULL characters as code
- JSON: report errors NULL characters
Go modules support
Add Go modules support by using the github.com/tdewolff/parse/v2
import path.
Fix CSS parsing of bad declarations
- CSS: fix parsing of bad declarations
- CSS: handle comments within declarations
- CSS: reintroduce IE star hack
*color: white
- CSS: add keywords to hash table
Release for minify-v2.3.5
v2.3.3 Add flex
Bugfixes for NULL handling
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
v2.3.1 Merge buffer and strconv packages
Performance
- 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
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.