Skip to content

Releases: MyIntervals/PHP-CSS-Parser

V8.5.1: Bug fixes

15 Feb 17:41
v8.5.1
4a3d572
Compare
Choose a tag to compare

Fixed

  • Fix (regression) failure to parse at-rules with strict parsing (#456)

V8.5.0

01 Feb 09:25
8.5.0
4e9a54c
Compare
Choose a tag to compare

Added

  • Add a method to get an import's media queries (#384)
  • Add more unit tests (#381, #382)

Fixed

  • Retain CSSList and Rule comments when rendering CSS (#351)
  • Replace invalid turns unit with turn (#350)
  • Also allow string values for rules (#348)
  • Fix invalid calc parsing (#169)
  • Handle scientific notation when parsing sizes (#179)
  • Fix PHP 8.1 compatibility in ParserState::strsplit() (#344)

V8.4.0

19 Jan 09:45
Compare
Choose a tag to compare

Features

  • Support for PHP 8.x
  • PHPDoc annotations
  • Allow usage of CSS variables inside color functions (by parsing them as regular functions)
  • Use PSR-12 code style
  • No deprecations

Bugfixes

  • Improved handling of whitespace in calc()
  • Fix parsing units whose prefix is also a valid unit, like vmin
  • Allow passing an object to CSSList#replace
  • Fix PHP 7.3 warnings
  • Correctly parse keyframes with %
  • Don’t convert large numbers to scientific notation
  • Allow a file to end after an @import
  • Preserve case of CSS variables as specced
  • Allow identifiers to use escapes the same way as strings
  • No longer use eval for the comparison in getSelectorsBySpecificity, in case it gets passed untrusted input (CVE-2020-13756). Also fixed in 8.3.1, 8.2.1, 8.1.1, 8.0.1, 7.0.4, 6.0.2, 5.2.1, 5.1.3, 5.0.9, 4.0.1, 3.0.1, 2.0.1, 1.0.1.
  • Prevent an infinite loop when parsing invalid grid line names
  • Remove invalid unit vm
  • Retain rule order after expanding shorthands

Backwards-incompatible changes

  • PHP ≥ 5.6 is now required
  • HHVM compatibility target dropped

8.3.0: The “Ready for the good times” release

22 Feb 07:44
Compare
Choose a tag to compare

8.3.0 (2019-02-22)

  • Refactor parsing logic to mostly reside in the class files whose data structure is to be parsed (this should eventually allow us to unit-test specific parts of the parsing logic individually).
  • Fix error in parsing calc expessions when the first operand is a negative number, thanks to @raxbg.
  • Support parsing CSS4 colors in hex notation with alpha values, thanks to @raxbg.
  • Swallow more errors in lenient mode, thanks to @raxbg.
  • Allow specifying arbitrary strings to output before and after declaration blocks, thanks to @westonruter.
  • No backwards-incompatible changes
  • No deprecations

8.2.0: The “calc(this + that)” release

22 Feb 07:46
Compare
Choose a tag to compare

8.2.0 (2018-07-13)

  • Support parsing calc(), thanks to @raxbg.
  • Support parsing grid-lines, again thanks to @raxbg.
  • Support parsing legacy IE filters (progid:) in lenient mode, thanks to @FMCorz
  • Performance improvements parsing large files, again thanks to @FMCorz
  • No backwards-incompatible changes
  • No deprecations

8.1.0: The “hacky IE, half-assed media query support and r/o comments” release

19 Jul 19:15
Compare
Choose a tag to compare

8.1.0 (2016-07-19)

  • Comments are no longer silently ignored but stored with the object with which they appear (no render support, though). Thanks to @FMCorz.
  • The IE hacks using \0 and \9 can now be parsed (and rendered) in lenient mode. Thanks (again) to @FMCorz.
  • Media queries with or without spaces before the query are parsed. Still no real parsing support, though. Sorry…
  • PHPUnit is now listed as a dev-dependency in composer.json.
  • No backwards-incompatible changes
  • No deprecations

8.0.0: The “so you’d like to know your origins” release

30 Jun 15:24
Compare
Choose a tag to compare

8.0.0 (2016-06-30)

  • Store source CSS line numbers in tokens and parsing exceptions.
  • No deprecations

Backwards-incompatible changes

  • Unrecoverable parser errors throw an exception of type Sabberworm\CSS\Parsing\SourceException instead of \Exception.

7.0.3: The “empty CSS are valid CSS, too” release

26 Apr 20:32
Compare
Choose a tag to compare

7.0.3 (2016-04-27)

  • Fixed parsing empty CSS when multibyte is off
  • No backwards-incompatible changes
  • No deprecations

7.0.2: The “OMG is this fast” release

11 Feb 11:24
Compare
Choose a tag to compare

7.0.2 (2016-02-11)

  • 150 time performance boost thanks to @ossinkine
  • No backwards-incompatible changes
  • No deprecations

7.0.1: The silence silent errors release

25 Dec 18:25
Compare
Choose a tag to compare

7.0.1 (2015-12-25)

  • No more suppressed E_NOTICE
  • No backwards-incompatible changes
  • No deprecations