Socket
Socket
Sign inDemoInstall

postcss-sorting

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-sorting - npm Package Versions

134

4.0.0

Diff

Changelog

Source

4.0.0

  • Breaking change: Dropped Node.js 4 support. Node.js 6.14.3 is the minimum supported version.
  • Could be a breaking change: Plugin won't sort inside some at-rule (mostly Sass specific directives). Read more about ignored at-rules.
  • Added: at-variables keyword for order.
hudochenkov
published 3.1.0 •

Changelog

Source

3.1.0

  • Added: throw-validate-errors option.
hudochenkov
published 3.0.2 •

Changelog

Source

3.0.2

  • Changed: Show more helpful error messages for invalid config.
hudochenkov
published 3.0.1 •

Changelog

Source

3.0.1

  • Fixed: Inconsistent sorting for the same name properties in properties-order.
hudochenkov
published 3.0.0 •

Changelog

Source

3.0.0

This is a cleanup release. Removed everything not related to ordering stylesheets. I recommend to use combination stylelint 7.11+ with --fix option and stylelint-order 0.5+ plugin instead of this plugin. Using combination above you'll receive linting and autofixing using only one tool!

  • Removed options:
    • at-rule-nested-empty-line-before
    • clean-empty-lines
    • comment-empty-line-before
    • custom-property-empty-line-before
    • declaration-empty-line-before
    • dollar-variable-empty-line-before
    • rule-nested-empty-line-before
  • Changes to properties-order:
    • Removed emptyLineBefore option.
    • Removed objects support in configuration. Use plain arrays instead.
  • Updated to PostCSS 6.
hudochenkov
published 2.1.0 •

Changelog

Source

2.1.0

  • Added: order supports new rule extended object, which has new selector option. Rules in order can be specified by their selector.
  • Fixed: Inconsistency with shared line comments.
  • Fixed: Incorrect behaviour if hasBlock was set to false in extended at-rule object in order.
hudochenkov
published 2.0.1 •

Changelog

Source

2.0.1

  • Accept null for all options.
hudochenkov
published 2.0.0 •

Changelog

Source

2.0.0

This release completely incompatible with the previous API. There is a lot new options. Please read the documentation.

A migration guide is available.

Added

  • sort-order split into order and properties-order.
  • Alphabetical order.
  • At-rules can be checked if they have a block. E.g., @include icon; has no block.
  • Custom properties and $-variables can be grouped separately.
  • Empty lines for different node types:
    • rule-nested-empty-line-before
    • at-rule-nested-empty-line-before
    • declaration-empty-line-before
    • custom-property-empty-line-before
    • dollar-variable-empty-line-before
    • comment-empty-line-before
  • clean-empty-lines: Remove all empty lines.

Changed

  • By default all options are disabled, and the plugin does nothing.
  • Empty lines don't delete anymore if only “order” options are enabled.
  • Dropped support for Node <4.

Removed

  • Predefined configs.
  • Command comments /* postcss-sorting: on/off */
  • preserve-empty-lines-between-children-rules
  • empty-lines-between-children-rules
  • empty-lines-between-media-rules
  • empty-lines-before-comment
  • empty-lines-after-comment
hudochenkov
published 1.7.0 •

Changelog

Source

1.7.0

  • Added smacss and alphabetical predefined configs.
  • Under the hood refactoring.
hudochenkov
published 1.6.1 •

Changelog

Source

1.6.1

  • Fixed a regression in 1.6.0. Sort order with item like @include media didn't found rules like @include media(">=desk") {}.
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