Skip to content

Releases: css/csso

5.0.5

10 Aug 17:41
Compare
Choose a tag to compare
  • Bumped css-tree to ~2.2.0 (#458)

5.0.4

14 Jul 11:01
Compare
Choose a tag to compare
  • 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)

5.0.3

09 Mar 14:06
Compare
Choose a tag to compare
  • Fixed CommonJS version bundling when browser field is used
  • Added module field

5.0.2

17 Dec 17:19
Compare
Choose a tag to compare
  • 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)

5.0.1

15 Dec 01:24
Compare
Choose a tag to compare
  • Bumped css-tree to ~2.0.3 (various fixes on generate CSS)
  • Added exports:
    • csso/syntax

5.0.0 – ESM support, CSS Selectors Level 4

04 Dec 15:51
Compare
Choose a tag to compare
  • 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

4.2.0

26 Nov 17:10
Compare
Choose a tag to compare
  • 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)

4.1.1

15 Nov 22:10
Compare
Choose a tag to compare
  • 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

4.1.0

27 Oct 23:36
Compare
Choose a tag to compare
  • 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)

4.0.3

24 Mar 12:16
Compare
Choose a tag to compare