Repository navigation
Releases
Releases · tdewolff/minify
v2.25.0
- Python: replace use of QEMU for ARM64 builds with an ARM64 OS
- JS: empty string literal is falsy in conditions, fixes #1065
- JS: keep Math.trunc(x) instead of x|0, fixes #1077
- JS: only drop a true/false right operand of && and || when the left side is a boolean, fixes https://github.com/tdewolff/minify/issues/1066
- JS: keep a backslash escaped when decoding \u005c and \u{5c}, fixes #1071
- JS: drop return when removing a trailing undefined from a comma list, fixes https://github.com/tdewolff/minify/issues/1070
- JS: follow linked variables when checking let/const destructuring dependencies, fixes https://github.com/tdewolff/minify/issues/1068
- JS: keep import attributes (with clause) of import and export statements, fixes https://github.com/tdewolff/minify/issues/786
- JS: keep var destructuring after the variables it reads, fixes #1067
- JS: keep Math.sqrt(x) unless x is a number literal, and skip Math rewrites with spread args
- CSS: collapse whitespace in custom property values, fixes #740
- JS: keep Math.abs(x) instead of x<0?-x:x
- JS: fix member access on grouped number literals
- HTML: fix passing escape-html for any script tag, regardless whether content type is set
Thanks to @bardrop and @max-moser for the PRs!
v2.24.25
v2.24.24
v2.24.23
v2.24.22
v2.24.21
v2.24.20
- JS: fix slow execution of many empty statements, found with OSSFuzz
- JS: fix cases of slow parsing of JS, see tdewolff/parse#132
- JS: fix appearance of script end tag or comment tag in regular expressions; don't stop minifying regexp when encountering slash in class
- Update dependencies, require go1.26 due to golang.org/x/sys
v2.24.19
v2.24.18
- Update Minify.Bytes and Minify.String regarding buffer reuse
- SVG: fix and improve pathdata minification, fixes #1023
- Clone external command arguments before replacing file placeholders
- Return output copy errors from external minifiers
- SVG: undo removing first MoveTo command, it is mandatory
- JS: fix precendence for &&= ||= ??= operators, fixes #1037
- Fix security issue GHSA-3ppm-p7r9-c5w3; properly escape </script> inside HTML script tag case-insensitively
- Undo reuse of input byte slice in Minify.Bytes and Minify.String, it may cause problems if a minifier outputs longer output (rarely if never the case)