All Versions
35
Latest Version
Avg Release Cycle
14 days
Latest Release
1274 days ago

Changelog History
Page 1

  • v2.9.10 Changes

    October 23, 2020
    • ๐Ÿ›  JS: put variable declarations after "use strict", fixes #343
    • ๐Ÿ›  JS: don't convert hexadecimal representations in strings from 0x80 upwards unless it's UTF-8, fixes #341
    • ๐Ÿ”€ JS: don't merge var declarations after for statement into for initializer, fixes #346
    • ๐Ÿ›  JS: add parenthesis when necessary to if condition when converting to conditional expression, fixes #347
  • v2.9.9 Changes

    October 16, 2020
    • ๐Ÿ‘Œ Improve error contexts when the file contains unicode characters
    • โช HTML: revert change in v2.9.5 that removed spaces between attributes, fixes #342
    • ๐Ÿ›  JS: fix bug that converted (function(){})() to !function(){}() which modifies the return value, fixes #340
  • v2.9.8 Changes

    October 15, 2020
    • ๐Ÿ›  Fix 1e-10 which was invalidly converted to .e-9 (this only applied to 1e-10, 1e-100, etc and not to other numbers such as 1e-11 or 1e-9), fixes #339
    • ๐Ÿšš JS: remove the use of the nullish operator ?? which is not supported by IE, Android+Firefox, and Android+Opera, fixes #338
    • ๐Ÿ”€ JS: fix bug in merging var declarations, where partial merges resulted in duplicate assignments
  • v2.9.7 Changes

    October 01, 2020
    • cmd: add JS options
    • ๐Ÿ”€ JS: remove unassigned bindings in for statement initializer when it cannot be merged with variable declaration
    • JS: use Precision option in minifying numbers
    • SVG: fix bugs in skipping foreignObject tags
  • v2.9.6 Changes

    October 01, 2020
    • ๐Ÿ›  JS: add var decl as undeclared in block scopes between the current scope and the function scope, fixes #334
    • ๐Ÿ›  JS: fix overwriting next statement in if-else => if-if conversion, fixes #335
  • v2.9.5 Changes

    September 23, 2020
    • cmd: minify input even if extension is unknown but type/mimetype is given
    • โฑ CSS: fix timeout in property with many commas
    • ๐Ÿ›  CSS: convert RGBA to transparent only if the color is fully transparent black (and not any other transparent color), fixes #332
    • CSS: fix crash when rgb/rgba functions have less than three arguments
    • ๐Ÿ›  CSS: fix box-shadow value none conversion to 0 0 as they are not equivalent, fixes #332
    • ๐Ÿšš HTML: remove space between attributes when after a quoted value
    • ๐Ÿ›  HTML: keep empty title and lang attributes, fixes #331
    • ๐Ÿ”€ JS: merge variable declarations even if one has an ObjectPattern
    • ๐Ÿšš JS: remove trailing commas in BindingArray (except when Rest ellipsis is set)
    • ๐Ÿ›  JS: add parenthesis around object literal in arrow function body, fixes #333
  • v2.9.4 Changes

    September 04, 2020
    • ๐Ÿšš JS: don't remove braces when there are lexical declarations, fixes #326
    • ๐Ÿ›  JS: don't convert lexical declarations to expressions when hoisting variables, fixes #326
    • ๐Ÿ”€ JS: merge variable declaration and for initializer with variable declaration
  • v2.9.3 Changes

    September 02, 2020
    • ๐Ÿ›  CSS: minify comma-separated lists for box-shadow, background, background-repeat, background-size, and background-position properties (fixes #322)
    • ๐Ÿšš CSS/SVG: remove deprecated Decimals options in favor of Precision
    • ๐Ÿšš cmd: remove --decimals options for CSS and SVG minifiers in favor of --precision
    • ๐Ÿ”€ cmd: add --bundle option to explicitly bundle (concatenate/merge) files into one, do not asume from the -o options if it lacks a / at the end that it outputs to a file and thus needs to merge the inputs
    • 0๏ธโƒฃ cmd: directory inputs needs --recursive, previously directories would be expanded by defaults (but not their subdirectories). This matches behaviour of the cp command and will be more intuitive.
    • cmd: file inputs are copied without considering and recreating its directory path. For example, minify -o out path/to/file would output to out/path/to/file but will now output to out/file. This is the same behaviour as the cp command and will be more intuitive for users.
  • v2.9.2 Changes

    August 31, 2020
    • ๐Ÿ›  JS: only put var declaration into for or while, and not let nor const, fixes #325
    • ๐Ÿ”€ JS: merge more efficiently a var declaration with a for or while statement
  • v2.9.1 Changes

    August 29, 2020
    • ๐Ÿ“œ JS: fix parsing in identifier in group expressions
    • ๐Ÿ“œ JS: fix parsing identifiers inside arrow function body in some cases #324
    • JS: keep all license comments at the top of the file
    • JS: minify typeof x==='undefined' to typeof x=='undefined'
    • ๐Ÿ”€ JS: merge expressions and var declarations with for with empty initializer or with while statement converted to for
    • ๐Ÿ”€ JS: iteratively merge if(a){return b}if(c){return d}return e chains to return a?b:c?d:e