Skip to content

Releases: tdewolff/minify

Options

21 Apr 20:22
Compare
Choose a tag to compare

This v2 releases introduces passing options to minifiers. This is a feature that resulted in an API change, additionally I did some API clean up as well. This works with parse-v2.0.0.

Furthermore, performance of several components has been improved. Tests have been added and improved.

Change log:

  • options have been added
  • Reader and Writer functions are added
  • whitespace trimming doesn't convert newline to space if it can't remove it
  • bang-comments are preserved
  • improved CDATA processing
  • HTML URL minification

Bugfixes:

  • HTML: mediatype attribute in foreign/style/script wasn't copied
  • HTML/XML: don't panic on early ending end tags
  • SVG: allow single quotes attributes
  • SVG: keep M command character

CLI changes:

  • complete refactor allowing for a variety of inputs (streams, files, directories)
  • more parameters such as watching directory changes, recursive minification and options for the minifiers
  • processes files in parallel

Zero-copy

02 Nov 23:21
Compare
Choose a tag to compare

This uses a more efficient underlying buffer which removes any need to copy byte slices. All minifiers have higher performance, bugfixes and test refactoring.

v1

12 Sep 08:33
Compare
Choose a tag to compare
v1

This denotes a stable release point which is guaranteed to work in the future. Bugfixes and development is done on this version, while promising a stable API. Meanwhile work is put into v2.0.0 which will support options passing.