postcss-minify-selectors
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,5 @@ | ||
# 2.0.1 | ||
* Replaced javascript-natural-sort with alphanum-sort (thanks to @TrySound). | ||
# 2.0.0 | ||
@@ -2,0 +6,0 @@ |
'use strict'; | ||
var postcss = require('postcss'); | ||
var natural = require('javascript-natural-sort'); | ||
var sort = require('alphanum-sort'); | ||
var unquote = require('./lib/unquote'); | ||
@@ -34,5 +34,3 @@ var parser = require('postcss-selector-parser'); | ||
rule.selector = getParsed(selector, function (selectors) { | ||
selectors.nodes.sort(function (a, b) { | ||
return natural(String(a), String(b)); | ||
}); | ||
selectors.nodes = sort(selectors.nodes, {insensitive: true}); | ||
var uniqueSelectors = []; | ||
@@ -39,0 +37,0 @@ selectors.eachInside(function (selector) { |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Minify selectors with PostCSS.", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"lib", | ||
"LICENSE-MIT" | ||
], | ||
"scripts": { | ||
@@ -37,3 +42,3 @@ "lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/stylish.js", | ||
"dependencies": { | ||
"javascript-natural-sort": "^0.7.1", | ||
"alphanum-sort": "^1.0.1", | ||
"postcss": "^5.0.4", | ||
@@ -40,0 +45,0 @@ "postcss-selector-parser": "^1.1.4" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8562
6
95
+ Addedalphanum-sort@^1.0.1
+ Addedalphanum-sort@1.0.2(transitive)
- Removedjavascript-natural-sort@^0.7.1
- Removedjavascript-natural-sort@0.7.1(transitive)