Releases: tdewolff/minify
Releases · tdewolff/minify
v2.9.20
v2.9.19
v2.9.18
v2.9.17
- Incorporate the
parse
dependency into this repository - cmd: fix forward/backward slash for Windows platform, fixes #403
- JS: add space to
a<!--b
anda</script>/
in more instances to avoid confusion with operators, see #413 - JS: add variable scope to switch statement
- JS: parse
async(a)
as possible expression or arrow func, fixes #406 - JS: fix lexical variable renaming for descoped, fixes #405
- JS: fix import statement/call parsing at module level, fixes #399
- JSON: add
KeepNumbers
option, fixes #400
v2.9.16
- keep minimal Go version at 1.13 (and not 1.16 which is more convenient for cmd)
- cmd: fix regression for stdin/stdout, fixes #392
- HTML: update error line and column for errors from other minifiers
- CSS: KeepCSS2 (for IE11) doesn't use initial for background-color, fixes #394
- CSS: keep integers for z-index even in functions such as calc, fixes #395
- CSS: fix minify to initial/auto/none for flex, fixes #398
v2.9.15
v2.9.14
- cmd: create missing directories for symlinks, see #385
- cmd: preserve file permissions, see #385
- cmd: wait 0.1 seconds before processing watched file change, fixes #372
- cmd: watch now works with file input and output (not just dirs), see #372
- cmd: fix watch functionality for unknown file extension even if --type set, fix watch when src is not a dir; see #372
- cmd: follow symlinks by default, new -p options will copy symlinks without following them, fixes #385
- cmd: use io/fs and demand Go1.16, see #388
- JS: add &&= ||= ??= operators, see #380
- JS: add support for class field definitions, fixes #380
- JS: fix recursion limit in string merging, fixes #382
- CSS: don't remove dimension for zero values inside functions like var and calc, fixes #371
- SVG: don't minify extremely long path data (OSS-Fuzz)
- HTML: keep space after empty
<i></i>
, fixes #390
v2.9.13
v2.9.12
v2.9.11
- cmd: require
--bundle
for concatenation when the input is a directory, see #348 - CSS: improve performance on background positions (from OSS-Fuzz)
- HTML: don't trim whitespace on all attribute values (in
value
andplaceholder
it's significant), see #351 - HTML: keep value on
translate=no
, see #352 - HTML: support SSI tags, see #353
- HTML: add option
KeepComments
to keep all comments, see #366 - JS: fix endless loop in certain if-else combinations; minify more or/and/conditional expressions that start with a group (from OSS-Fuzz)
- JS: fix import/export with one item, fixes #354
- JS: escape
</script>
in strings, fixes #355 - JS: keep parens in arrow functions for BindingArray and BindingObject, fixes #358
- JS: enclose entire expression in parenthesis if it starts with an object literal, fixes #359
- JS: prevent slowdown for if-else with if in body (from OSS-Fuzz)
- JS: fix errors messages that contain % symbols
- JS: put limits to the number of levels in statements and in expressions (from OSS-Fuzz)
- JS: fix declarations with the same name as in the for initializer, see tdewolff/parse#69
- JS: fix var declarations not adding their usage in all the scopes between its block scope and the function scope
- SVG: keep
width
andheight
attributes on<svg>
, fixes #367 - XML: keep ampersand and less-than escaped, see #362