Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmlnano

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlnano - npm Package Versions

234

2.1.1

Diff

Changelog

Source

[2.1.1] - 2024-04-28

Fixed

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

Changelog

Source

[2.1.0] - 2023-10-19

Added

  • Convert htmlnano to ES Modules [#260]

Fixed

  • Collapse white spaces according to specs [#257]
maltsev
published 2.0.4 •

Changelog

Source

[2.0.4] - 2023-04-15

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]
maltsev
published 2.0.3 •

Changelog

Source

[2.0.3] - 2022-11-13

Added

  • Minify function for HtmlMinimizerWebpackPlugin

Fixed

  • collapseWhitespace: handle textNode when comment is preserved [#184]
  • minifyUrls: srcset & javascript: url [#185]
  • Correct missing value default usage
  • collapseBooleanAttributes: empty string attributes
  • Guard type of attributes' value [#195]
  • Do not choke on svg error [#197]

Changed

  • Minify based on invalid value default
  • Avoid hardcoding preset keys
maltsev
published 2.0.2 •

Changelog

Source

[2.0.2] - 2022-04-06

Fixed

  • JSON-LD crash [#182]
maltsev
published 2.0.1 •

Changelog

Source

[2.0.1] - 2022-04-04

This version contains a critical bug [#182]. Don't use it.

Changed

  • Speed improvements [#127]
  • Fix <img sizes> [#180]
maltsev
published 2.0.0 •

Changelog

Source

[2.0.0] - 2022-01-12

The major version has to be released because of vulnerability in PostCSS (see [#165])

Changed

  • Support optional dependencies [#168] (minifyUrl, minifyJs, removeUnusedCss, minifyCss). This might be a breaking change for you. Check the docs: https://github.com/posthtml/htmlnano/pull/168/files
  • Disable mergeScripts & mergeStyles in the safe preset [#170].
maltsev
published 1.1.1 •

Changelog

Source

[1.1.1] - 2021-09-19

This version fixes fatal errors introduced in [1.1.0].

maltsev
published 1.1.0 •

Changelog

Source

[1.1.0] - 2021-09-19

This version contains fatal errors. Please use [1.1.1] instead.

Added

  • Collapse missing value default attribute in removeRedundantAttributes [#158].
  • New normalizeAttributeValues module to normalize casing of attribute values [#163].
  • Custom matcher for removeComments [#156].

Changed

  • Remove more empty attributes in removeEmptyAttributes [#161].
  • Enhance collapse whitespace in collapseWhitespace [#145].
  • minifyJs and minifyUrls enhancement [#159].
  • Enhance attribute collapse whitespace in collapseAttributeWhitespace [#157].
maltsev
published 1.0.1 •

Changelog

Source

[1.0.1] - 2021-09-11

Added

  • Support of @novaatwarren/uncss fork [#154]

Changed

  • SVGO plugins configuration [#153]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc