Skip to content

Commit

Permalink
2.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Oct 22, 2019
1 parent 9e22d43 commit 6401e35
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 40 deletions.
64 changes: 35 additions & 29 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,64 @@
# 2.1.6 - 2019-01-11
# Changelog of `reduce-css-call`

## 2.1.7 - 2019-10-22

- Switch to a maintained jison fork ([#57](https://github.com/MoOx/reduce-css-calc/pull/57)) - @davidgovea)

## 2.1.6 - 2019-01-11

- 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)

# 2.1.5 - 2018-09-20
## 2.1.5 - 2018-09-20

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

# 2.1.4 - 2018-01-22
## 2.1.4 - 2018-01-22

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

# 2.1.3 - 2017-11-27
## 2.1.3 - 2017-11-27

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

# 2.1.2 - 2017-11-26
## 2.1.2 - 2017-11-26

- 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)

# 2.1.1 - 2017-10-12
## 2.1.1 - 2017-10-12

- 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)

# 2.1.0 - 2017-10-10
## 2.1.0 - 2017-10-10

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

# 2.0.5 - 2017-05-12
## 2.0.5 - 2017-05-12

- Fixed: Support division with a CSS variable.

# 2.0.4 - 2017-05-09
## 2.0.4 - 2017-05-09

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

# 2.0.3 - 2017-05-09
## 2.0.3 - 2017-05-09

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

# 2.0.2 - 2017-05-08
## 2.0.2 - 2017-05-08

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

# 2.0.1 - 2017-05-08
## 2.0.1 - 2017-05-08

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

# 2.0.0 - 2017-05-08
## 2.0.0 - 2017-05-08

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

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

# 1.3.0 - 2016-08-26
## 1.3.0 - 2016-08-26

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

# 1.2.8 - 2016-08-26
## 1.2.8 - 2016-08-26

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

# 1.2.7 - 2016-08-22
## 1.2.7 - 2016-08-22

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

# 1.2.6 - 2016-08-22
## 1.2.6 - 2016-08-22

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

# 1.2.5 - 2016-08-22
## 1.2.5 - 2016-08-22

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

# 1.2.4 - 2016-06-09
## 1.2.4 - 2016-06-09

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

# 1.2.3 - 2016-04-28
## 1.2.3 - 2016-04-28

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

# 1.2.2 - 2016-04-19
## 1.2.2 - 2016-04-19

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

# 1.2.1 - 2016-02-22
## 1.2.1 - 2016-02-22

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

# 1.2.0 - 2014-11-24
## 1.2.0 - 2014-11-24

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

# 1.1.4 - 2014-11-12
## 1.1.4 - 2014-11-12

- 5 decimals rounding for everything

# 1.1.3 - 2014-08-13
## 1.1.3 - 2014-08-13

- 5 decimals rounding for percentage

# 1.1.2 - 2014-08-10
## 1.1.2 - 2014-08-10

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

# 1.1.1 - 2014-08-06
## 1.1.1 - 2014-08-06

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

# 1.1.0 - 2014-08-06
## 1.1.0 - 2014-08-06

- support more complex formulas
- use `reduce-function-call`
- better error message

# 1.0.0 - 2014-08-04
## 1.0.0 - 2014-08-04

First release

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reduce-css-calc",
"version": "2.1.6",
"version": "2.1.7",
"description": "Reduce CSS calc() function to the maximum",
"keywords": [
"css",
Expand Down Expand Up @@ -36,7 +36,7 @@
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-import": "^2.2.0",
"jison-gho": "^0.6.1-216",
"npmpub": "^4.0.0"
"npmpub": "^5.0.0"
},
"dependencies": {
"css-unit-converter": "^1.1.1",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2304,10 +2304,10 @@ get-value@^2.0.3, get-value@^2.0.6:
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=

github-release-from-changelog@^1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/github-release-from-changelog/-/github-release-from-changelog-1.3.2.tgz#a4ba87e3f2a568414f724ca37d3b4ab16647c9ca"
integrity sha512-3Cj5zazWfk9heJzBSXxBsh9xQSYt8ZOseresfNeHewFVC2g0Au9181xob9eXTv4hRysi9k3gRVCXOUmBH+J2bA==
github-release-from-changelog@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/github-release-from-changelog/-/github-release-from-changelog-2.1.0.tgz#7c6974862eff9ea3b5b96edffaeab711457e011e"
integrity sha512-3g8UfE3Ywls6NC5UlANXVfemSculsRRRU449sWCaHE7ekgdHoBE8EJwRunnWK1st5MZi7vn02aKAQ6yPdE5jMA==
dependencies:
grizzly "^3.0.3"
minimist "^1.2.0"
Expand Down Expand Up @@ -3578,13 +3578,13 @@ npmlog@^4.0.2:
gauge "~2.7.3"
set-blocking "~2.0.0"

npmpub@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/npmpub/-/npmpub-4.1.0.tgz#b862fbd2e5721dfbd4c8d9da5b9ef7ac4888a4c3"
integrity sha512-aFaX5gp09tl5NxpqxkHg1QCZrTx6QHBLfQkfonXR0ohwvWeNJItFVSN2R+6IVKtLis085A6zbOUi8r6lMtPO9A==
npmpub@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/npmpub/-/npmpub-5.0.0.tgz#47be2fdff68e9ef4b56d0071746f66975dbb352c"
integrity sha512-XmfZlR7H8LwuVMPc0Zx2RU/xetk7ldRme+xtHRnwMqSQU5aBJ8hzgQtfX1aRnQNIFWOpEY1iXCJk7fWhFc9W4w==
dependencies:
chalk "^1.1.1"
github-release-from-changelog "^1.3.2"
github-release-from-changelog "^2.0.0"
minimist "^1.2.0"
shelljs "^0.5.3"
trash "^3.4.1"
Expand Down

0 comments on commit 6401e35

Please sign in to comment.