postcss-merge-rules
Advanced tools
Comparing version 4.0.0-nightly.2020.1.9 to 4.0.0-nightly.2020.1.11
@@ -10,4 +10,2 @@ "use strict"; | ||
var _postcss = _interopRequireDefault(require("postcss")); | ||
var _vendors = _interopRequireDefault(require("vendors")); | ||
@@ -422,16 +420,28 @@ | ||
var _default = _postcss.default.plugin('postcss-merge-rules', () => { | ||
return (css, result) => { | ||
const resultOpts = result.opts || {}; | ||
const browsers = (0, _browserslist.default)(null, { | ||
stats: resultOpts.stats, | ||
path: __dirname, | ||
env: resultOpts.env | ||
}); | ||
const compatibilityCache = {}; | ||
css.walkRules(selectorMerger(browsers, compatibilityCache)); | ||
function pluginCreator() { | ||
return { | ||
postcssPlugin: 'postcss-merge-rules', | ||
prepare(result) { | ||
const resultOpts = result.opts || {}; | ||
const browsers = (0, _browserslist.default)(null, { | ||
stats: resultOpts.stats, | ||
path: __dirname, | ||
env: resultOpts.env | ||
}); | ||
const compatibilityCache = {}; | ||
return { | ||
OnceExit(css) { | ||
css.walkRules(selectorMerger(browsers, compatibilityCache)); | ||
} | ||
}; | ||
} | ||
}; | ||
}); | ||
} | ||
pluginCreator.postcss = true; | ||
var _default = pluginCreator; | ||
exports.default = _default; | ||
module.exports = exports.default; |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "4.0.0-nightly.2020.1.9", | ||
"version": "4.0.0-nightly.2020.1.11", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -30,7 +30,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"browserslist": "^4.6.0", | ||
"browserslist": "^4.16.0", | ||
"caniuse-api": "^3.0.0", | ||
"cssnano-utils": "nightly", | ||
"postcss": "^7.0.16", | ||
"postcss-selector-parser": "^3.1.1", | ||
"postcss-selector-parser": "^6.0.4", | ||
"vendors": "^1.0.3" | ||
@@ -43,3 +42,9 @@ }, | ||
"node": ">=10.13.0" | ||
}, | ||
"devDependencies": { | ||
"postcss": "^8.2.1" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.2.1" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18861
485
0
1
+ Addedcssesc@3.0.0(transitive)
+ Addedpostcss-selector-parser@6.1.2(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedpostcss@^7.0.16
- Removeddot-prop@5.3.0(transitive)
- Removedindexes-of@1.0.1(transitive)
- Removedis-obj@2.0.0(transitive)
- Removedpicocolors@0.2.1(transitive)
- Removedpostcss@7.0.39(transitive)
- Removedpostcss-selector-parser@3.1.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removeduniq@1.0.1(transitive)
Updatedbrowserslist@^4.16.0