New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-inline

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-inline - npm Package Versions

23

0.11.2

Diff

Changelog

Source

[0.11.2] - 2023-12-09

Performance

  • Avoid iterating over non-Element nodes.
  • Reuse caches for nth index selectors.
stranger6667
published 0.11.1 •

Changelog

Source

[0.11.1] - 2023-12-04

Changed

  • Update indexmap to 2.1.
  • Update cssparser to 0.31.2.
  • Update selectors to 0.25.
  • Bump MSRV to 1.65.

Fixed

  • Replace double quotes in all property values.

Performance

  • Avoid allocation when replacing double quotes in property values.
stranger6667
published 0.11.0 •

Changelog

Source

[0.11.0] - 2023-09-26

Added

  • The inline_style_tags option to control whether inlining from "style" tags should be performed. #253

Performance

  • Reuse existing attributes when creating an element during parsing.

Changed

  • Bump MSRV to 1.63.
stranger6667
published 0.10.5 •

Changelog

Source

[0.10.5] - 2023-08-30

Performance

  • Pre-allocate space during serialization.
  • Optimized class attribute handling: up to 25% faster for extensive class-dependent selectors.
  • Fast-path class check for shorter class attribute values.
  • Use a Bloom filter to detect if an element has no given class.
  • Avoid allocating a vector during selectors compilation.
  • Use FxHasher in more cases.

Changed

  • Drop usage of memchr.
  • Bump MSRV to 1.62.1.
stranger6667
published 0.10.4 •

Changelog

Source

[0.10.4] - 2023-08-12

Fixed

  • Applying new styles only to the first matching tag during styles merging. #224

Performance

  • Fix under-allocating storage for intermediate CSS styles.
  • Perform CSS inlining as late as possible to avoid intermediate allocations. #220
stranger6667
published 0.10.3 •

Changelog

Source

[0.10.3] - 2023-07-01

Performance

  • Optimized HTML serialization for a performance boost of up to 25%.
stranger6667
published 0.10.2 •

Changelog

Source

[0.10.2] - 2023-06-25

Changed

  • Standardized the formatting of CSS declarations: now consistently using : separator between properties and values.

Performance

  • Various performance improvements.
stranger6667
published 0.10.1 •

Changelog

Source

[0.10.1] - 2023-06-18

Performance

  • Use a simpler way for HTML tree traversal.
  • Avoid hashing in some cases.
stranger6667
published 0.10.0 •

Changelog

Source

[0.10.0] - 2023-06-16

Added

  • keep_link_tags configuration option.

Changed

  • Replace remove_style_tags with keep_style_tags.

Fixed

  • SECURITY: Passing unescaped strings in attribute values introduced in #184. Previously, escaped values became unescaped on the serialization step.

Removed

  • The inline_style_tags configuration option.
stranger6667
published 0.9.0 •

Changelog

Source

[0.9.0] - 2023-06-10

Fixed

  • Serialize all HTML attributes without escaping. #184

Internal

  • Replaced the kuchiki crate with our custom-built HTML tree representation. #176

Performance

  • 30-50% average performance improvement due switch to a custom-built HTML tree representation and serializer.
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