Skip to content

Commit a2801e1

Browse files
chore(release): 4.0.0-rc.5
1 parent cc2ae95 commit a2801e1

File tree

5 files changed

+169
-160
lines changed

5 files changed

+169
-160
lines changed

Diff for: .eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"node": true,
88
"jest": true
99
},
10-
"extends": "eslint:recommended"
10+
"extends": ["eslint:recommended", "prettier"]
1111
}

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [4.0.0-rc.5](https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.4...v4.0.0-rc.5) - 2020-11-08
7+
8+
### Fixes
9+
10+
- compatibility with other plugins
11+
612
## [4.0.0-rc.4](https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.3...v4.0.0-rc.4) - 2020-10-08
713

814
### Fixes

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-modules-values",
3-
"version": "4.0.0-rc.4",
3+
"version": "4.0.0-rc.5",
44
"description": "PostCSS plugin for CSS Modules to pass arbitrary values between your module files",
55
"main": "src/index.js",
66
"files": [
@@ -38,6 +38,7 @@
3838
"devDependencies": {
3939
"coveralls": "^3.1.0",
4040
"eslint": "^7.10.0",
41+
"eslint-config-prettier": "^6.12.0",
4142
"husky": "^4.3.0",
4243
"jest": "^26.5.2",
4344
"lint-staged": "^10.4.0",

Diff for: src/index.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ module.exports = (options) => {
2020
const definitions = {};
2121

2222
return {
23-
AtRule: {
24-
value(atRule) {
23+
OnceExit(root, postcss) {
24+
root.walkAtRules(/value/i, (atRule) => {
2525
const matches = atRule.params.match(matchImports);
2626

2727
if (matches) {
@@ -67,7 +67,6 @@ module.exports = (options) => {
6767

6868
if (normalizedValue.length === 0) {
6969
result.warn("Invalid value definition: " + atRule.params);
70-
7170
atRule.remove();
7271

7372
return;
@@ -86,9 +85,8 @@ module.exports = (options) => {
8685
);
8786

8887
atRule.remove();
89-
},
90-
},
91-
OnceExit(root, postcss) {
88+
});
89+
9290
/* If we have no definitions, don't continue */
9391
if (!Object.keys(definitions).length) {
9492
return;

0 commit comments

Comments
 (0)