Skip to content

Commit 532a4e4

Browse files
committed
Rewrite
1 parent caf10ac commit 532a4e4

File tree

10 files changed

+1195
-159
lines changed

10 files changed

+1195
-159
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
2+
cache: yarn
23
node_js:
3-
- stable
4+
- node
5+
- "8"
46
- "6"
5-
- "4"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
- Changed: Updated postcss-selector-parser to version 5.0.0-rc.3
2+
- Changed: Dropped reduce-css-calc as a dependency
3+
- Fixed: Support constant() and env() ([#42](https://github.com/postcss/postcss-calc/issues/42), [#48](https://github.com/postcss/postcss-calc/issues/48))
4+
- Fixed: Support custom properties with "calc" in its name ([#50](https://github.com/postcss/postcss-calc/issues/50))
5+
- Fixed: Remove unnecessary whitespace around `*` and `/` ([cssnano#625](https://github.com/cssnano/cssnano/issues/625))
6+
- Fixed: Arithmetic bugs around subtraction ([#49](https://github.com/postcss/postcss-calc/issues/49))
7+
- Fixed: Handling of nested calc statements ([reduce-css-calc#49](https://github.com/MoOx/reduce-css-calc/issues/49))
8+
- Fixed: Bugs regarding complex calculations ([reduce-cs-calc#45](https://github.com/MoOx/reduce-css-calc/issues/45))
9+
- Fixed: `100%` incorrectly being transformed to `1` ([reduce-css-calc#44](https://github.com/MoOx/reduce-css-calc/issues/44))
10+
- Added: support for case-insensitive calc statements
11+
112
# 6.0.2 - 2018-09-25
213

314
- Fixed: use PostCSS 7 (thanks to @douglasduteil)

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"LICENSE"
1616
],
1717
"scripts": {
18-
"prepublish": "npm run build && del-cli dist/__tests__",
19-
"build": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist",
18+
"prepublish": "npm run build",
19+
"build": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist --ignore src/__tests__/**/*.js && jison src/parser.jison -o dist/parser.js",
2020
"pretest": "eslint src && npm run build",
21-
"test": "ava src/__tests__/"
21+
"test": "ava"
2222
},
23-
"author": "Maxime Thirouin",
23+
"author": "Andy Jansson",
2424
"license": "MIT",
2525
"repository": "https://github.com/postcss/postcss-calc.git",
2626
"eslintConfig": {
@@ -30,6 +30,7 @@
3030
"devDependencies": {
3131
"@babel/cli": "^7.0.0",
3232
"@babel/core": "^7.0.0",
33+
"@babel/polyfill": "^7.0.0",
3334
"@babel/preset-env": "^7.0.0",
3435
"@babel/register": "^7.0.0",
3536
"ava": "^1.0.0-beta.8",
@@ -40,15 +41,19 @@
4041
"eslint": "^5.6.1",
4142
"eslint-config-i-am-meticulous": "^11.0.0",
4243
"eslint-plugin-babel": "^5.2.1",
43-
"eslint-plugin-import": "^2.2.0"
44+
"eslint-plugin-import": "^2.2.0",
45+
"jison-gho": "^0.6.1-215"
4446
},
4547
"dependencies": {
4648
"css-unit-converter": "^1.1.1",
4749
"postcss": "^7.0.2",
4850
"postcss-selector-parser": "^5.0.0-rc.3",
49-
"reduce-css-calc": "^2.0.0"
51+
"postcss-value-parser": "^3.3.0"
5052
},
5153
"ava": {
52-
"require": "@babel/register"
54+
"require": [
55+
"@babel/register",
56+
"@babel/polyfill"
57+
]
5358
}
5459
}

0 commit comments

Comments
 (0)