Skip to content

Commit 69672aa

Browse files
chore(release): 3.0.0-rc.1
1 parent e820083 commit 69672aa

File tree

6 files changed

+35
-256
lines changed

6 files changed

+35
-256
lines changed

.travis.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ node_js:
55
- "12"
66
- "14"
77

8-
script: yarn ci
9-
10-
after_success:
11-
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
12-
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
13-
- rm -rf ./coverage
8+
script: yarn test && coveralls < coverage/lcov.info

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
This project adheres to [Semantic Versioning](http://semver.org/).
5+
6+
## [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-18
7+
8+
### Fixes
9+
10+
- avoid using `postcss` directly for new rules and decls
11+
12+
## [3.0.0-rc.0](https://github.com/postcss-modules-local-by-default/compare/2.0.0...v3.0.0-rc.0) - 2020-09-18
13+
14+
### BREAKING CHANGE
15+
16+
- minimum supported `Node.js` version is `>= 10.13.0 || >= 12.13.0 || >= 14`
17+
- minimum supported `postcss` version is `^8.0.3`
18+
- `postcss` was moved to `peerDependencies`, you need to install `postcss` in your project before use the plugin

lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
"*.js": ["prettier --write", "eslint --fix"],
2+
"*.js": ["eslint --fix", "prettier --write"],
33
"*.{json,md,yml,css,ts}": ["prettier --write"],
44
};

package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-modules-extract-imports",
3-
"version": "3.0.0-rc.0",
3+
"version": "3.0.0-rc.1",
44
"description": "A CSS Modules transform to extract local aliases for inline imports",
55
"main": "src/index.js",
66
"engines": {
@@ -13,11 +13,11 @@
1313
"prettier": "prettier -l --ignore-path .gitignore . \"!test/test-cases\"",
1414
"eslint": "eslint --ignore-path .gitignore .",
1515
"lint": "yarn eslint && yarn prettier",
16+
"test:only": "jest",
17+
"test:watch": "jest --watch",
18+
"test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
1619
"pretest": "yarn lint",
17-
"test": "jest --coverage",
18-
"autotest": "jest --coverage --watch",
19-
"cover": "jest --coverage",
20-
"ci": "yarn pretest && yarn cover",
20+
"test": "yarn test:coverage",
2121
"prepublishOnly": "yarn test"
2222
},
2323
"repository": {
@@ -36,16 +36,15 @@
3636
},
3737
"homepage": "https://github.com/css-modules/postcss-modules-extract-imports",
3838
"devDependencies": {
39-
"codecov.io": "^0.1.6",
4039
"coveralls": "^3.1.0",
4140
"eslint": "^7.9.0",
4241
"husky": "^4.3.0",
4342
"jest": "^26.4.2",
4443
"lint-staged": "^10.4.0",
45-
"postcss": "^8.0.6",
44+
"postcss": "^8.0.7",
4645
"prettier": "^2.1.2"
4746
},
4847
"peerDependencies": {
49-
"postcss": "^8.0.6"
48+
"postcss": "^8.0.0"
5049
}
5150
}

src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const postcss = require("postcss");
21
const topologicalSort = require("./topologicalSort");
32

43
const declWhitelist = ["composes"];
@@ -64,7 +63,7 @@ module.exports = (options = {}) => {
6463

6564
return {
6665
postcssPlugin: "postcss-modules-extract-imports",
67-
RootExit(root) {
66+
RootExit(root, postcss) {
6867
const graph = {};
6968
const visited = {};
7069

0 commit comments

Comments
 (0)