Socket
Socket
Sign inDemoInstall

minify-selectors

Package Overview
Dependencies
22
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

2.6.0

Diff

Changelog

Source

v2.6.0

<sub>7 Mar 2024</sub>

Updates

  • Accept JSON configuration file
  • Breaking change: use white-space character to delimiter CLI arguments that can accept multiple values
<br>
1watt
published 2.4.1 •

Changelog

Source

v2.4.1

<sub>18 Feb 2023</sub>

Updates

  • Ability to define custom attributes

Fixes

  • Rename --disable-sort CLI option to --sort
<br>
1watt
published 2.4.0 •

1watt
published 2.3.3 •

Changelog

Source

v2.3.3

<sub>4 Feb 2023</sub>

Updates

  • Add --parallel option to enable concurrent file processing
  • Sort selectors by frequency before generating minified identifiers

Fixes

  • Missing support for aria-controls HTML attribute
  • Do not skip IDs that are only used in markup attributes
  • Encode skipped classes if it conflicts with an encoded one
<br>
1watt
published 2.1.3 •

Changelog

Source

v2.1.3

<sub>17 Jan 2023</sub>

Updates

  • Skip replacing selectors if they are only used in HTML attributes

Fixes

  • Convert any CSS character escapes in prefixed selectors before adding to map
  • HTML closing comment tag being errantly included as part of prefixed selector
  • Accept characters that would be invalid CSS characters in HTML attributes
<br>
1watt
published 2.0.0 •

Changelog

Source

v2.0.0

<sub>13 Jan 2023</sub>

Updates

  • Switch from a single-pass to multi-pass proccess
<br>
1watt
published 1.10.1 •

Changelog

Source

v1.10.1

<sub>1 Dec 2022</sub>

Fixes

  • --input flag not properly defined
<br>
1watt
published 1.10.0 •

Changelog

Source

v1.10.0

<sub>30 Nov 2022</sub>

Updates

  • Add support for named character references in HTML
<br>
1watt
published 1.9.4 •

Changelog

Source

v1.9.4

<sub>22 Nov 2022</sub>

Updates

  • Add support for escaped decimal and hexadecimal character references in HTML
  • Add support for encoded URLs in JS

Fixes

  • Extend escaped CSS character support to include JS selector strings
  • Extend escaped JS character support to include additional JS escapes: hexadecimal, unicode and unicode code points
  • Parse HTML and SVG event attribute values as JS
  • Delimiter char that is not a delimiter can be be mistaken for one when delimiters are not supplied
<br>
1watt
published 1.7.2 •

Changelog

Source

v1.7.2

<sub>9 Nov 2022</sub>

Updates

  • Add support for escaped characters in CSS

Fixes

  • Ignore CSS @import URLs
  • Missing support for matches() JS method
<br>
234Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc