postcss-merge-rules
Advanced tools
Comparing version 1.3.6 to 2.0.0
@@ -0,1 +1,5 @@ | ||
# 2.0.0 | ||
* Upgraded to PostCSS 5. | ||
# 1.3.6 | ||
@@ -2,0 +6,0 @@ |
@@ -102,4 +102,3 @@ 'use strict'; | ||
selector: joinSelectors(first, second), | ||
nodes: [], | ||
before: '' | ||
nodes: [] | ||
}); | ||
@@ -121,8 +120,8 @@ var difference = different(getDecls(first), getDecls(second)); | ||
}; | ||
firstClone.eachDecl(moveDecl(function (decl) { | ||
decl.removeSelf(); | ||
firstClone.walkDecls(moveDecl(function (decl) { | ||
decl.remove(); | ||
recievingBlock.append(decl); | ||
})); | ||
secondClone.eachDecl(moveDecl(function (decl) { | ||
return decl.removeSelf(); | ||
secondClone.walkDecls(moveDecl(function (decl) { | ||
return decl.remove(); | ||
})); | ||
@@ -136,3 +135,3 @@ var merged = ruleLength(firstClone, recievingBlock, secondClone); | ||
if (!r.nodes.length) { | ||
r.removeSelf(); | ||
r.remove(); | ||
} | ||
@@ -145,3 +144,3 @@ }); | ||
} else { | ||
recievingBlock.removeSelf(); | ||
recievingBlock.remove(); | ||
return second; | ||
@@ -170,3 +169,3 @@ } | ||
rule.selector = joinSelectors(cache, rule); | ||
cache.removeSelf(); | ||
cache.remove(); | ||
cache = rule; | ||
@@ -179,9 +178,9 @@ return; | ||
var toString = String(cache); | ||
rule.eachInside(function (decl) { | ||
rule.walk(function (decl) { | ||
if (~toString.indexOf(String(decl))) { | ||
return decl.removeSelf(); | ||
return decl.remove(); | ||
} | ||
decl.moveTo(cache); | ||
}); | ||
rule.removeSelf(); | ||
rule.remove(); | ||
return; | ||
@@ -197,5 +196,5 @@ } | ||
return function (css) { | ||
css.eachRule(selectorMerger()); | ||
css.walkRules(selectorMerger()); | ||
}; | ||
}); | ||
module.exports = exports['default']; |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "1.3.6", | ||
"version": "2.0.0", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -22,6 +22,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"babel": "^5.8.21", | ||
"babel": "^5.8.23", | ||
"babel-tape-runner": "^1.2.0", | ||
"tap-spec": "^4.0.2", | ||
"tape": "^4.1.0" | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.2.0" | ||
}, | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/ben-eb/postcss-merge-rules", | ||
"dependencies": { | ||
"postcss": "^4.1.16" | ||
"postcss": "^5.0.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
12024
202
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedpostcss@5.2.18(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.03.2.3(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjs-base64@2.1.9(transitive)
- Removedpostcss@4.1.16(transitive)
- Removedsource-map@0.4.4(transitive)
Updatedpostcss@^5.0.4