Debian Codegraph @

vendor/sabberworm/php-css-parser/CHANGELOG.md

raw
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4 This project adheres to [Semantic Versioning](https://semver.org/).
5
6 Please also have a look at our
7 [API and deprecation policy](docs/API-and-deprecation-policy.md).
8
9 ## x.y.z
10
11 ### Added
12
13 ### Changed
14
15 ### Deprecated
16
17 ### Removed
18
19 ### Fixed
20
21 ### Documentation
22
23 ## 9.3.0: Support for modern CSS at-rules and autoloading bugfix
24
25 ### Added
26
27 - Add support for modern CSS at-rules: `@layer`, `@scope`, and `@starting-style` (#1549)
28
29 ### Fixed
30
31 - Avoid double autoloading of class aliases (#1552)
32
33 ### Documentation
34
35 ## 9.2.0: New features and deprecations
36
37 ### Added
38
39 - Add `OutputFormat::setSpaceAroundSelectorCombinator()` (#1504)
40 - Add support for escaped quotes in the selectors (#1485, #1489)
41 - Provide line number in exception message for mismatched parentheses in
42 selector (#1435)
43 - Add support for CSS container queries (#1400)
44
45 ### Changed
46
47 - `RuleSet\RuleContainer` is renamed to `RuleSet\DeclarationList` (#1530, #1539)
48 - Methods like `setRule()` in `RuleSet` and `DeclarationBlock` have been renamed
49 to `setDeclaration()`, etc. (#1521)
50 - `Rule\Rule` class is renamed to `Property\Declaration`
51 (#1508, #1512, #1513, #1522)
52 - `Rule::setRule()` and `getRule()` are replaced with `setPropertyName()` and
53 `getPropertyName()` (#1506)
54 - `Selector` is now represented as a sequence of `Selector\Component` objects
55 which can be accessed via `getComponents()`, manipulated individually, or set
56 via `setComponents()` (#1478, #1486, #1487, #1488, #1494, #1496, #1536, #1537)
57 - `Selector::setSelector()` and `Selector` constructor will now throw exception
58 upon provision of an invalid selectior (#1498, #1502)
59 - Clean up extra whitespace in CSS selector (#1398)
60 - The array keys passed to `DeclarationBlock::setSelectors()` are no longer
61 preserved (#1407)
62
63 ### Deprecated
64
65 - `RuleSet\RuleContainer` is deprecated; use `RuleSet\DeclarationList` instead
66 (#1530)
67 - Methods like `setRule()` in `RuleSet` and `DeclarationBlock` are deprecated;
68 there are direct replacements such as `setDeclaration()` (#1521)
69 - `Rule\Rule` class is deprecated; `Property\Declaration` is a direct
70 replacement (#1508)
71 - `Rule::setRule()` and `getRule()` are deprecated and replaced with
72 `setPropertyName()` and `getPropertyName()` (#1506, #1519)
73
74 ### Fixed
75
76 - Do not escape characters that do not need escaping in CSS string (#1444)
77 - Reject selector comprising only whitespace (#1433)
78 - Improve recovery parsing when a rogue `}` is encountered (#1425, #1426)
79 - Parse comment(s) immediately preceding a selector (#1421, #1424)
80 - Parse consecutive comments (#1421)
81 - Support attribute selectors with values containing commas in
82 `DeclarationBlock::setSelectors()` (#1419)
83 - Allow `removeDeclarationBlockBySelector()` to be order-insensitve (#1406)
84 - Fix parsing of `calc` expressions when a newline immediately precedes or
85 follows a `+` or `-` operator (#1399)
86 - Use typesafe versions of PHP functions (#1379, #1380, #1382, #1383, #1384)
87
88 ## 9.1.0: Add support for PHP 8.5
89
90 ### Added
91
92 - Add support for PHP 8.5 (#1355)
93
94 ### Fixed
95
96 - Improve performance of selector validation
97 (avoiding silent PCRE catastrophic failure) (#1372)
98 - Use typesafe versions of PHP functions (#1368, #1370)
99
100 ## 9.0.0: New features, deprecation removals and bug fixes
101
102 ### Added
103
104 - Interface `RuleContainer` for `RuleSet` `Rule` manipulation methods (#1256)
105 - Partial support for CSS Color Module Level 4:
106 - `rgb` and `rgba`, and `hsl` and `hsla` are now aliases (#797)
107 - Parse color functions that use the "modern" syntax (#800)
108 - Render RGB functions with "modern" syntax when required (#840)
109 - Support `none` as color function component value (#859)
110 - Add a class diagram to the README (#482)
111 - Add more tests (#449)
112
113 ### Changed
114
115 - `DeclarationBlock` no longer extends `RuleSet` and instead has a `RuleSet` as
116 a property; use `getRuleSet()` to access it directly (#1194)
117 - The default line (and column) number is now `null` (not zero) (#1288)
118 - `setPosition()` (in `Rule` and other classes) now has fluent interface,
119 returning itself (#1259)
120 - `RuleSet::removeRule()` now only allows `Rule` as the parameter
121 (implementing classes are `AtRuleSet` and `DeclarationBlock`);
122 use `removeMatchingRules()` or `removeAllRules()` for other functions (#1255)
123 - `RuleSet::getRules()` and `getRulesAssoc()` now only allow `string` or `null`
124 as the parameter (implementing classes are `AtRuleSet` and `DeclarationBlock`)
125 (#1253)
126 - Initialize `KeyFrame` properties to sensible defaults (#1146)
127 - Make `OutputFormat` `final` (#1128)
128 - Make `Selector` a `Renderable` (#1017)
129 - Only allow `string` for some `OutputFormat` properties (#885)
130 - Use more native type declarations and strict mode
131 (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
132 #964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140, #1141, #1145,
133 #1162, #1163, #1166, #1172, #1174, #1178, #1179, #1181, #1183, #1184, #1186,
134 #1187, #1190, #1192, #1193, #1203)
135 - Add visibility to all class/interface constants (#469)
136
137 ### Removed
138
139 - Remove `getLineNo()` from these classes (use `getLineNumber()` instead):
140 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`,
141 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1258)
142 - Remove `Rule::getColNo()` (use `getColumnNumber()` instead) (#1287)
143 - Passing a string as the first argument to `getAllValues()` is no longer
144 supported and will not work;
145 the search pattern should now be passed as the second argument (#1243)
146 - Passing a Boolean as the second argument to `getAllValues()` is no longer
147 supported and will not work; the flag for searching in function arguments
148 should now be passed as the third argument (#1243)
149 - Remove `__toString()` (#1046)
150 - Drop magic method forwarding in `OutputFormat` (#898)
151 - Drop `atRuleArgs()` from the `AtRule` interface (#1141)
152 - Remove `OutputFormat::get()` and `::set()` (#1108, #1110)
153 - Drop special support for vendor prefixes (#1083)
154 - Remove the IE hack in `Rule` (#995)
155 - Drop `getLineNo()` from the `Renderable` interface (#1038)
156 - Remove `OutputFormat::level()` (#874)
157 - Remove expansion of shorthand properties (#838)
158 - Remove `Parser::setCharset/getCharset` (#808)
159 - Remove `Rule::getValues()` (#582)
160 - Remove `Rule::setValues()` (#562)
161 - Remove `Document::getAllSelectors()` (#561)
162 - Remove `DeclarationBlock::getSelector()` (#559)
163 - Remove `DeclarationBlock::setSelector()` (#560)
164 - Drop support for PHP < 7.2 (#420)
165
166 ### Fixed
167
168 - Remove trailing semicolon from declaration blocks with 'compact'
169 `OutputFormat` (#1345)
170 - Parse selector functions (like `:not`) with comma-separated arguments (#1292)
171 - Parse quoted attribute selector value containing comma (#1323)
172 - Allow comma in selectors (e.g. `:not(html, body)`) (#1293)
173 - Insert `Rule` before sibling even with different property name
174 (in `RuleSet::addRule()`) (#1270)
175 - Ensure `RuleSet::addRule()` sets non-negative column number when sibling
176 provided (#1268)
177 - Don't render `rgb` colors with percentage values using hex notation (#803)
178
179 ### Documentation
180
181 - Add an API and deprecation policy (#720)
182
183 @ziegenberg is a new contributor to this release and did a lot of the heavy
184 lifting. Thanks! :heart:
185
186 ## 8.9.0: New features, bug fixes and deprecations
187
188 ### Added
189
190 - `RuleSet::removeMatchingRules()` method
191 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249)
192 - `RuleSet::removeAllRules()` method
193 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249)
194 - Add Interface `CSSElement` (#1231)
195 - Methods `getLineNumber` and `getColumnNumber` which return a nullable `int`
196 for the following classes:
197 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`,
198 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1263)
199 - `Positionable` interface for CSS items that may have a position
200 (line and perhaps column number) in the parsed CSS (#1221)
201
202 ### Changed
203
204 - Parameters for `getAllValues()` are deconflated, so it now takes three (all
205 optional), allowing `$element` and `$ruleSearchPattern` to be specified
206 separately (#1241)
207 - Implement `Positionable` in the following CSS item classes:
208 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`,
209 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225)
210
211 ### Deprecated
212
213 - Support for PHP < 7.2 is deprecated; version 9.0 will require PHP 7.2 or later
214 (#1264)
215 - Passing a `string` or `null` to `RuleSet::removeRule()` is deprecated
216 (implementing classes are `AtRuleSet` and `DeclarationBlock`);
217 use `removeMatchingRules()` or `removeAllRules()` instead (#1249)
218 - Passing a `Rule` to `RuleSet::getRules()` or `getRulesAssoc()` is deprecated,
219 affecting the implementing classes `AtRuleSet` and `DeclarationBlock`
220 (call e.g. `getRules($rule->getRule())` instead) (#1248)
221 - Passing a string as the first argument to `getAllValues()` is deprecated;
222 the search pattern should now be passed as the second argument (#1241)
223 - Passing a Boolean as the second argument to `getAllValues()` is deprecated;
224 the flag for searching in function arguments should now be passed as the third
225 argument (#1241)
226 - `getLineNo()` is deprecated in these classes (use `getLineNumber()` instead):
227 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`,
228 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1233)
229 - `Rule::getColNo()` is deprecated (use `getColumnNumber()` instead)
230 (#1225, #1233)
231 - Providing zero as the line number argument to `Rule::setPosition()` is
232 deprecated (pass `null` instead if there is no line number) (#1225, #1233)
233
234 ### Fixed
235
236 - Set line number when `RuleSet::addRule()` called with only column number set
237 (#1265)
238 - Ensure first rule added with `RuleSet::addRule()` has valid position (#1262)
239
240 ## 8.8.0: Bug fixes and deprecations
241
242 ### Added
243
244 - `OutputFormat` properties for space around specific list separators (#880)
245
246 ### Changed
247
248 - Mark the `OutputFormat` constructor as `@internal` (#1131)
249 - Mark `OutputFormatter` as `@internal` (#896)
250 - Mark `Selector::isValid()` as `@internal` (#1037)
251 - Mark parsing-related methods of most CSS elements as `@internal` (#908)
252 - Mark `OutputFormat::nextLevel()` as `@internal` (#901)
253 - Make all non-private properties `@internal` (#886)
254
255 ### Deprecated
256
257 - Deprecate extending `OutputFormat` (#1131)
258 - Deprecate `OutputFormat::get()` and `::set()` (#1107)
259 - Deprecate support for `-webkit-calc` and `-moz-calc` (#1086)
260 - Deprecate magic method forwarding from `OutputFormat` to `OutputFormatter`
261 (#894)
262 - Deprecate `__toString()` (#1006)
263 - Deprecate greedy calculation of selector specificity (#1018)
264 - Deprecate the IE hack in `Rule` (#993, #1003)
265 - `OutputFormat` properties for space around list separators as an array (#880)
266 - Deprecate `OutputFormat::level()` (#870)
267
268 ### Fixed
269
270 - Include comments for all rules in declaration block (#1169)
271 - Render rules in line and column number order (#1059)
272 - Create `Size` with correct types in `expandBackgroundShorthand` (#814)
273 - Parse `@font-face` `src` property as comma-delimited list (#794)
274
275 ## 8.7.0: Add support for PHP 8.4
276
277 ### Added
278
279 - Add support for PHP 8.4 (#643, #657)
280
281 ### Changed
282
283 - Mark parsing-internal classes and methods as `@internal` (#674)
284 - Block installations on unsupported higher PHP versions (#691)
285
286 ### Deprecated
287
288 - Deprecate the expansion of shorthand properties
289 (#578, #580, #579, #577, #576, #575, #574, #573, #572, #571, #570, #569, #566,
290 #567, #558, #714)
291 - Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#688)
292
293 ### Fixed
294
295 - Fix type errors in PHP strict mode (#664)
296
297 ## 8.6.0
298
299 ### Added
300
301 - Support arithmetic operators in CSS function arguments (#607)
302 - Add support for inserting an item in a CSS list (#545)
303 - Add support for the `dvh`, `lvh` and `svh` length units (#415)
304
305 ### Changed
306
307 - Improve performance of `Value::parseValue` with many delimiters by refactoring
308 to remove `array_search()` (#413)
309
310 ## 8.5.2
311
312 ### Changed
313
314 - Mark all class constants as `@internal` (#472)
315
316 ### Fixed
317
318 - Fix undefined local variable in `CalcFunction::parse()` (#593)
319
320 ## 8.5.1
321
322 ### Fixed
323
324 - Fix PHP notice caused by parsing invalid color values having less than
325 6 characters (#485)
326 - Fix (regression) failure to parse at-rules with strict parsing (#456)
327
328 ## 8.5.0
329
330 ### Added
331
332 - Add a method to get an import's media queries (#384)
333 - Add more unit tests (#381, #382)
334
335 ### Fixed
336
337 - Retain CSSList and Rule comments when rendering CSS (#351)
338 - Replace invalid `turns` unit with `turn` (#350)
339 - Also allow string values for rules (#348)
340 - Fix invalid calc parsing (#169)
341 - Handle scientific notation when parsing sizes (#179)
342 - Fix PHP 8.1 compatibility in `ParserState::strsplit()` (#344)
343
344 ## 8.4.0
345
346 ### Features
347
348 * Support for PHP 8.x
349 * PHPDoc annotations
350 * Allow usage of CSS variables inside color functions (by parsing them as
351 regular functions)
352 * Use PSR-12 code style
353 * *No deprecations*
354
355 ### Bugfixes
356
357 * Improved handling of whitespace in `calc()`
358 * Fix parsing units whose prefix is also a valid unit, like `vmin`
359 * Allow passing an object to `CSSList#replace`
360 * Fix PHP 7.3 warnings
361 * Correctly parse keyframes with `%`
362 * Don’t convert large numbers to scientific notation
363 * Allow a file to end after an `@import`
364 * Preserve case of CSS variables as specced
365 * Allow identifiers to use escapes the same way as strings
366 * No longer use `eval` for the comparison in `getSelectorsBySpecificity`, in
367 case it gets passed untrusted input (CVE-2020-13756). Also fixed in 8.3.1,
368 8.2.1, 8.1.1, 8.0.1, 7.0.4, 6.0.2, 5.2.1, 5.1.3, 5.0.9, 4.0.1, 3.0.1, 2.0.1,
369 1.0.1.
370 * Prevent an infinite loop when parsing invalid grid line names
371 * Remove invalid unit `vm`
372 * Retain rule order after expanding shorthands
373
374 ### Backwards-incompatible changes
375
376 * PHP ≥ 5.6 is now required
377 * HHVM compatibility target dropped
378
379 ## 8.3.0 (2019-02-22)
380
381 * Refactor parsing logic to mostly reside in the class files whose data
382 structure is to be parsed (this should eventually allow us to unit-test
383 specific parts of the parsing logic individually).
384 * Fix error in parsing `calc` expessions when the first operand is a negative
385 number, thanks to @raxbg.
386 * Support parsing CSS4 colors in hex notation with alpha values, thanks to
387 @raxbg.
388 * Swallow more errors in lenient mode, thanks to @raxbg.
389 * Allow specifying arbitrary strings to output before and after declaration
390 blocks, thanks to @westonruter.
391 * *No backwards-incompatible changes*
392 * *No deprecations*
393
394 ## 8.2.0 (2018-07-13)
395
396 * Support parsing `calc()`, thanks to @raxbg.
397 * Support parsing grid-lines, again thanks to @raxbg.
398 * Support parsing legacy IE filters (`progid:`) in lenient mode, thanks to
399 @FMCorz
400 * Performance improvements parsing large files, again thanks to @FMCorz
401 * *No backwards-incompatible changes*
402 * *No deprecations*
403
404 ## 8.1.0 (2016-07-19)
405
406 * Comments are no longer silently ignored but stored with the object with which
407 they appear (no render support, though). Thanks to @FMCorz.
408 * The IE hacks using `\0` and `\9` can now be parsed (and rendered) in lenient
409 mode. Thanks (again) to @FMCorz.
410 * Media queries with or without spaces before the query are parsed. Still no
411 *real* parsing support, though. Sorry…
412 * PHPUnit is now listed as a dev-dependency in composer.json.
413 * *No backwards-incompatible changes*
414 * *No deprecations*
415
416 ## 8.0.0 (2016-06-30)
417
418 * Store source CSS line numbers in tokens and parsing exceptions.
419 * *No deprecations*
420
421 ### Backwards-incompatible changes
422
423 * Unrecoverable parser errors throw an exception of type
424 `Sabberworm\CSS\Parsing\SourceException` instead of `\Exception`.
425
426 ## 7.0.3 (2016-04-27)
427
428 * Fixed parsing empty CSS when multibyte is off
429 * *No backwards-incompatible changes*
430 * *No deprecations*
431
432 ## 7.0.2 (2016-02-11)
433
434 * 150 time performance boost thanks
435 to @[ossinkine](https://github.com/ossinkine)
436 * *No backwards-incompatible changes*
437 * *No deprecations*
438
439 ## 7.0.1 (2015-12-25)
440
441 * No more suppressed `E_NOTICE`
442 * *No backwards-incompatible changes*
443 * *No deprecations*
444
445 ## 7.0.0 (2015-08-24)
446
447 * Compatibility with PHP 7. Well timed, eh?
448 * *No deprecations*
449
450 ### Backwards-incompatible changes
451
452 * The `Sabberworm\CSS\Value\String` class has been renamed to
453 `Sabberworm\CSS\Value\CSSString`.
454
455 ## 6.0.1 (2015-08-24)
456
457 * Remove some declarations in interfaces incompatible with PHP 5.3 (< 5.3.9)
458 * *No deprecations*
459
460 ## 6.0.0 (2014-07-03)
461
462 * Format output using Sabberworm\CSS\OutputFormat
463 * *No backwards-incompatible changes*
464
465 ### Deprecations
466
467 * The parse() method replaces __toString with an optional argument (instance of
468 the OutputFormat class)
469
470 ## 5.2.0 (2014-06-30)
471
472 * Support removing a selector from a declaration block using
473 `$oBlock->removeSelector($mSelector)`
474 * Introduce a specialized exception (Sabberworm\CSS\Parsing\OuputException) for
475 exceptions during output rendering
476
477 * *No deprecations*
478
479 #### Backwards-incompatible changes
480
481 * Outputting a declaration block that has no selectors throws an OuputException
482 instead of outputting an invalid ` {…}` into the CSS document.
483
484 ## 5.1.2 (2013-10-30)
485
486 * Remove the use of consumeUntil in comment parsing. This makes it possible to
487 parse comments such as `/** Perfectly valid **/`
488 * Add fr relative size unit
489 * Fix some issues with HHVM
490 * *No backwards-incompatible changes*
491 * *No deprecations*
492
493 ## 5.1.1 (2013-10-28)
494
495 * Updated CHANGELOG.md to reflect changes since 5.0.4
496 * *No backwards-incompatible changes*
497 * *No deprecations*
498
499 ## 5.1.0 (2013-10-24)
500
501 * Performance enhancements by Michael M Slusarz
502 * More rescue entry points for lenient parsing (unexpected tokens between
503 declaration blocks and unclosed comments)
504 * *No backwards-incompatible changes*
505 * *No deprecations*
506
507 ## 5.0.8 (2013-08-15)
508
509 * Make default settings’ multibyte parsing option dependent on whether or not
510 the mbstring extension is actually installed.
511 * *No backwards-incompatible changes*
512 * *No deprecations*
513
514 ## 5.0.7 (2013-08-04)
515
516 * Fix broken decimal point output optimization
517 * *No backwards-incompatible changes*
518 * *No deprecations*
519
520 ## 5.0.6 (2013-05-31)
521
522 * Fix broken unit test
523 * *No backwards-incompatible changes*
524 * *No deprecations*
525
526 ## 5.0.5 (2013-04-17)
527
528 * Initial support for lenient parsing (setting this parser option will catch
529 some exceptions internally and recover the parser’s state as neatly as
530 possible).
531 * *No backwards-incompatible changes*
532 * *No deprecations*
533
534 ## 5.0.4 (2013-03-21)
535
536 * Don’t output floats with locale-aware separator chars
537 * *No backwards-incompatible changes*
538 * *No deprecations*
539
540 ## 5.0.3 (2013-03-21)
541
542 * More size units recognized
543 * *No backwards-incompatible changes*
544 * *No deprecations*
545
546 ## 5.0.2 (2013-03-21)
547
548 * CHANGELOG.md file added to distribution
549 * *No backwards-incompatible changes*
550 * *No deprecations*
551
552 ## 5.0.1 (2013-03-20)
553
554 * Internal cleanup
555 * *No backwards-incompatible changes*
556 * *No deprecations*
557
558 ## 5.0.0 (2013-03-20)
559
560 * Correctly parse all known CSS 3 units (including Hz and kHz).
561 * Output RGB colors in short (#aaa or #ababab) notation
562 * Be case-insensitive when parsing identifiers.
563 * *No deprecations*
564
565 ### Backwards-incompatible changes
566
567 * `Sabberworm\CSS\Value\Color`’s `__toString` method overrides `CSSList`’s to
568 maybe return something other than `type(value, …)` (see above).
569
570 ## 4.0.0 (2013-03-19)
571
572 * Support for more @-rules
573 * Generic interface `Sabberworm\CSS\Property\AtRule`, implemented by all @-rule
574 classes
575 * *No deprecations*
576
577 ### Backwards-incompatible changes
578
579 * `Sabberworm\CSS\RuleSet\AtRule` renamed to `Sabberworm\CSS\RuleSet\AtRuleSet`
580 * `Sabberworm\CSS\CSSList\MediaQuery` renamed to
581 `Sabberworm\CSS\RuleSet\CSSList\AtRuleBlockList` with differing semantics and
582 API (which also works for other block-list-based @-rules like `@supports`).
583
584 ## 3.0.0 (2013-03-06)
585
586 * Support for lenient parsing (on by default)
587 * *No deprecations*
588
589 ### Backwards-incompatible changes
590
591 * All properties (like whether or not to use `mb_`-functions, which default
592 charset to use and – new – whether or not to be forgiving when parsing) are
593 now encapsulated in an instance of `Sabberworm\CSS\Settings` which can be
594 passed as the second argument to `Sabberworm\CSS\Parser->__construct()`.
595 * Specifying a charset as the second argument to
596 `Sabberworm\CSS\Parser->__construct()` is no longer supported. Use
597 `Sabberworm\CSS\Settings::create()->withDefaultCharset('some-charset')`
598 instead.
599 * Setting `Sabberworm\CSS\Parser->bUseMbFunctions` has no effect. Use
600 `Sabberworm\CSS\Settings::create()->withMultibyteSupport(true/false)` instead.
601 * `Sabberworm\CSS\Parser->parse()` may throw a
602 `Sabberworm\CSS\Parsing\UnexpectedTokenException` when in strict parsing mode.
603
604 ## 2.0.0 (2013-01-29)
605
606 * Allow multiple rules of the same type per rule set
607
608 ### Backwards-incompatible changes
609
610 * `Sabberworm\CSS\RuleSet->getRules()` returns an index-based array instead of
611 an associative array. Use `Sabberworm\CSS\RuleSet->getRulesAssoc()` (which
612 eliminates duplicate rules and lets the later rule of the same name win).
613 * `Sabberworm\CSS\RuleSet->removeRule()` works as it did before except when
614 passed an instance of `Sabberworm\CSS\Rule\Rule`, in which case it would only
615 remove the exact rule given instead of all the rules of the same type. To get
616 the old behaviour, use `Sabberworm\CSS\RuleSet->removeRule($oRule->getRule()`;
617
618 ## 1.0
619
620 Initial release of a stable public API.
621
622 ## 0.9
623
624 Last version not to use PSR-0 project organization semantics.