Debian Codegraph @

vendor/wikimedia/idle-dom/HISTORY.md

raw
1 # Release History
2
3 ## IDLeDOM 2.1.1 (2026-02-14)
4 * Dependency updates for PHP 8.5
5
6 ## IDLeDOM 2.1.0 (2025-08-15)
7 * Drop support for PHP < 8.1
8 * Update dependencies.
9
10 ## IDLeDOM 2.0.1 (2024-11-09)
11 * Use UnexpectedValueException instead of Exception in tooling.
12 * Update dependencies.
13
14 ## IDLeDOM 2.0.0 (2023-02-27)
15 * PHP 8.1 compatibility.
16 * Added return types to inbuilt interfaces; in particular, the
17 interfaces which include ::getIterator() functions are now
18 declared to return \Iterator. This is backwards-incompatible
19 with implementations which extend these interfaces without
20 specifying a return type, although implementations which use
21 the IDLeDOM helper classes to define the iterators will be
22 unaffected.
23 * Added ReturnTypeWillChange annotations for ::offsetGet()
24 implementations in helper classes.
25 * Allow use of wikimedia/webidl 1.1.0.
26
27 ## IDLeDOM 1.0.1 (not released)
28 * This proposed version of IDLeDOM had backwards-incompatible changes
29 (included in 2.0.0) and so was not released.
30
31 ## IDLeDOM 1.0.0 (2022-12-07)
32 * The WebIDL PHP binding has been altered to allow implementations to measure
33 offsets and lengths in unicode code points for the attributes of
34 `CharacterData`, instead of using UTF-16 code units.
35 * Support for PHP 7.2 and PHP 7.3 has been dropped.
36 * Various dependencies have been updated for PHP 8 compatibility.
37 * Properly encode `unsigned long` constants from IDL as PHP's (signed)
38 `int` type for compatibility with 32-bit PHP systems (T324489).
39
40 ## IDLeDOM 0.10.0 (2021-08-07)
41 * The second and third arguments to DOMImplementation::createDocumentType()
42 are now optional, for PHP compatibility.
43 * If the final argument to Document::createElement() or
44 Document::createElementNS() is a string, interpretation may be
45 implementation-dependent (PHP compatibility).
46
47 ## IDLeDOM 0.9.0 (2021-08-02)
48 * The second argument to Node::insertBefore() is now optional, for
49 PHP compatibility.
50 * Add PHP-compatible properties on Document:
51 * ::preserveWhiteSpace
52 * ::formatOutput
53 * ::validateOnParse
54 * ::strictErrorChecking
55
56 ## IDLeDOM 0.8.0 (2021-07-30)
57 * Add DocumentFragment::appendXML() for PHP compatibility.
58 * Fix name of PHP-compatible Document::loadHTML() method.
59 * Clarify the return types of Document::loadHTML()/Document::loadXML().
60
61 ## IDLeDOM 0.7.2 (2021-07-26)
62 * Don't export .phan directory in composer package.
63
64 ## IDLeDOM 0.7.1 (2021-07-16)
65 * Add `_getMissingProp`/`_setMissingProp` extension points for
66 DOM implementations to support additional/alternative properties.
67
68 ## IDLeDOM 0.7.0 (2021-07-04)
69 * Add CSS Object Model (CSSOM) interfaces.
70 * Add Location interface.
71 * Support [PutForwards] extended attribute.
72
73 ## IDLeDOM 0.6.0 (2021-06-14)
74 * Map WebIDL enumeration types to PHP string type (previously enumerations
75 were mapped to an integer type).
76 * Map WebIDL dictionary types to an abstract class instead of an interface
77 type. This allows IDLeDOM to provide a static `cast` method for the
78 dictionary, which is all that most implementations need.
79 * Add interfaces for GlobalEventHandlers,
80 DocumentAndElementEventHandlers, and WindowEventHandlers, although at
81 this time only the `onload` event handler is defined in order to
82 avoid bloating the `__get`/`__set` helpers.
83
84 ## IDLeDOM 0.5.1 (2021-05-20)
85 * Suppress type hints on DOMException::getMessage() and
86 DOMException::getCode() so that you can override a built-in
87 \Exception class.
88 * Support pair iterators.
89 * Add URL and URLSearchParams interfaces.
90
91 ## IDLeDOM 0.5.0 (2021-05-19)
92 * Add HTML extensions to Document interface.
93 * Add extensions from the DOM Parsing and Serialization specification.
94 * Add Document::{load,loadXML,saveHTML,saveXML} which are commonly-used
95 PHP-specific methods for compatibility with PHP code written for
96 `DOMDocument`.
97
98 ## IDLeDOM 0.4.1 (2021-05-12)
99 * Add DOMException interface.
100 * Add interfaces for WebIDL "simple exceptions".
101 * Annotate `id`, `className`, and `slot` attributes of Element for reflection.
102 * Add `Element::setIdAttribute`, `Element::setIdAttributeNode`, and
103 `Element::setIdAttributeNS` for compatibility with PHP code written for
104 `DOMElement`.
105
106 ## IDLeDOM 0.4.0 (2021-05-11)
107 * Add interfaces for HTML IDL, in particular the HTML*Element classes.
108 * Support "unnamed" getter/setters/deleters/stringifiers.
109 * Return return types for cast() helper methods, in order to accommodate
110 the weak covariant return type checks in PHP 7.2.
111 * Generate helper functions for attributes with the [Reflect] extended
112 attribute (which reflect an HTML element attribute).
113 * Add Document::encoding setter, for compatibility with PHP's
114 DOMDocument. This is marked as [PHPExtension].
115
116 ## IDLeDOM 0.3.0 (2021-04-12)
117 * Use interface (instead of class) for enumerations. This allows
118 DOM implementations to easily define a class implementing the interface
119 to bring the constants into the implementation's namespace.
120 * The helper traits now define __isset() and __unset() for appropriate
121 interfaces and dictionaries.
122 * Support the [LegacyNullToEmptyString] extended attribute, by broadening
123 type to allow `null` where appropriate.
124
125 ## IDLeDOM 0.2.0 (2021-02-12)
126 * Strip explicit PHP type hints for DOM interface types, in order to
127 accomodate the weak covariant/contravariance checks in PHP 7.2.
128 * Make NodeList, HTMLCollection, NamedNodeMap, and DOMTokenList
129 implement \Countable so they can be used with the PHP `count()` function.
130 * Add an `iterable` to HTMLCollection and NamedNodeMap so they can be
131 used in a PHP `foreach` statement, like the built-in \DOMNamedNodeMap.
132 * Stubs are now standalone (don't stub out methods from parent interfaces),
133 and don't declare abstract methods (these were shadowing inherited method
134 from superclasses).
135
136 ## IDLeDOM 0.1.1 (2021-02-11)
137 * Replace HTMLSlotElement/EventHandler/DOMHighRestTimeStamp stubs with
138 proper definitions.
139 * Replace stub method to ::_unimplemented() to avoid DOM name conflicts.
140
141 ## IDLeDOM 0.1.0 (2021-02-10)
142 Initial release.