Debian Codegraph @

vendor/wikimedia/html-formatter/CHANGELOG.md

raw
1 # Changelog
2
3 ## 4.1.0
4
5 Fixed:
6 * Only replace spaces between HTML tags - [T348402](https://phabricator.wikimedia.org/T348402)
7 * Avoid ungreedy pcre matching - [T345319](https://phabricator.wikimedia.org/T345319)
8
9 Changed:
10 * Use `InvalidArgumentException` instead of `Exception`
11
12 Others:
13 * Upgrade phpunit to 9.6.16 - [T342110](https://phabricator.wikimedia.org/T342110)
14 * Upgrade mediawiki/mediawiki-phan-config to 0.14.0
15 * Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
16 * Fix casing of MediaWiki in a comment
17
18 ## 4.0.3
19
20 Fixed:
21 * Fixed a regression in HtmlFormatter::getText() when passed an element
22
23 ## 4.0.2
24
25 Fixed:
26 * ReturnTypeWillChange attribute added to more overridden functions to ease migration.
27
28 ## 4.0.1
29
30 Fixed:
31 * ReturnTypeWillChange attribute added to overridden functions to ease migration.
32
33 ## 4.0.0
34
35 The library now requires PHP 7.4 or later.
36
37 Fixed:
38 * HTML is parsed as whole document to avoid encoding issues.
39
40 Changed:
41 * Return values added to functions.
42 * Types added to function parameters.
43
44 Removed:
45 * PHP 7.2 and 7.3 are no longer supported.
46
47 ## 3.0.1
48
49 Fixed:
50 * Made comment stripping independent of tag flattening.
51
52 ## 3.0.0
53
54 Changed:
55 * Don't strip comments from HTML by default. Comments are still
56 removed when `flattenAllTags` is called. Comments can also be
57 removed by using `setRemoveComments`.
58
59 ## 2.0.1
60
61 Added PHP 8 support.
62
63 ## 2.0.0
64
65 The library now requires PHP 7.2 or later.
66
67 Added:
68 * Improve documentation typehints for HtmlFormatter class methods.
69
70 Changed:
71 * Use PSR-4 autoloading instead of a classmap.
72
73 Removed:
74 * PHP 5.5, 5.6, 7.0, and 7.1 are no longer supported.
75
76 Fixed:
77 * A CSS class selector passed to `HtmlFormatter::remove()` could previously
78 remove unrelated elements, due to `.foo` wrongly matching `class="no-foo"`
79 or `class="foo-bar"`. This has been fixed. ([T231160](https://phabricator.wikimedia.org/T231160))
80
81 ## 1.0.2
82
83 Removed:
84 * Remove the superfuluous fallback for `mb_convert_encoding`.
85 This package already has a dependency on `ext-mbstring`.
86
87 Fixed:
88 * Use SPDX 3.0 license identifier in `composer.json`.
89
90 ## 1.0.1
91
92 Removed:
93 * Remove dependency on `ext-intl`.
94
95 ## 1.0.0
96
97 Initial release