All Versions
13
Latest Version
Avg Release Cycle
62 days
Latest Release
11 days ago

Changelog History
Page 1

  • v2.6.1

    November 27, 2019

    ⬆️ Upgrade to tdewolff/parse@2.3.14:

    • 🐎 Re-parse input immediately when encountering parse error. Previously this was only done if the error was actually read which would save us from re-parsing the file (i.e. better performance). However, an error is (a) rare and (b) happens only once per file. Re-parsing on errors does not impact the performance of well formatted files, and a reliable error message is valued more.
    • πŸ›  Bugfix: prevent infinite loop on error on input file that contains unicode code points (i.e. any character bigger than 0xC0 usually followed by more bytes).
    • πŸ‘Œ Improve error messages for parsers to include parser name and print offending byte(s)
  • v2.6.0

    November 26, 2019
    • 🚚 CSS: remove space after function in property value; margin:calc(10px) calc(20px) => margin:calc(10px)calc(20px)
    • πŸ“œ SVG: parse A path command correctly when the booleans largeArc and sweep are not separated by a space, such as in A10 10 0 0120 0 which is equivalent to A10 10 0 0 1 20 0
    • πŸ›  SVG bugfix: make sure we are processing a valid path command
    • πŸ›  SVG bugfix: prevent panic when having insufficient path arguments
    • cmd: surpress error when minifying empty directory
    • πŸ›  HTML: only minify attributes for known HTML5 tags, fixes #270
    • πŸ“œ HTML, XML, SVG: minify entities with parse@2.3.13 such as: " => ", " => ", " => ", ’ => ’, ✏ => ✏.
  • v2.5.2

    September 05, 2019

    πŸ›  Bugfixes:

    • πŸ›  SVG: don't convert polyline/rect/polygon/line to path, which can break CSS, fixes #260
    • SVG: relative SVG BΓ©zier commands not properly minified
    • 🚚 CSS: don't remove whitespace in nested unknown at-rules, fixes #262
    • πŸ›  CSS: fix panic for background when it contains functions other than calc for background-position, fixes #263
    • CSS: fix panic for background-position with three numbers
    • CSS: fix panic for url() with only whitespace or only one quote
  • v2.5.1

    July 16, 2019
    • βœ‚ Remove import comments
    • SVG: do not convert line/rect to path if coordinates are relative percentages
    • CSS: fix bug with inline CSS encountering }
  • v2.5.0

    May 17, 2019
    • CSS: fix position information in error context
    • CSS: fix background-position panic with offsets that are zero
    • HTML: trim and collapse whitespace in certain attribute values
    • SVG: shorten cubic and quadratic BeziΓ©r path data to their shorter format or to line segments
  • v2.4.0

    April 18, 2019
    • 🚚 When minifying floating points, remove trailing zeros and not other numbers
    • πŸ‘‰ Make M concurrent-safe
    • HTML: keep double quotes around XML-flavour RDFa attributes
    • βͺ CSS: revert the use of the #RRGGBBAA format as proposed in Color Module Level 4 as it is not yet an official W3C recommendation
    • CSS: background-position (also within background) now works with 3 and 4 values as well
    • πŸ“‡ SVG: skipping metadata or rect tags properly even if they are closed by a void tag (like <rect/>)
    • 🚚 SVG pathdata: when cursor doesn't move, don't emit any commands
  • v2.3.8

    November 07, 2018

    πŸš€ I'm suspecting that go mod gets confused from a previously reverted v2.3.7 release, so just in case this is a new release that will hopefully fix:

    $ go get -u github.com/tdewolff/minify/v2
    go: github.com/tdewolff/minify/v2@v2.3.7: go.mod has non-.../v2 module path "github.com/tdewolff/minify" (and .../v2/go.mod does not exist) at revision v2.3.7
    go get: error loading module requirements
    
  • v2.3.7

    November 06, 2018

    βž• Add Go modules support by using the github.com/tdewolff/minify/v2 import path.

    πŸš€ WARNING: this release may give errors for go mod probably due to (local) caching...

  • v2.3.6

    October 26, 2018

    0️⃣ Important: default mimetype for JavaScript is now application/javascript (it used to be text/javascript).

    • πŸ›  HTML bugfix: keep empty value attribute on <input type="radio">, because the default is not an empty string
    • πŸ›  HTML bugfix: prevent IE conditional comments from panicking in some instances
    • CSS: handle local() for URLs
    • πŸ‘ CSS: support rgb() and hsl() with spaces instead of commas
    • CSS: improve minification for font, background, background-position, background-repeat, background-size, outline and border declarations
    • πŸ‘ CSS: reintroduce support for IE star-declaration hack
    • πŸ›  CSS bugfix: margin and padding now check if values that are functions (such as calc()) are equal and thus eligible for collapsing
    • πŸ›  CSS bugfix: parse bad declarations better
    • πŸ›  CSS bugfix: add space for attribute selector case insensitivity between the value and i as in input[type="radio" i]
    • πŸ›  CSS bugfix: do not collapse outline to 0 but to none
    • πŸ›  CSS bugfix: opacity for rgba() and hsla() in CSS2 cannot be rewritten as #rrggbbaa
    • πŸ›  SVG bugfix: only use the first pair of coordinates for M to move back to when encountering Z
  • v2.3.5

    June 08, 2018
    • CLI: Add bash completion for the minify command
    • CLI: improved error messages
    • πŸ›  CLI bugfix: don't open all files at once when concatenating, which usually panics when >10000 files are open
    • πŸ›  CLI bugfix: don't minify modified files twice when watching them
    • πŸ›  Bugfix: prevent panic on long decimals with negative exponent, where rewriting would previously cause longer numbers
    • HTML: accept alternative syntax for MS conditional comments
    • πŸ›  HTML bugfix: draggable is not a boolean
    • πŸ›  HTML bugfix: do not assume mediatype in <meta content="x">
    • CSS: add option for CSS2 numbers without exponents
    • CSS: trim space in url()
    • πŸ‘ CSS: minify box-shadow, background and @import better
    • πŸ›  CSS bugfix: prevent panic for functions with no arguments or end parenthesis
    • πŸ›  CSS bugfix: keep dimensions for zeros in flex property
    • πŸ›  CSS bugfix: keep other values for outline and border when width is zero
    • πŸ›  CSS bugfix: font normal now handled
    • πŸ›  CSS bugfix: add quotes to unquotes url() when we can remove the url function
    • πŸ›  CSS bugfix: only omit number dimensions for and
    • πŸ›  JS bugfix: ASI behaviour for template literals
    • πŸ›  JS bugfix: replace comment as space when comment is removed
    • πŸ›  JS bugfix: divide by regular expression
    • 🚚 SVG: don't remove empty groups anymore, as CSS or JS might rely on them
    • πŸ›  SVG bugfix: prevent panic on invalid pathdata for arcs