Releases: MyIntervals/PHP-CSS-Parser
Releases · MyIntervals/PHP-CSS-Parser
8.3.0: The “Ready for the good times” release
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
8.2.0 (2018-07-13)
8.1.0: The “hacky IE, half-assed media query support and r/o comments” release
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
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
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
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
7.0.1 (2015-12-25)
- No more suppressed
E_NOTICE
- No backwards-incompatible changes
- No deprecations
7.0.0: The “R U already on PHP 7?” release
7.0.0 (2015-08-24)
- Compatibility with PHP 7. Well timed, eh?
Deprecations
- The
Sabberworm\CSS\Value\String
class has been renamed toSabberworm\CSS\Value\CSSString
.
6.0.1: The “R U still on PHP 5.3?” release
6.0.1 (2015-08-24)
- Remove some declarations in interfaces incompatible with PHP 5.3 (< 5.3.9)
- No deprecations
6.0.0: The output formatting release
6.0.0 (2014-07-03)
- Format output using Sabberworm\CSS\OutputFormat
- No backwards-incompatible changes
Deprecations
- The parse() method replaces __toString with an optional argument (instance of the OutputFormat class)