@@ -11,17 +11,6 @@ Please also have a look at our
11
11
### Added
12
12
13
13
- Interface ` RuleContainer ` for ` RuleSet ` ` Rule ` manipulation methods (#1256 )
14
- - ` RuleSet::removeMatchingRules() ` method
15
- (for the implementing classes ` AtRuleSet ` and ` DeclarationBlock ` ) (#1249 )
16
- - ` RuleSet::removeAllRules() ` method
17
- (for the implementing classes ` AtRuleSet ` and ` DeclarationBlock ` ) (#1249 )
18
- - Add Interface ` CSSElement ` (#1231 )
19
- - Methods ` getLineNumber ` and ` getColumnNumber ` which return a nullable ` int `
20
- for the following classes:
21
- ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
22
- ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 , #1263 )
23
- - ` Positionable ` interface for CSS items that may have a position
24
- (line and perhaps column number) in the parsed CSS (#1221 )
25
14
- Partial support for CSS Color Module Level 4:
26
15
- ` rgb ` and ` rgba ` , and ` hsl ` and ` hsla ` are now aliases (#797 }
27
16
- Parse color functions that use the "modern" syntax (#800 )
@@ -41,12 +30,6 @@ Please also have a look at our
41
30
- ` RuleSet::getRules() ` and ` getRulesAssoc() ` now only allow ` string ` or ` null `
42
31
as the parameter (implementing classes are ` AtRuleSet ` and ` DeclarationBlock ` )
43
32
(#1253 )
44
- - Parameters for ` getAllValues() ` are deconflated, so it now takes three (all
45
- optional), allowing ` $element ` and ` $ruleSearchPattern ` to be specified
46
- separately (#1241 )
47
- - Implement ` Positionable ` in the following CSS item classes:
48
- ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
49
- ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 )
50
33
- Initialize ` KeyFrame ` properties to sensible defaults (#1146 )
51
34
- Make ` OutputFormat ` ` final ` (#1128 )
52
35
- Make ` Selector ` a ` Renderable ` (#1017 )
@@ -60,25 +43,6 @@ Please also have a look at our
60
43
61
44
### Deprecated
62
45
63
- - Passing a ` string ` or ` null ` to ` RuleSet::removeRule() ` is deprecated
64
- (implementing classes are ` AtRuleSet ` and ` DeclarationBlock ` );
65
- use ` removeMatchingRules() ` or ` removeAllRules() ` instead (#1249 )
66
- - Passing a ` Rule ` to ` RuleSet::getRules() ` or ` getRulesAssoc() ` is deprecated,
67
- affecting the implementing classes ` AtRuleSet ` and ` DeclarationBlock `
68
- (call e.g. ` getRules($rule->getRule()) ` instead) (#1248 )
69
- - Passing a string as the first argument to ` getAllValues() ` is deprecated;
70
- the search pattern should now be passed as the second argument (#1241 )
71
- - Passing a Boolean as the second argument to ` getAllValues() ` is deprecated;
72
- the flag for searching in function arguments should now be passed as the third
73
- argument (#1241 )
74
- - ` getLineNo() ` is deprecated in these classes (use ` getLineNumber() ` instead):
75
- ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
76
- ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 , #1233 )
77
- - ` Rule::getColNo() ` is deprecated (use ` getColumnNumber() ` instead)
78
- (#1225 , #1233 )
79
- - Providing zero as the line number argument to ` Rule::setPosition() ` is
80
- deprecated (pass ` null ` instead if there is no line number) (#1225 , #1233 )
81
-
82
46
### Removed
83
47
84
48
- Remove ` getLineNo() ` from these classes (use ` getLineNumber() ` instead):
@@ -117,9 +81,6 @@ Please also have a look at our
117
81
(in ` RuleSet::addRule() ` ) (#1270 )
118
82
- Ensure ` RuleSet::addRule() ` sets non-negative column number when sibling
119
83
provided (#1268 )
120
- - Set line number when ` RuleSet::addRule() ` called with only column number set
121
- (#1265 )
122
- - Ensure first rule added with ` RuleSet::addRule() ` has valid position (#1262 )
123
84
- Don't render ` rgb ` colors with percentage values using hex notation (#803 )
124
85
125
86
### Documentation
@@ -129,6 +90,60 @@ Please also have a look at our
129
90
@ziegenberg is a new contributor to this release and did a lot of the heavy
130
91
lifting. Thanks! :heart :
131
92
93
+ ## 8.9.0: New features, bug fixes and deprecations
94
+
95
+ ### Added
96
+
97
+ - ` RuleSet::removeMatchingRules() ` method
98
+ (for the implementing classes ` AtRuleSet ` and ` DeclarationBlock ` ) (#1249 )
99
+ - ` RuleSet::removeAllRules() ` method
100
+ (for the implementing classes ` AtRuleSet ` and ` DeclarationBlock ` ) (#1249 )
101
+ - Add Interface ` CSSElement ` (#1231 )
102
+ - Methods ` getLineNumber ` and ` getColumnNumber ` which return a nullable ` int `
103
+ for the following classes:
104
+ ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
105
+ ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 , #1263 )
106
+ - ` Positionable ` interface for CSS items that may have a position
107
+ (line and perhaps column number) in the parsed CSS (#1221 )
108
+
109
+ ### Changed
110
+
111
+ - Parameters for ` getAllValues() ` are deconflated, so it now takes three (all
112
+ optional), allowing ` $element ` and ` $ruleSearchPattern ` to be specified
113
+ separately (#1241 )
114
+ - Implement ` Positionable ` in the following CSS item classes:
115
+ ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
116
+ ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 )
117
+
118
+ ### Deprecated
119
+
120
+ - Support for PHP < 7.2 is deprecated; version 9.0 will require PHP 7.2 or later
121
+ (#1264 )
122
+ - Passing a ` string ` or ` null ` to ` RuleSet::removeRule() ` is deprecated
123
+ (implementing classes are ` AtRuleSet ` and ` DeclarationBlock ` );
124
+ use ` removeMatchingRules() ` or ` removeAllRules() ` instead (#1249 )
125
+ - Passing a ` Rule ` to ` RuleSet::getRules() ` or ` getRulesAssoc() ` is deprecated,
126
+ affecting the implementing classes ` AtRuleSet ` and ` DeclarationBlock `
127
+ (call e.g. ` getRules($rule->getRule()) ` instead) (#1248 )
128
+ - Passing a string as the first argument to ` getAllValues() ` is deprecated;
129
+ the search pattern should now be passed as the second argument (#1241 )
130
+ - Passing a Boolean as the second argument to ` getAllValues() ` is deprecated;
131
+ the flag for searching in function arguments should now be passed as the third
132
+ argument (#1241 )
133
+ - ` getLineNo() ` is deprecated in these classes (use ` getLineNumber() ` instead):
134
+ ` Comment ` , ` CSSList ` , ` SourceException ` , ` Charset ` , ` CSSNamespace ` , ` Import ` ,
135
+ ` Rule ` , ` DeclarationBlock ` , ` RuleSet ` , ` CSSFunction ` , ` Value ` (#1225 , #1233 )
136
+ - ` Rule::getColNo() ` is deprecated (use ` getColumnNumber() ` instead)
137
+ (#1225 , #1233 )
138
+ - Providing zero as the line number argument to ` Rule::setPosition() ` is
139
+ deprecated (pass ` null ` instead if there is no line number) (#1225 , #1233 )
140
+
141
+ ### Fixed
142
+
143
+ - Set line number when ` RuleSet::addRule() ` called with only column number set
144
+ (#1265 )
145
+ - Ensure first rule added with ` RuleSet::addRule() ` has valid position (#1262 )
146
+
132
147
## 8.8.0: Bug fixes and deprecations
133
148
134
149
### Added
0 commit comments