Skip to content

Commit 6401e35

Browse files
committed
2.1.7
1 parent 9e22d43 commit 6401e35

File tree

3 files changed

+46
-40
lines changed

3 files changed

+46
-40
lines changed

CHANGELOG.md

+35-29
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,64 @@
1-
# 2.1.6 - 2019-01-11
1+
# Changelog of `reduce-css-call`
2+
3+
## 2.1.7 - 2019-10-22
4+
5+
- Switch to a maintained jison fork ([#57](https://github.com/MoOx/reduce-css-calc/pull/57)) - @davidgovea)
6+
7+
## 2.1.6 - 2019-01-11
28

39
- Fixed: Incorrect calculation when subtracting (e.g. `calc(100% - calc(120px + 1em + 2em + 100px))`) ([#52](https://github.com/MoOx/reduce-css-calc/pull/53) - @sylvainpolletvillard)
410

5-
# 2.1.5 - 2018-09-20
11+
## 2.1.5 - 2018-09-20
612

713
- [Avoid breaking when seeing ` constant()`` or `env()`](https://github.com/MoOx/reduce-css-calc/commit/409c9ba2cd5e06e7f8f679f7f0c3c3a14ff3e673) by @dlee
814

9-
# 2.1.4 - 2018-01-22
15+
## 2.1.4 - 2018-01-22
1016

1117
- Prevent webpack parsing issue
1218
(see https://github.com/zaach/jison/pull/352)
1319

14-
# 2.1.3 - 2017-11-27
20+
## 2.1.3 - 2017-11-27
1521

1622
- Fixed: Incorrect reduction for a specific case (e.g. `calc(1em + (1em - 5px))`) ([#43](https://github.com/MoOx/reduce-css-calc/pull/43) - @Justineo)
1723

18-
# 2.1.2 - 2017-11-26
24+
## 2.1.2 - 2017-11-26
1925

2026
- Fixed: Incorrect reduction of division with custom property (e.g. `calc(var(--foo) / 2)`) ([#41](https://github.com/MoOx/reduce-css-calc/issues/41) - @Semigradsky)
2127

22-
# 2.1.1 - 2017-10-12
28+
## 2.1.1 - 2017-10-12
2329

2430
- Fixed: Incorrect reduction of nested expression (e.g. `calc( (1em - calc( 10px + 1em)) / 2)`) ([#39](https://github.com/MoOx/reduce-css-calc/pull/39) - @gyoshev)
2531

26-
# 2.1.0 - 2017-10-10
32+
## 2.1.0 - 2017-10-10
2733

2834
- Added: Support for working in browsers without transpiling ([#36](https://github.com/MoOx/reduce-css-calc/pull/36) - @Semigradsky)
2935
- Fixed: `calc(100vw - (100vw - 100%))` does not evaluate to `100%` ([#35](https://github.com/MoOx/reduce-css-calc/pull/35) - @Semigradsky)
3036

31-
# 2.0.5 - 2017-05-12
37+
## 2.0.5 - 2017-05-12
3238

3339
- Fixed: Support division with a CSS variable.
3440

35-
# 2.0.4 - 2017-05-09
41+
## 2.0.4 - 2017-05-09
3642

3743
- Fixed: CSS variable regex was overly greedy and caused a crash in some
3844
cases. ([#27](https://github.com/MoOx/reduce-css-calc/pull/27) - @andyjansson)
3945

40-
# 2.0.3 - 2017-05-09
46+
## 2.0.3 - 2017-05-09
4147

4248
- Fixed: Regression in handling decimals without having any numbers after
4349
the decimal place (e.g. `10.px`).
4450

45-
# 2.0.2 - 2017-05-08
51+
## 2.0.2 - 2017-05-08
4652

4753
- Fixed: Regression in consecutive subtraction handling
4854
([#25](https://github.com/MoOx/reduce-css-calc/pull/25) - @andyjansson)
4955

50-
# 2.0.1 - 2017-05-08
56+
## 2.0.1 - 2017-05-08
5157

5258
- Fixed: Support for nested calc e.g. `calc(100% - calc(50px - 25px))`.
5359
- Fixed: Support for CSS variables e.g. `calc(var(--mouseX) * 1px)`.
5460

55-
# 2.0.0 - 2017-05-08
61+
## 2.0.0 - 2017-05-08
5662

5763
- Rewritten with a jison parser for more accurate value parsing.
5864
- Breaking: reduce-css-calc will now throw when trying to multiply or divide
@@ -69,86 +75,86 @@
6975

7076
([#22](https://github.com/MoOx/reduce-css-calc/pull/22) - @andyjansson)
7177

72-
# 1.3.0 - 2016-08-26
78+
## 1.3.0 - 2016-08-26
7379

7480
- Added: calc identifier from unresolved nested expressions are removed for
7581
better browser support
7682
([#19](https://github.com/MoOx/reduce-css-calc/pull/19) - @ben-eb)
7783

78-
# 1.2.8 - 2016-08-26
84+
## 1.2.8 - 2016-08-26
7985

8086
- Fixed: regression from 1.2.5 on calc() with value without leading 0
8187
([#17](https://github.com/MoOx/reduce-css-calc/pull/17) - @ben-eb)
8288

83-
# 1.2.7 - 2016-08-22
89+
## 1.2.7 - 2016-08-22
8490

8591
- Fixed: regression from 1.2.5 on calc() with value without leading 0
8692
(@MoOx)
8793

88-
# 1.2.6 - 2016-08-22
94+
## 1.2.6 - 2016-08-22
8995

9096
- Fixed: regression from 1.2.5 on calc() on multiple lines
9197
(@MoOx)
9298

93-
# 1.2.5 - 2016-08-22
99+
## 1.2.5 - 2016-08-22
94100

95101
- Fixed: security issue due to the usage of `eval()`.
96102
This is to avoid an arbitrary code execution.
97103
Now operations are resolved using
98104
[`math-expression-evaluator`](https://github.com/redhivesoftware/math-expression-evaluator)
99105

100-
# 1.2.4 - 2016-06-09
106+
## 1.2.4 - 2016-06-09
101107

102108
- Fixed: zero values are not unitless anymore.
103109
Browsers do not calculate calc() with 0 unitless values.
104110
http://jsbin.com/punivivipo/edit?html,css,output
105111
([#11](https://github.com/MoOx/reduce-css-calc/pull/11))
106112

107-
# 1.2.3 - 2016-04-28
113+
## 1.2.3 - 2016-04-28
108114

109115
- Fixed: wrong rouding in some edge cases
110116
([#10](https://github.com/MoOx/reduce-css-calc/pull/10))
111117

112-
# 1.2.2 - 2016-04-19
118+
## 1.2.2 - 2016-04-19
113119

114120
- Fixed: Don't reduce expression containing CSS variables.
115121
([#9](https://github.com/MoOx/reduce-css-calc/pull/9))
116122

117-
# 1.2.1 - 2016-02-22
123+
## 1.2.1 - 2016-02-22
118124

119125
- Fixed: uppercase letters in units are now supported
120126
([#8](https://github.com/MoOx/reduce-css-calc/pull/8))
121127

122-
# 1.2.0 - 2014-11-24
128+
## 1.2.0 - 2014-11-24
123129

124130
- Decimal precision is now customisable as the `precision` option
125131

126-
# 1.1.4 - 2014-11-12
132+
## 1.1.4 - 2014-11-12
127133

128134
- 5 decimals rounding for everything
129135

130-
# 1.1.3 - 2014-08-13
136+
## 1.1.3 - 2014-08-13
131137

132138
- 5 decimals rounding for percentage
133139

134-
# 1.1.2 - 2014-08-10
140+
## 1.1.2 - 2014-08-10
135141

136142
- Prevent infinite loop by adding a `Call stack overflow`
137143
- Correctly ignore unrecognized values (safer evaluation for nested expressions,
138144
see [postcss/postcss-calc#2](https://github.com/postcss/postcss-calc/issues/2))
139145
- Handle rounding issues (eg: 10% \* 20% now give 2%, not 2.0000000000000004%)
140146

141-
# 1.1.1 - 2014-08-06
147+
## 1.1.1 - 2014-08-06
142148

143149
- Fix issue when using mutiples differents prefixes in the same function
144150

145-
# 1.1.0 - 2014-08-06
151+
## 1.1.0 - 2014-08-06
146152

147153
- support more complex formulas
148154
- use `reduce-function-call`
149155
- better error message
150156

151-
# 1.0.0 - 2014-08-04
157+
## 1.0.0 - 2014-08-04
152158

153159
First release
154160

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reduce-css-calc",
3-
"version": "2.1.6",
3+
"version": "2.1.7",
44
"description": "Reduce CSS calc() function to the maximum",
55
"keywords": [
66
"css",
@@ -36,7 +36,7 @@
3636
"eslint-plugin-babel": "^4.0.0",
3737
"eslint-plugin-import": "^2.2.0",
3838
"jison-gho": "^0.6.1-216",
39-
"npmpub": "^4.0.0"
39+
"npmpub": "^5.0.0"
4040
},
4141
"dependencies": {
4242
"css-unit-converter": "^1.1.1",

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -2304,10 +2304,10 @@ get-value@^2.0.3, get-value@^2.0.6:
23042304
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
23052305
integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=
23062306

2307-
github-release-from-changelog@^1.3.2:
2308-
version "1.3.2"
2309-
resolved "https://registry.yarnpkg.com/github-release-from-changelog/-/github-release-from-changelog-1.3.2.tgz#a4ba87e3f2a568414f724ca37d3b4ab16647c9ca"
2310-
integrity sha512-3Cj5zazWfk9heJzBSXxBsh9xQSYt8ZOseresfNeHewFVC2g0Au9181xob9eXTv4hRysi9k3gRVCXOUmBH+J2bA==
2307+
github-release-from-changelog@^2.0.0:
2308+
version "2.1.0"
2309+
resolved "https://registry.yarnpkg.com/github-release-from-changelog/-/github-release-from-changelog-2.1.0.tgz#7c6974862eff9ea3b5b96edffaeab711457e011e"
2310+
integrity sha512-3g8UfE3Ywls6NC5UlANXVfemSculsRRRU449sWCaHE7ekgdHoBE8EJwRunnWK1st5MZi7vn02aKAQ6yPdE5jMA==
23112311
dependencies:
23122312
grizzly "^3.0.3"
23132313
minimist "^1.2.0"
@@ -3578,13 +3578,13 @@ npmlog@^4.0.2:
35783578
gauge "~2.7.3"
35793579
set-blocking "~2.0.0"
35803580

3581-
npmpub@^4.0.0:
3582-
version "4.1.0"
3583-
resolved "https://registry.yarnpkg.com/npmpub/-/npmpub-4.1.0.tgz#b862fbd2e5721dfbd4c8d9da5b9ef7ac4888a4c3"
3584-
integrity sha512-aFaX5gp09tl5NxpqxkHg1QCZrTx6QHBLfQkfonXR0ohwvWeNJItFVSN2R+6IVKtLis085A6zbOUi8r6lMtPO9A==
3581+
npmpub@^5.0.0:
3582+
version "5.0.0"
3583+
resolved "https://registry.yarnpkg.com/npmpub/-/npmpub-5.0.0.tgz#47be2fdff68e9ef4b56d0071746f66975dbb352c"
3584+
integrity sha512-XmfZlR7H8LwuVMPc0Zx2RU/xetk7ldRme+xtHRnwMqSQU5aBJ8hzgQtfX1aRnQNIFWOpEY1iXCJk7fWhFc9W4w==
35853585
dependencies:
35863586
chalk "^1.1.1"
3587-
github-release-from-changelog "^1.3.2"
3587+
github-release-from-changelog "^2.0.0"
35883588
minimist "^1.2.0"
35893589
shelljs "^0.5.3"
35903590
trash "^3.4.1"

0 commit comments

Comments
 (0)