Skip to content

Commit e1a86cd

Browse files
author
Jed Mao
committed
Upgrade to PostCSS 5.x
1 parent 29c4b46 commit e1a86cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ for (var prop in fontVariantProperties) {
6868
// create if does not exist
6969
function getFontFeatureSettingsPrevTo(decl) {
7070
var fontFeatureSettings = null;
71-
decl.parent.eachDecl(function(decl) {
71+
decl.parent.walkDecls(function(decl) {
7272
if (decl.prop === "font-feature-settings") {
7373
fontFeatureSettings = decl;
7474
}
@@ -88,10 +88,10 @@ function getFontFeatureSettingsPrevTo(decl) {
8888
*/
8989
module.exports = postcss.plugin("postcss-font-variant", function() {
9090
return function(styles) {
91-
styles.eachRule(function(rule) {
91+
styles.walkRules(function(rule) {
9292
var fontFeatureSettings = null
9393
// read custom media queries
94-
rule.eachDecl(function(decl) {
94+
rule.walkDecls(function(decl) {
9595
if (!fontVariantProperties[decl.prop]) {
9696
return null
9797
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"index.js"
2323
],
2424
"dependencies": {
25-
"postcss": "^4.1.16"
25+
"postcss": "^5.0.4"
2626
},
2727
"devDependencies": {
2828
"jscs": "^2.1.0",

0 commit comments

Comments
 (0)