Csso Versions Save

CSS minifier with structural optimizations

v5.0.5

1 year ago
  • Bumped css-tree to ~2.2.0 (#458)

v5.0.4

1 year ago
  • Fixed usage filtering for from/to selectors in keyframes at-rule (#448)
  • Fixed removing medium in font declarations since it breaks the value since <font-size> is required (#449)

v5.0.3

2 years ago
  • Fixed CommonJS version bundling when browser field is used
  • Added module field

v5.0.2

2 years ago
  • Extended Node.js support to include ^10
  • Fixed main field in package.json to refer to CommonJS module
  • Bumped css-tree to ~2.0.4 (fixed CSS serialization issue in IE11)

v5.0.1

2 years ago
  • Bumped css-tree to ~2.0.3 (various fixes on generate CSS)
  • Added exports:
    • csso/syntax

v5.0.0

2 years ago
  • Added support for CSS Selectors Level 4 and legacy pseudos in specificity calculation, i.e. :has(), :not(<selector-list>), :is(), :matches(), :-moz-any(), :-webkit-any(), :where(), :nth-child(... of <selector-list>) and :nth-last-child(... of <selector-list>)
  • Package
    • Changed supported versions of Node.js to ^12.20.0, ^14.13.0 and >=15.0.0
    • Converted to ES modules. However, CommonJS is supported as well (dual module)
    • Changed bundle set to provide dist/csso.js (an IIFE version with csso as a global name) and dist/csso.esm.js (as ES module). Both are minified
    • Bumped css-tree to 2.0

v4.2.0

3 years ago
  • Trim Custom Property values when possible (#393)
  • Fixed removing unit for zero-length dimentions in min(), max() and clamp() functions (#426)
  • Fixed crash on bad value in TRBL declaration value (#412)

v4.1.1

3 years ago
  • Fixed build setup to exclude full mdn/data that reduced the lib size:
    • dist/csso.js: 794.5Kb -> 255.2Kb
    • dist/csso.min.js: 394.4Kb -> 194.2Kb
    • package size: 237.8 kB -> 156.1 kB
    • package unpacked size: 1.3 MB -> 586.8 kB

v4.1.0

3 years ago
  • Bumped CSSTree to ^1.0.0
  • Fixed wrongly merging of TRBL values when one of them contains var() (#420)
  • Fixed wrongly merging of pseudo class and element with the same name, e.g. :-ms-input-placeholder and ::-ms-input-placeholder (#383, #416)
  • Fixed wrongly merging of overflow fallback (#415)

v4.0.3

4 years ago
  • Prevented percent sign removal in flex/-ms-flex (#410)
  • Fixed restructuring optimisation in some cases (thanks to @charlessuh & @chsuh, #358, #411)
  • Bumped dependencies (thanks to @AviVahl, #409)