Skip to content

Commit

Permalink
chore(release): 3.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Sep 22, 2020
2 parents e820083 + ec78551 commit f17f368
Show file tree
Hide file tree
Showing 6 changed files with 213 additions and 397 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@ node_js:
- "12"
- "14"

script: yarn ci

after_success:
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
- rm -rf ./coverage
script: yarn test && coveralls < coverage/lcov.info
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Change Log

All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [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

### Fixes

- avoid using `postcss` directly for new rules and decls

## [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

### BREAKING CHANGE

- minimum supported `Node.js` version is `>= 10.13.0 || >= 12.13.0 || >= 14`
- minimum supported `postcss` version is `^8.0.3`
- `postcss` was moved to `peerDependencies`, you need to install `postcss` in your project before use the plugin
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
"*.js": ["prettier --write", "eslint --fix"],
"*.js": ["eslint --fix", "prettier --write"],
"*.{json,md,yml,css,ts}": ["prettier --write"],
};
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-modules-extract-imports",
"version": "3.0.0-rc.0",
"version": "3.0.0-rc.1",
"description": "A CSS Modules transform to extract local aliases for inline imports",
"main": "src/index.js",
"engines": {
Expand All @@ -13,11 +13,11 @@
"prettier": "prettier -l --ignore-path .gitignore . \"!test/test-cases\"",
"eslint": "eslint --ignore-path .gitignore .",
"lint": "yarn eslint && yarn prettier",
"test:only": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
"pretest": "yarn lint",
"test": "jest --coverage",
"autotest": "jest --coverage --watch",
"cover": "jest --coverage",
"ci": "yarn pretest && yarn cover",
"test": "yarn test:coverage",
"prepublishOnly": "yarn test"
},
"repository": {
Expand All @@ -36,16 +36,15 @@
},
"homepage": "https://github.com/css-modules/postcss-modules-extract-imports",
"devDependencies": {
"codecov.io": "^0.1.6",
"coveralls": "^3.1.0",
"eslint": "^7.9.0",
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": "^10.4.0",
"postcss": "^8.0.6",
"postcss": "^8.0.7",
"prettier": "^2.1.2"
},
"peerDependencies": {
"postcss": "^8.0.6"
"postcss": "^8.0.0"
}
}
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const postcss = require("postcss");
const topologicalSort = require("./topologicalSort");

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

return {
postcssPlugin: "postcss-modules-extract-imports",
RootExit(root) {
RootExit(root, postcss) {
const graph = {};
const visited = {};

Expand Down
Loading

0 comments on commit f17f368

Please sign in to comment.