Releases: tdewolff/minify
Releases Β· tdewolff/minify
v2.11.4
v2.11.3
- Add more mimetypes that can be used for JavaScript including module, fβ¦
- JS: keep argument to set method even when not used, fixes #481
- Add .mjs as JavaScript extension, see #482
- HTML: keep original single/double quotes for attribute values as muchβ¦
- JS: keep original string single/double quotes as much as possible
v2.11.2
v2.11.1
v2.11.0
- Add MiddlewareWithError and improve error handling of Middleware slightly, see https://github.com/tdewolff/minify/issues/466-
- cmd: add extra check for preserving links when input is a symlink
- URL/Data URI: space must be encoded as %20 not + as per RFC3986
- JS: support parsing of numeric literal separators
- JS: fix variable renaming for identifier arrow function where identifier was already used
- JS: fix walk ClassDecl
- JS: allow strings in import/export statement lists
- JS: don't remove void expression when it has side effects, fixes #463
- JS: fix var declaration order when merging with assignment expressions, fixes #472
- JS: merge sequential var declarations into another declaration
- JS: reorder var declaration without default to improve GZIP compression
- JS: clean up var decls that were hoisted, but after merging no longer need hoisting
- JS: remove braces for if when nested if statement will be optimized away
- JS: merge assignments with var decls even if variable is already declared and defined in that declaration
- JS: improve conditional and unary-not expression compression
- JS: better compression of if/else statements with return/throw
- JS: improve variable use counting
- JS: improve compression for if/else statements with return/throw; and a bugfix
- JS: variable declaration bugfix
- JS: improve compression of and/or expressions
- SVG: support KeepComments, fixes #467
v2.10.0
- cmd: fix path errors on Windows, see #450
- cmd: allow absolute paths
- cmd: minifying to same file now more robust in checking if it's the same file
- cmd cmd: fix input/output directories when output is a directory to better match with the behaviour of cp, see #460
- JS: prefer double quotes over single quotes (for GZIP compression)
- JS: support strings in
import
andexport
statements - JS: revert the reversal of
<
and<=
, fixes #462
v2.9.29
v2.9.28
v2.9.27
- cmd: revert "Add --sequential option to run jobs in serial"
- cmd: don't use concurrency for single tasks
- cmd: refactor read/write code
- JS: rewrite variable renamer to define order of variable names, performance improvement of 3%-4%
- JS: use average character frequency of sample of JS files for variable renaming, reduces GZIP size