Skip to content

Commit 17b4303

Browse files
committed
Update changelog.
1 parent 311a46e commit 17b4303

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 2.0.0 - 2017-05-08
2+
3+
- Rewritten with a jison parser for more accurate value parsing.
4+
- Breaking: reduce-css-calc will now throw when trying to multiply or divide
5+
by the same unit (e.g. `calc(200px * 20px)`), and also when trying to divide
6+
by zero.
7+
- Added: Better handling of zero values (e.g. `calc(100vw / 2 - 6px + 0px)`
8+
becomes `calc(100vw / 2 - 6px)`).
9+
- Added: Better handling of mixed time values (e.g. `calc(1s - 50ms)`
10+
becomes `0.95s`).
11+
- Added: Inner parentheses calculation to simplify complex expressions (e.g.
12+
`calc(14px + 6 * ((100vw - 320px) / 448))` becomes `calc(9.71px + 1.34vw)`
13+
with precision set to `2`).
14+
- Fixed: `calc(1px + 1)` does not evaluate to `2px`.
15+
16+
([#22](https://github.com/MoOx/reduce-css-calc/pull/22) - @andyjansson)
17+
118
# 1.3.0 - 2016-08-26
219

320
- Added: calc identifier from unresolved nested expressions are removed for

0 commit comments

Comments
 (0)