🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

reduce-css-calc

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reduce-css-calc - npm Package Versions

134

2.0.4

Diff
beneb
published 2.0.4 •

Changelog

Source

2.0.4 - 2017-05-09

  • Fixed: CSS variable regex was overly greedy and caused a crash in some cases. (#27 - @andyjansson)
beneb
published 2.0.3 •

Changelog

Source

2.0.3 - 2017-05-09

  • Fixed: Regression in handling decimals without having any numbers after the decimal place (e.g. 10.px).
beneb
published 2.0.2 •

Changelog

Source

2.0.2 - 2017-05-08

  • Fixed: Regression in consecutive subtraction handling (#25 - @andyjansson)
beneb
published 2.0.1 •

Changelog

Source

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).
beneb
published 2.0.0 •

Changelog

Source

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 by the same unit (e.g. calc(200px * 20px)), and also when trying to divide by zero.
  • Added: Better handling of zero values (e.g. calc(100vw / 2 - 6px + 0px) becomes calc(100vw / 2 - 6px)).
  • Added: Better handling of mixed time values (e.g. calc(1s - 50ms) becomes 0.95s).
  • Added: Inner parentheses calculation to simplify complex expressions (e.g. calc(14px + 6 * ((100vw - 320px) / 448)) becomes calc(9.71px + 1.34vw) with precision set to 2).
  • Fixed: calc(1px + 1) does not evaluate to 2px.

(#22 - @andyjansson)

moox
published 1.3.0 •

Changelog

Source

1.3.0 - 2016-08-26

  • Added: calc identifier from unresolved nested expressions are removed for better browser support (#19 - @ben-eb)
moox
published 1.2.8 •

Changelog

Source

1.2.8 - 2016-08-26

  • Fixed: regression from 1.2.5 on calc() with value without leading 0 (#17 - @ben-eb)
moox
published 1.2.7 •

Changelog

Source

1.2.7 - 2016-08-22

  • Fixed: regression from 1.2.5 on calc() with value without leading 0 (@MoOx)
moox
published 1.2.6 •

Changelog

Source

1.2.6 - 2016-08-22

  • Fixed: regression from 1.2.5 on calc() on multiple lines (@MoOx)
moox
published 1.2.5 •

Changelog

Source

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