Skip to content

Commit 7ecf8a8

Browse files
committed
Add changelog
1 parent 21b60b4 commit 7ecf8a8

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed

CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.

lib/Sabberworm/CSS/RuleSet/RuleSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getRulesAssoc($mRule = null) {
5858
}
5959

6060
/**
61-
* Remove a rule from this RuleSet. This accepts all the possible values that @link{getRules()} accepts. If given a Rule, it will only remove this particular rule (by identity). If given a name, it will remove all rules by that name. Note: this is previous from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would remove all rules with the same name. To get the old behvaiour, use removeRule($oRule->getRule()).
61+
* Remove a rule from this RuleSet. This accepts all the possible values that @link{getRules()} accepts. If given a Rule, it will only remove this particular rule (by identity). If given a name, it will remove all rules by that name. Note: this is different from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would remove all rules with the same name. To get the old behvaiour, use removeRule($oRule->getRule()).
6262
* @param (null|string|Rule) $mRule pattern to remove. If $mRule is null, all rules are removed. If the pattern ends in a dash, all rules starting with the pattern are removed as well as one matching the pattern with the dash excluded. Passing a Rule behaves matches by identity.
6363
*/
6464
public function removeRule($mRule) {

0 commit comments

Comments
 (0)