Releases: MyIntervals/PHP-CSS-Parser
Releases · MyIntervals/PHP-CSS-Parser
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)
5.2.0: The selector removal release
5.2.0 (2014-06-30)
- Support removing a selector from a declaration block using
$oBlock->removeSelector($mSelector)
- Introduce a specialized exception (Sabberworm\CSS\Parsing\OuputException) for exceptions during output rendering
- No deprecations
Backwards-incompatible changes
- Outputting a declaration block that has no selectors throws an OuputException instead of outputting an invalid
{…}
into the CSS document.