Socket
Socket
Sign inDemoInstall

css-declaration-sorter

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-declaration-sorter - npm Package Versions

1245

6.0.2

Diff

Changelog

Source

[6.0.2] - 2020-11-04

Fixed

  • Loading built-in order using a relative path.
siilwyn
published 6.0.1 •

Changelog

Source

[6.0.1] - 2020-10-26

Added

  • ES module export type, both CommonJS and ES module importing are supported.
  • Newer font and grid CSS properties like row-gap and font-display.

Changed

  • Scraping of CSS properties now comes from MDN browser compatibility package.
  • PostCSS upgraded to version eight which changes PostCSS to a peer dependency.
  • Order declarations to be ordered in the precendece of their shorthand counterparts. Special thanks to @DiemenDesign.

Removed

  • Node.js 10 support.
siilwyn
published 6.0.0 •

siilwyn
published 5.1.2 •

Changelog

Source

[5.1.2] - 2020-02-21

Fixed

  • Experimental Node.js warning from showing up on some versions.
siilwyn
published 5.1.1 •

Changelog

Source

[5.1.1] - 2020-02-07

Fixed

  • Handling vendor prefixed declarations such as -moz-animation when sorting with keepOverrides enabled.
siilwyn
published 5.1.0 •

Changelog

Source

[5.1.0] - 2020-02-06

Changed

  • Sorting of unknown properties when sorting alphabetically now works the same as the other orders. Instead of sorting all properties only known properties will be sorted and unknown properties will retain their respective order.
siilwyn
published 5.0.0 •

Changelog

Source

[5.0.0] - 2019-12-16

Added

  • Option keepOverrides to keep overrides in place, useful for legacy CSS where shorthand declarations override longhand declarations.

Changed

  • Default sorting order renamed to alphabetical.
  • Custom sorting order as a JSON file replaced in favor of the option to pass a custom sorting function.

Removed

  • Node.js 6 and 8 support.
siilwyn
published 4.0.1 •

Changelog

Source

[4.0.1] - 2018-07-30

Fixed

  • Invalid package engines node version range.
siilwyn
published 4.0.0 •

Changelog

Source

[4.0.0] - 2018-07-24

Added

  • New flex box shorthand properties which can conflict with existing flex box properties.
  • New ruby, transform and text related properties.

Removed

  • Node.js 4 support.
  • Deprecated grid properties.
siilwyn
published 3.0.1 •

Changelog

Source

[3.0.1] - 2018-01-11

Fixed

  • Keep at-rules at the same position.
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