|
2 | 2 | All notable changes to this project will be documented in this file.
|
3 | 3 | This project adheres to [Semantic Versioning](http://semver.org/).
|
4 | 4 |
|
| 5 | +## 2.0.0 |
| 6 | +This release completely incompatible with the previous API. There is a lot new options. Please read the documentation. |
| 7 | + |
| 8 | +[A migration guide](https://github.com/hudochenkov/postcss-sorting#migration-from-1x) is available. |
| 9 | + |
| 10 | +### Added |
| 11 | +* `sort-order` split into `order` and `properties-order`. |
| 12 | +* Alphabetical order. |
| 13 | +* At-rules can be checked if they have a block. E.g., `@include icon;` has no block. |
| 14 | +* Custom properties and $-variables can be grouped separately. |
| 15 | +* Empty lines for different node types: |
| 16 | + * `rule-nested-empty-line-before` |
| 17 | + * `at-rule-nested-empty-line-before` |
| 18 | + * `declaration-empty-line-before` |
| 19 | + * `custom-property-empty-line-before` |
| 20 | + * `dollar-variable-empty-line-before` |
| 21 | + * `comment-empty-line-before` |
| 22 | +* `clean-empty-lines`: Remove all empty lines. |
| 23 | + |
| 24 | +### Changed |
| 25 | +* By default all options are disabled, and the plugin does nothing. |
| 26 | +* Empty lines don't delete anymore if only “order” options are enabled. |
| 27 | +* Droped support for Node <4. |
| 28 | + |
| 29 | +### Removed |
| 30 | +* Predefined configs. |
| 31 | +* Command comments `/* postcss-sorting: on/off */` |
| 32 | +* `preserve-empty-lines-between-children-rules` |
| 33 | +* `empty-lines-between-children-rules` |
| 34 | +* `empty-lines-between-media-rules` |
| 35 | +* `empty-lines-before-comment` |
| 36 | +* `empty-lines-after-comment` |
| 37 | + |
5 | 38 | ## 1.7.0
|
6 | 39 | * Added `smacss` and `alphabetical` predefined configs.
|
7 | 40 | * Under the hood refactoring.
|
|
0 commit comments