Skip to content

Commit

Permalink
chore(release): 4.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Sep 22, 2020
1 parent 453fad3 commit ad53000
Show file tree
Hide file tree
Showing 6 changed files with 2,306 additions and 1,067 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"ecmaVersion": 2018
},
"env": {
"node": true
"es6": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended"
}
Empty file removed .npmignore
Empty file.
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/).

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

### BREAKING CHANGE

- update `icss-utils` for PostCSS 8 compatibility

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

### 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
23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-modules-values",
"version": "4.0.0-rc.0",
"version": "4.0.0-rc.1",
"description": "PostCSS plugin for CSS Modules to pass arbitrary values between your module files",
"main": "src/index.js",
"files": [
Expand All @@ -14,10 +14,11 @@
"eslint": "eslint --ignore-path .gitignore .",
"lint": "yarn eslint && yarn prettier",
"pretest": "yarn lint",
"test": "mocha",
"autotest": "chokidar src test -c 'npm test'",
"cover": "nyc mocha",
"ci": "yarn pretest && yarn cover",
"test": "jest",
"test:only": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
"test:ci": "yarn pretest && yarn cover",
"prepublishOnly": "yarn test"
},
"repository": {
Expand All @@ -36,19 +37,15 @@
},
"homepage": "https://github.com/css-modules/postcss-modules-values#readme",
"devDependencies": {
"chokidar-cli": "^2.1.0",
"codecov.io": "^0.1.6",
"coveralls": "^3.1.0",
"eslint": "^7.9.0",
"mocha": "^8.1.3",
"nyc": "^15.1.0",
"postcss": "^8.0.3",
"jest": "^26.4.2",
"postcss": "^8.0.7",
"prettier": "^2.1.2"
},
"dependencies": {
"icss-utils": "^4.1.1"
"icss-utils": "^5.0.0-rc.0"
},
"peerDependencies": {
"postcss": "^8.0.3"
"postcss": "^8.0.0"
}
}
12 changes: 4 additions & 8 deletions test/index.js → test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
"use strict";

/* global describe, it */

const postcss = require("postcss");
const assert = require("assert");

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

const test = (input, expected) => {
const processor = postcss([constants]);
assert.equal(processor.process(input).css, expected);

expect(expected).toBe(processor.process(input).css);
};

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

assert.equal(warnings.length, 1);
assert.equal(
warnings[0].text,
expect(warnings).toHaveLength(1);
expect(warnings[0].text).toBe(
"Invalid value definition: red blue\n@value green yellow"
);
});
Expand Down
Loading

0 comments on commit ad53000

Please sign in to comment.