Releases: tdewolff/minify
Releases Β· tdewolff/minify
v2.20.0
- Update Python binding to use CFFI thanks to @pydsigner
- JS: fix bug in var decl merging with for-in statements
- JS: improve var hoisting when redeclaring the same variable
- JS: remove import statement with empty named imports
- JS: merge expression stmt with for initializer
- JS: support ECMAVersion < 2015 for template literals, fixes #621
And many JS fixes from https://github.com/tdewolff/parse/releases/tag/v2.7.0
v2.19.10
- CSS: fix bug with var() in background, fixes #603
- XML: keep unquoted attribute values untouched, fixes #611
- cmd: add .rss, .xhtml, and .webmanifest mimetypes, see #438
- cmd: use tdewolff/argp for argument parsing; support --ext for mapping custom extensions, see #438
- cmd: improve --match/--include/--exclude patterns parsing
- cmd: remove --mime in favor of --type
v2.12.9
- HTML: fix panic for malformed IE conditional comment, fixes #596
- cmd: fix bundling of JS files when files end in a comment, fixes #594
- SVG: keep attribute value when empty, see #576
- JS: fix bug in replacing unicode escapes; don't reparse already replaced escapes
- CSS: fix bug for unsupported nested components, fixes #602
v2.12.8
- Update Go version to 1.18, fixes #593
- HTML: fix spacing around <script></script>; fixes #592
- HTML: fix KeepWhitespace after block end tag; improves solution of #442
- HTML: add and improve tag traits for whitespace handling
- HTML: fix whitespace removal for inline tags, ie. keep space in
afor most cases - JS: keep bang comments, fixes #552
- cmd: trailing slash in source path will not copy directory itself but all the files inside
- cmd: trailing slash for destination path resolves ambiguity when writing to a directory
- cmd: allow use of dash - for source/destination to mean stdin/stdout
- cmd: better error messages when using stdin/stdout in combination with --recursive or --bundle
v2.12.7
- JS: fix bundling JS file separator, fixes #584
- cmd: preserve mode,ownership,timestamps on all created directories, see #562
- cmd: remove deprecated --preserve-links and add --preserve=all as option, see https://github.com/tdewolff/minify/issues/562
- JS: don't convert \0,\x00,\u0000 to literal NULL as it breaks RegExp; convert \x00,\u0000 to \0 only if it can't possibly be an octal escape sequence (see https://github.com/tdewolff/minify/issues/577); fixes https://github.com/tdewolff/minify/issues/585
v2.12.6
- SVG: keep empty attributes; fixes #576
- JS: use literal NULL instead of escaped zero in strings, fixes #577
- JS: fix parsing of string expressions at the start of statement lists that are no UseStrictDirectives
- JS: decode unicode escape sequences in strings to UTF-8 literals
- JS: fix unicode string escape when not a valid UTF-8 character
- HTML: do not convert lang attribute value to lower #579
- JS: fix race condition for ECMAScript version and remove deprecated NoNullishOperator (use Version instead), fixes https://github.com/tdewolff/minify/issues/582
v2.12.5
- CSS: fix order in background-position:center left; see #222
- JS: support different ECMAScript version to toggle optimizations, merge with NoNullishOperator and add NoOptionalCatchParameter, fixes #540
- HTML: make mediatype parameters case sensitive, fixes #545
- HTML: fix last commit, see #545
- HTML: don't replace & by & when followed by what could be an entity, even though it is not terminated by a semicolon (as the spec requires), fixes #546
- CSS: limit too many nested functions
- SVG: don't remove rect with zero width or height, fixes #557
- cmd: copy file if minify fails, fixes #560
- cmd: add --incluce/--exclude filters, and allow comma-separated patterns for --match/--include/--exclude, see #560
- cmd: throw error when using multiple input files (such as when using *) to a non-existing output directory in line with cp behaviour, fixes #562