postcss-custom-media
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -0,1 +1,6 @@ | ||
# 5.0.0 - 2015-08-25 | ||
- Removed: compatibility with postcss v4.x | ||
- Added: compatibility with postcss v5.x | ||
# 4.1.0 - 2015-06-30 | ||
@@ -2,0 +7,0 @@ |
14
index.js
@@ -54,3 +54,3 @@ var postcss = require("postcss") | ||
// read custom media queries | ||
styles.eachAtRule(function(rule) { | ||
styles.walkAtRules(function(rule) { | ||
if (rule.name !== "custom-media") { | ||
@@ -91,3 +91,3 @@ return | ||
// transform custom media query aliases | ||
styles.eachAtRule(function(rule) { | ||
styles.walkAtRules(function(rule) { | ||
if (rule.name !== "media") { | ||
@@ -128,9 +128,11 @@ return | ||
name: "custom-media", | ||
afterName: " ", | ||
params: name + " " + map[name].value, | ||
raws: { | ||
afterName: " ", | ||
}, | ||
}) | ||
styles.append(atRule) | ||
}) | ||
styles.semicolon = true | ||
styles.after = "\n" | ||
styles.raws.semicolon = true | ||
styles.raws.after = "\n" | ||
} | ||
@@ -141,3 +143,3 @@ } | ||
toRemove.forEach(function(rule) { | ||
rule.removeSelf() | ||
rule.remove() | ||
}) | ||
@@ -144,0 +146,0 @@ } |
{ | ||
"name": "postcss-custom-media", | ||
"version": "4.1.0", | ||
"description": " PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS", | ||
"version": "5.0.0", | ||
"description": "PostCSS plugin to transform W3C CSS Custom Media Queries to more compatible CSS", | ||
"keywords": [ | ||
"css", | ||
"postcss", | ||
"postcss-plugins", | ||
"postcss-plugin", | ||
"media queries", | ||
@@ -19,11 +19,9 @@ "custom-media" | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"postcss": "^4.1.4" | ||
"postcss": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^0.23.0", | ||
"eslint": "^1.0.0", | ||
"tape": "^4.0.0" | ||
@@ -30,0 +28,0 @@ }, |
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
8296
129
+ 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.0