Skip to content

Releases: tdewolff/minify

v2.8.0

28 Jul 23:23
Compare
Choose a tag to compare

WARNING for package maintainers, some files have been renamed, adjust your build scripts accordingly.

  • Use Makefile instead of GoReleaser to build releases for all architectures, use make release. This fixes the README.md file location inside the archives to be in the root of the archive
  • Release archives will no longer have the version name explicitly stated, fixes #316
  • Remove cmd/minify/install.sh, use make install instead
  • Rename cmd/minify/minify_bash_tab_completion to cmd/minify/bash_completion
  • Rename LICENSE.md to LICENSE as it is not a Markdown file
  • Rename min subpackage to minify
  • cmd: running minify without arguments will print a more informative error message
  • cmd: bad arguments will not display cmd usage automatically

v2.7.7

24 Jul 16:59
Compare
Choose a tag to compare
  • cmd: fix file paths on Windows when input and output directories are equal (slash vs backslash)
  • cmd: add --cpuprofile and --memprofile options
  • cmd: fix usage of --match and --sync simultaneously, fixes #315
  • cmd: --match applies to all filename inputs not just under directories
  • CSS: remove whitespace around custom variable value, fixes #305
  • JSON: minify numbers, fixes #302
  • HTML: fix slow parsing of <a> tag with many name or id attributes (OSS-Fuzz)
  • Don't replace space by + in DataURI, fixes #314
  • Don't escape @ : ; = ? + , / $ \t \n \r in DataURIs (works for Chrome, Firefox, Opera, Edge, Safari, Yandex, and IE9, IE10, IE11)

v2.7.6

08 Jun 17:54
Compare
Choose a tag to compare
  • HTML: remove text and whitespace within select and optgroup tags
  • CSS: fix slow parsing of selectors when they contain many errors (OSS-Fuzz)
  • CSS: fix RGB/HSL when a parameter overflows (OSS-Fuzz)
  • CSS: fix slow parsing of large HSL parameters (OSS-Fuzz)
  • cmd: properly run defer calls after command ends, may fix some race bugs
  • Add easy API in the min/ subpackage
  • Add project to OSS-Fuzz

v2.7.4

24 Apr 20:07
Compare
Choose a tag to compare
  • CSS: fix minification of flex, default of flex-basis is zero for three value case, fixes #292
  • CSS: remove whitespace within @import url(...), fixes #296
  • HTML: remove spaces around/in picture and audio following whitespace removal rules for phrasing elements

v2.7.3

12 Mar 13:02
Compare
Choose a tag to compare
  • external minifiers can now use input/output files instead of only stdin/stdout using the $in and $out keywords
  • SVG: don't minify inside foreignObject, fixes #291

v2.7.2

14 Jan 15:29
Compare
Choose a tag to compare
  • SVG: bugfix for C, S, Q, and T commands where if the control points would not overlap with the start or end points of the curve, it would still be converted to a line.

v2.7.1

13 Jan 20:35
Compare
Choose a tag to compare
  • DataURI: if the original data URI is shorter than the URL-encoded/base64-encoded URI, use the original instead, fixes #282
  • Bugfix: decimal (i.e. without exponentials) incorrectly minified 139.9 to 230 instead of 140

v2.7.0

06 Jan 14:31
Compare
Choose a tag to compare
  • Use custom URL encode/decode functions to fix #180 and #243
  • Decimal and Number now take precision to mean the number of significant digits, and not the number of digits behind the dot (decimals); includes a few subtle bugfixes. Decimals option renamed to Precision
  • Move Hash definitions and EntitiesMap from tdewolff/parse to this repository to prevent releasing new versions of tdewolff/parse everytime
  • cmd: add --sync functionality
  • cmd: make --watch work for newly created directories
  • cmd: various fixes and improved messages
  • CSS: keep quotes around IE font families, fixes #251
  • CSS: major refactor to allow nested functions to be minified
  • CSS: improved HSL/RGB minification
  • CSS: minify more properties: color, background-color, border-color, border-*-color, caret-color, outline-color, fill, stroke, column-rule, text-shadow, text-decoration, text-emphasis, flex, flex-*, order, fixes #217
  • CSS: minify background better if it has multiple layers
  • CSS: improve box-shadow minification
  • CSS: accept CSS functions where numbers/lengths are required, such as calc, min, max, clamp, attr, var
  • SVG: print new path command after bad command, fixes #275
  • SVG: print A command correctly with boolean largeArc and sweep
  • SVG: avoid precision errors for alternative (absolute or relative commands) path

v2.6.3

02 Jan 14:34
Compare
Choose a tag to compare

Add install.sh and Makefile to ./cmd/minify.

No changes to binaries (use v2.6.2).

v2.6.2

02 Jan 14:20
Compare
Choose a tag to compare
  • HTML: ignore CSS minification for amp-boilerplate
  • HTML: add KeepQuotes option for attributes
  • XML: bugfix for recent changes to XML parser