css-declaration-sorter
Advanced tools
Comparing version
@@ -5,2 +5,6 @@ # Changelog | ||
## [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. | ||
## [5.0.0] - 2019-12-16 | ||
@@ -56,2 +60,3 @@ ### Added | ||
[5.1.0]: https://github.com/Siilwyn/css-declaration-sorter/compare/v5.0.0...v5.1.0 | ||
[5.0.0]: https://github.com/Siilwyn/css-declaration-sorter/compare/v4.0.1...v5.0.0 | ||
@@ -58,0 +63,0 @@ [4.0.1]: https://github.com/Siilwyn/css-declaration-sorter/compare/v4.0.0...v4.0.1 |
{ | ||
"name": "css-declaration-sorter", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Sorts CSS declarations fast and automatically in a certain order.", | ||
@@ -20,3 +20,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"postcss": "^7.0.25", | ||
"postcss": "^7.0.26", | ||
"timsort": "^0.3.0" | ||
@@ -26,4 +26,4 @@ }, | ||
"benchmark": "^2.1.4", | ||
"eslint": "^6.7.2", | ||
"tape": "^4.11.0" | ||
"eslint": "^6.8.0", | ||
"tape": "^4.13.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
<img alt='CSS declaration sorter logo' src='https://cdn.rawgit.com/Siilwyn/css-declaration-sorter/master/logo.svg' height='260' align='right'> | ||
<img alt='CSS declaration sorter logo' src='https://raw.githubusercontent.com/Siilwyn/css-declaration-sorter/master/logo.svg?sanitize=true' height='260' align='right'> | ||
@@ -3,0 +3,0 @@ # CSS Declaration Sorter |
@@ -36,9 +36,2 @@ 'use strict'; | ||
if (order === 'alphabetical') { | ||
return processCss({ | ||
css, | ||
comparator: withKeepOverrides(defaultComparator), | ||
}); | ||
} | ||
// Load in the array containing the order from a JSON file | ||
@@ -45,0 +38,0 @@ return readFile(path.join(__dirname, '..', 'orders', order) + '.json') |
35510
0.64%1241
-0.48%Updated