Skip to content

Releases: css/csso

4.0.2

28 Oct 23:36
Compare
Choose a tag to compare
  • Fixed clean stage to avoid exceptions when source has unparsed or bad parts (#369, #378, #380, #397)
  • Fixed wrong percentage sign removal for zero values (#382, #395)

4.0.1

22 Oct 23:45
Compare
Choose a tag to compare
  • Bumped CSSTree to 1.0.0-alpha.37 to avoid source map generation inconsistency across Node.js versions

4.0.0

21 Oct 22:46
Compare
Choose a tag to compare
  • Dropped support for Node < 8
  • Refreshed dev dependencies and scripts
  • Bumped CSSTree to 1.0.0-alpha.36 (#399)
  • Changed bundle files: dist/csso.js and dist/csso.min.js instead single dist/csso-browser.js (min version)
  • Expose compress() as syntax.compress()

3.5.0

14 Jan 17:15
Compare
Choose a tag to compare
  • Migrated to CSSTree 1.0.0-alpha.27

WARN: Internal API (i.e. csso.syntax) was changed, see CSSTree's release notes for details

3.4.0

03 Nov 22:02
Compare
Choose a tag to compare
  • Added percent sign removal for zero percentages for some properties that is safe (@RubaXa, #286)
  • Removed unit removal for zero values in -ms-flex due it breaks flex in IE10/11 (#362)
  • Improved performance of selectors comparison (@smelukov, #343)

3.3.1

17 Oct 12:19
Compare
Choose a tag to compare
  • Fixed merge of position declarations when sticky fallback is using (thanks to @gruzzilkin, #356)

3.3.0

12 Oct 13:29
Compare
Choose a tag to compare
  • Migrated to CSSTree 1.0.0-alpha25
    • Changed AST format (see CSSTree change log for details)
    • Fixed performance issue when generate CSS with source map (quadratic increase in time depending on the size of the CSS)

3.2.0

10 Sep 23:45
Compare
Choose a tag to compare
  • Fixed named color compression to apply only when an identifier is guaranteed to be a color. Used CSSTree's feature to determine the meaning of a part of a value based on W3C specs. No more false positive matches like Arial Black, and with no hacks ;)
  • Added lifting of @keyframes to the beginning of style sheet
  • Added removal of @keyframes, @media and @supports with no prelude
  • Added removal of duplicate @keyframes (#202)
  • Added new option forceMediaMerge to force media rules merging. It's unsafe in general, but works fine in many cases. Use it on your own risk (#350)
  • Bumped CSSTree to 1.0.0-alpha23

3.1.1

25 Apr 17:49
Compare
Choose a tag to compare
  • Fixed crash on a number processing when it used not in a list (#335)

3.1.0

25 Apr 01:02
Compare
Choose a tag to compare
  • Implemented optimisation for none keyword in border and outline properties (@zoobestik, #41)
  • Implemented replacing rgba(x, x, x, 0) to transparent
  • Fixed plus sign omitting for numbers following identifier, hex color, number or unicode range, since it can change the meaning of CSS (e.g. calc(1px+2px) has been optimized to calc(1px2px) before, now it stays the same)
  • Improved usage filtering for nested selectors (i.e. for :nth-*(), :has(), :matches and other pseudos)
  • Implemented blacklist filtering in usage (#334, see Black list filtering)
  • Improved white space removing, now white spaces are removing in the beginning and at the ending of sequences, and between stylesheet and block nodes
  • Bumped css-tree to 1.0.0-alpha19