|
| 1 | +# Revision History |
| 2 | + |
| 3 | +## 5.0 |
| 4 | + |
| 5 | +### 5.0.0 (2013-03-20) |
| 6 | + |
| 7 | +* Correctly parse all known CSS 3 units (including Hz and kHz). |
| 8 | +* Output RGB colors in short (#aaa or #ababab) notation |
| 9 | +* Be case-insensitive when parsing identifiers. |
| 10 | +* *No deprecations* |
| 11 | + |
| 12 | +#### Backwards-incompatible changes |
| 13 | + |
| 14 | +* `Sabberworm\CSS\Value\Color`’s `__toString` method overrides `CSSList`’s to maybe return something other than `type(value, …)` (see above). |
| 15 | + |
| 16 | +### 5.0.1 (2013-03-20) |
| 17 | + |
| 18 | +* Internal cleanup |
| 19 | +* *No backwards-incompatible changes* |
| 20 | +* *No deprecations* |
| 21 | + |
| 22 | +### 5.0.2 (2013-03-21) |
| 23 | + |
| 24 | +* CHANGELOG.md file added to distribution |
| 25 | +* *No backwards-incompatible changes* |
| 26 | +* *No deprecations* |
| 27 | + |
| 28 | +## 4.0 |
| 29 | + |
| 30 | +### 4.0.0 (2013-03-19) |
| 31 | + |
| 32 | +* Support for more @-rules |
| 33 | +* Generic interface `Sabberworm\CSS\Property\AtRule`, implemented by all @-rule classes |
| 34 | +* *No deprecations* |
| 35 | + |
| 36 | +#### Backwards-incompatible changes |
| 37 | + |
| 38 | +* `Sabberworm\CSS\RuleSet\AtRule` renamed to `Sabberworm\CSS\RuleSet\AtRuleSet` |
| 39 | +* `Sabberworm\CSS\CSSList\MediaQuery` renamed to `Sabberworm\CSS\RuleSet\CSSList\AtRuleBlockList` with differing semantics and API (which also works for other block-list-based @-rules like `@supports`). |
| 40 | + |
| 41 | +## 3.0 |
| 42 | + |
| 43 | +### 3.0.0 (2013-03-06) |
| 44 | + |
| 45 | +* Support for lenient parsing (on by default) |
| 46 | +* *No deprecations* |
| 47 | + |
| 48 | +#### Backwards-incompatible changes |
| 49 | + |
| 50 | +* All properties (like whether or not to use `mb_`-functions, which default charset to use and – new – whether or not to be forgiving when parsing) are now encapsulated in an instance of `Sabberworm\CSS\Settings` which can be passed as the second argument to `Sabberworm\CSS\Parser->__construct()`. |
| 51 | +* Specifying a charset as the second argument to `Sabberworm\CSS\Parser->__construct()` is no longer supported. Use `Sabberworm\CSS\Settings::create()->withDefaultCharset('some-charset')` instead. |
| 52 | +* Setting `Sabberworm\CSS\Parser->bUseMbFunctions` has no effect. Use `Sabberworm\CSS\Settings::create()->withMultibyteSupport(true/false)` instead. |
| 53 | +* `Sabberworm\CSS\Parser->parse()` may throw a `Sabberworm\CSS\Parsing\UnexpectedTokenException` when in strict parsing mode. |
| 54 | + |
| 55 | +## 2.0 |
| 56 | + |
| 57 | +### 2.0.0 (2013-01-29) |
| 58 | + |
| 59 | +* Allow multiple rules of the same type per rule set |
| 60 | + |
| 61 | +#### Backwards-incompatible changes |
| 62 | + |
| 63 | +* `Sabberworm\CSS\RuleSet->getRules()` returns an index-based array instead of an associative array. Use `Sabberworm\CSS\RuleSet->getRulesAssoc()` (which eliminates duplicate rules and lets the later rule of the same name win). |
| 64 | +* `Sabberworm\CSS\RuleSet->removeRule()` works as it did before except when passed an instance of `Sabberworm\CSS\Rule\Rule`, in which case it would only remove the exact rule given instead of all the rules of the same type. To get the old behaviour, use `Sabberworm\CSS\RuleSet->removeRule($oRule->getRule()`; |
| 65 | + |
| 66 | +## 1.0 |
| 67 | + |
| 68 | +Initial release of a stable public API. |
| 69 | + |
| 70 | +## 0.9 |
| 71 | + |
| 72 | +Last version not to use PSR-0 project organization semantics. |
0 commit comments