Skip to content

Releases: tdewolff/minify

v2.9.25

29 Dec 13:53
Compare
Choose a tag to compare
  • cmd: add --sequential option to run jobs in serial

v2.9.24

14 Dec 18:03
Compare
Choose a tag to compare
  • JS: fix for declarations in while statements

v2.9.23

13 Dec 19:40
Compare
Choose a tag to compare
  • 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

11 Sep 02:05
Compare
Choose a tag to compare
  • 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

02 Aug 13:53
Compare
Choose a tag to compare
  • JS: fix grouped statement ending parenthesis for objects, fixes #429

v2.9.20

27 Jul 15:50
Compare
Choose a tag to compare
  • CSS: fix @import url( early-termination and @import url( )
  • HTML: keep space after empty phrasing elements, fixes #427
  • JS: fix switch statement optimization, fixes #426
  • JS: remove if statement if if-block is empty, fixes #428

v2.9.19

06 Jul 23:42
Compare
Choose a tag to compare
  • JS: fix parsing of a++==b
  • CSS: fix bug in early-terminated @import url(

v2.9.18

23 Jun 14:33
Compare
Choose a tag to compare
  • Revert incorporating the parse dependency into this repository from the previous release
  • cmd: Bash completion support for zsh, fixes #421
  • JS: fix {a:b=1} when inside arrow function parameter list, fixes #422

v2.9.17

25 May 20:40
Compare
Choose a tag to compare
  • Incorporate the parse dependency into this repository
  • cmd: fix forward/backward slash for Windows platform, fixes #403
  • JS: add space to a<!--b and a</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

12 Apr 13:50
Compare
Choose a tag to compare
  • 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