Features
- Warn on deeply nested illegal HTML structures in
preact/debug, following the HTML parser's namespaces for SVG and MathML content (#5358, #5426, thanks @rschristian and @JoviDeCroock)
Fixes
- Apply style values that change between
0and an empty string (#5365, thanks @0z5a) - Keep the
useIdcounter across repeatedrender()calls on the same container (#5370, thanks @JoviDeCroock) - Give each Suspense boundary its own
useIdcounter so out-of-order resolution doesn't produce mismatching ids (#5402, #5423, thanks @JoviDeCroock) - Skip suspended components that were unmounted before their Suspense boundary resolved (#5375, thanks @JoviDeCroock)
- Prevent leaking old vnodes through circular references (#5406, thanks @JoviDeCroock)
- Run cleanups of unmounted components before a queued rerender (#5416, thanks @JoviDeCroock)
- Keep the DOM cursor valid when a reordered child unmounts the node it points at (#5422, #5424, thanks @JoviDeCroock)
Types
- Declare
isElementin compat and narrowisValidElementto an element (#5363, #5425, thanks @ragib-mrb) - Include
sourceonToggleEvent(#5368, thanks @ragib-mrb) - Add capture variants of toggle, dialog and command event handlers (#5387, thanks @playlikeboy)
- Add missing DOM event handlers and attributes, and fix several compat and hooks types (
use(),useDeferredValue(),useImperativeHandle(),findDOMNode(),Children.map/forEach, exported event types) (#5391, thanks @officialasishkumar and @ragib-mrb) - Accept a signal of several input types on
<input type>(#5417, thanks @JoviDeCroock) - Add missing React types used by libraries to compat (#5418, thanks @JoviDeCroock)
- Type
onFormDatacallbacks withFormDataEvent(#5419, thanks @ZainnQureshii)