Skip to content

Commit ad53000

Browse files
chore(release): 4.0.0-rc.1
1 parent 453fad3 commit ad53000

File tree

6 files changed

+2306
-1067
lines changed

6 files changed

+2306
-1067
lines changed

.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"ecmaVersion": 2018
44
},
55
"env": {
6-
"node": true
6+
"es6": true,
7+
"node": true,
8+
"jest": true
79
},
810
"extends": "eslint:recommended"
911
}

.npmignore

Whitespace-only changes.

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+
## [4.0.0-rc.1](https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.0...v4.0.0-rc.1) - 2020-09-22
7+
8+
### BREAKING CHANGE
9+
10+
- update `icss-utils` for PostCSS 8 compatibility
11+
12+
## [4.0.0-rc.0](https://github.com/postcss-modules-local-by-default/compare/v3.0.0...v4.0.0-rc.1) - 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

package.json

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-modules-values",
3-
"version": "4.0.0-rc.0",
3+
"version": "4.0.0-rc.1",
44
"description": "PostCSS plugin for CSS Modules to pass arbitrary values between your module files",
55
"main": "src/index.js",
66
"files": [
@@ -14,10 +14,11 @@
1414
"eslint": "eslint --ignore-path .gitignore .",
1515
"lint": "yarn eslint && yarn prettier",
1616
"pretest": "yarn lint",
17-
"test": "mocha",
18-
"autotest": "chokidar src test -c 'npm test'",
19-
"cover": "nyc mocha",
20-
"ci": "yarn pretest && yarn cover",
17+
"test": "jest",
18+
"test:only": "jest",
19+
"test:watch": "jest --watch",
20+
"test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
21+
"test:ci": "yarn pretest && yarn cover",
2122
"prepublishOnly": "yarn test"
2223
},
2324
"repository": {
@@ -36,19 +37,15 @@
3637
},
3738
"homepage": "https://github.com/css-modules/postcss-modules-values#readme",
3839
"devDependencies": {
39-
"chokidar-cli": "^2.1.0",
40-
"codecov.io": "^0.1.6",
41-
"coveralls": "^3.1.0",
4240
"eslint": "^7.9.0",
43-
"mocha": "^8.1.3",
44-
"nyc": "^15.1.0",
45-
"postcss": "^8.0.3",
41+
"jest": "^26.4.2",
42+
"postcss": "^8.0.7",
4643
"prettier": "^2.1.2"
4744
},
4845
"dependencies": {
49-
"icss-utils": "^4.1.1"
46+
"icss-utils": "^5.0.0-rc.0"
5047
},
5148
"peerDependencies": {
52-
"postcss": "^8.0.3"
49+
"postcss": "^8.0.0"
5350
}
5451
}

test/index.js test/index.test.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
"use strict";
2-
3-
/* global describe, it */
4-
52
const postcss = require("postcss");
6-
const assert = require("assert");
73

84
const constants = require("../src");
95

106
const test = (input, expected) => {
117
const processor = postcss([constants]);
12-
assert.equal(processor.process(input).css, expected);
8+
9+
expect(expected).toBe(processor.process(input).css);
1310
};
1411

1512
describe("constants", () => {
@@ -27,9 +24,8 @@ describe("constants", () => {
2724
const result = processor.process(input);
2825
const warnings = result.warnings();
2926

30-
assert.equal(warnings.length, 1);
31-
assert.equal(
32-
warnings[0].text,
27+
expect(warnings).toHaveLength(1);
28+
expect(warnings[0].text).toBe(
3329
"Invalid value definition: red blue\n@value green yellow"
3430
);
3531
});

0 commit comments

Comments
 (0)