Releases: tdewolff/minify
Releases Β· tdewolff/minify
v2.9.25
v2.9.24
v2.9.23
- cmd: put syscall code in OS specific files
- cmd: tweaks to bash_completion, see #441
- cmd: fix input/output directory edge cases and platform-specific operators in paths, fixes #438
- HTML: keep before , fixes #440
- HTML: don't keep whitespace after closing block tags with KeepWhitespace, fixes #442
- JS: fix statement list optimization when it's a list of empty statements, fixes OSSFuzz report
- JS: add support for top-level await and for class field definitions, fixes #412
- JS: improve variable declaration reordering, fixes #445
- JS: fix bug for var decl rearranging; use var renaming in decision to reorder var decls
- JS: remove unused function parameters; remove superfluous escapes in RegExp
- JS: add NoNullishOperator options, minify using nullish operator by default
- JS: fix bug for moving var decls and var renaming
- JS: const statement must have initializer
- JS: variable uses in for statement now don't interfere with declarations in for block
v2.9.22
- Update fsnotify from 1.4.9 to 1.5.1
- cmd: support preserving mode, ownership, and timestamps; fixes #435
- cmd: deprecate --preserveLinks
- cmd: don't add empty newlines before error when stdout is empty still
- HTML: trim whitespace in rel attribute, fixes #436
- JS: fix let{e}={e} where second e cannot be a declaration when there is the possibility that it might be arguments for an arrow func
- JS: allow line and paragraph separators in strings, fixes tdewolff/parse#82
v2.9.21
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