postcss-modules-scope
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.0.0-rc.2](https://github.com/postcss-modules-local-by-default/compare/v3.0.0-rc.1...v3.0.0-rc.2) - 2020-10-11 | ||
### BREAKING CHANGE | ||
- minimum supported `postcss` version is `^8.1.0` | ||
### Fixes | ||
- minimum supported `Node.js` version is `^10 || ^12 || >= 14` | ||
- compatibility with PostCSS 8 | ||
## [3.0.0-rc.1](https://github.com/postcss-modules-local-by-default/compare/v3.0.0-rc.0...v3.0.0-rc.1) - 2020-09-22 | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "postcss-modules-scope", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "A CSS Modules transform to extract export statements from local-scope classes", | ||
"main": "src/index.js", | ||
"engines": { | ||
"node": ">= 10.13.0 || >= 12.13.0 || >= 14" | ||
"node": "^10 || ^12 || >= 14" | ||
}, | ||
@@ -39,3 +39,3 @@ "scripts": { | ||
"dependencies": { | ||
"postcss-selector-parser": "^6.0.3" | ||
"postcss-selector-parser": "^6.0.4" | ||
}, | ||
@@ -45,11 +45,12 @@ "devDependencies": { | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"husky": "^4.3.0", | ||
"jest": "^26.4.2", | ||
"lint-staged": "^10.4.0", | ||
"postcss": "^8.0.7", | ||
"postcss": "^8.1.0", | ||
"prettier": "^2.1.2" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.0.0" | ||
"postcss": "^8.1.0" | ||
} | ||
} |
@@ -91,3 +91,3 @@ "use strict"; | ||
postcssPlugin: "postcss-modules-scope", | ||
RootExit(root, { rule }) { | ||
OnceExit(root, { rule }) { | ||
const exports = Object.create(null); | ||
@@ -206,3 +206,3 @@ | ||
rule.walkDecls(/composes|compose-with/, (decl) => { | ||
rule.walkDecls(/composes|compose-with/i, (decl) => { | ||
const localNames = getSingleLocalNamesForComposes(parsedSelector); | ||
@@ -264,8 +264,8 @@ const classes = decl.value.split(/\s+/); | ||
// Find any :local keyframes | ||
root.walkAtRules((atrule) => { | ||
if (/keyframes$/i.test(atrule.name)) { | ||
const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(atrule.params); | ||
root.walkAtRules((atRule) => { | ||
if (/keyframes$/i.test(atRule.name)) { | ||
const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(atRule.params); | ||
if (localMatch) { | ||
atrule.params = exportScopedName(localMatch[1]); | ||
atRule.params = exportScopedName(localMatch[1]); | ||
} | ||
@@ -272,0 +272,0 @@ } |
14587
8