All Versions
35
Latest Version
Avg Release Cycle
14 days
Latest Release
402 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