Skip to content

Releases: css/csso

5.0.5

Choose a tag to compare

@lahmatiy lahmatiy released this 10 Aug 17:41
  • Bumped css-tree to ~2.2.0 (#458)

5.0.4

Choose a tag to compare

@lahmatiy lahmatiy released this 14 Jul 11:01
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 09 Mar 14:06
  • Fixed CommonJS version bundling when browser field is used
  • Added module field

5.0.2

Choose a tag to compare

@lahmatiy lahmatiy released this 17 Dec 17:19
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 15 Dec 01:24
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 04 Dec 15:51
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 26 Nov 17:10
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 15 Nov 22:10
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 27 Oct 23:36
  • 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

Choose a tag to compare

@lahmatiy lahmatiy released this 24 Mar 12:16