Skip to content

Releases: maltsev/htmlnano

3.2.0

01 Mar 09:23
3.2.0
432f8f4

Choose a tag to compare

Changed

  • Refactor attribute normalization and sorting to avoid code duplication.
  • Make max preset more aggresive.
  • Use purgeCSS and default tool in removeUnusedCss.

Fixed

  • Handle exceptions raised by Terser.

3.1.0

03 Feb 13:58
3.1.0
f62ace2

Choose a tag to compare

This release touches almost the whole htmlnano code. Minifier modules are fully covered by tests, and many new edge cases were added, so I don’t expect regressions, but please be aware.

Added

  • minifyHtmlTemplate module to minify HTML inside template containers [#11].
  • removeEmptyElements module [#8].
  • minifyAttributes improvements: new module for meta refresh optimization and options for redundant whitespace handling [#37].
  • removeComments now supports a regex string in JSON config [#255].
  • Fallback SVG optimization.

Changed

  • Upgrade to PurgeCSS v8.
  • Expanded and hardened behavior across all minifier modules.
  • Updated SVGO peer dependency range to ^4.0.0 and synced peer/dev versions [#394].

Fixed

  • minifyJs preserves single quotes in handler attributes [#41].
  • minifyJs now pushes event-handler minification promises correctly [#398].
  • Fixed removeUnusedCss option typings [#401].

3.0.0

22 Dec 10:41
3.0.0
4251629

Choose a tag to compare

Changed

  • SVGO has been upgraded to v4, which includes some breaking changes. This is the main reason for the major version bump in this release of htmlnano.

Added

2.1.5

19 Sep 09:24
2.1.5
d33cba7

Choose a tag to compare

Fixed

  • Broken CommonJS import (#373)

2.1.4

05 Sep 11:02
2.1.4
8a4952c

Choose a tag to compare

Fixed

  • Broken import (#342)

2.1.3

03 Sep 07:24
2.1.3
71563f4

Choose a tag to compare

Changed

  • Migrate to TypeScript (#336).
  • Remove docs/ from the npm package.

2.1.2

30 Apr 08:20
2.1.2
7dc260a

Choose a tag to compare

Added

  • skipInternalWarnings flag to avoid console.warn output [#293]

Fixed

  • Use Node.js sort instead of timsort [#328]

2.1.1

28 Apr 17:43

Choose a tag to compare

Fixed

  • Downlevel-revealed closing comment being deleted in safe mode [#278]

2.1.0

19 Oct 16:49

Choose a tag to compare

Added

  • Convert htmlnano to ES Modules [#260]

Fixed

  • Collapse white spaces according to specs [#257]

2.0.4

15 Apr 17:23

Choose a tag to compare

Fixed

  • Should not minify <script> and <style> with SRI [#220]
  • Should not merge <style> or <script> with SRI [#220]
  • Should not minify json with SRI [#220]