github preactjs/preact 11.3.0

one hour ago

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 0 and an empty string (#5365, thanks @0z5a)
  • Keep the useId counter across repeated render() calls on the same container (#5370, thanks @JoviDeCroock)
  • Give each Suspense boundary its own useId counter 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 isElement in compat and narrow isValidElement to an element (#5363, #5425, thanks @ragib-mrb)
  • Include source on ToggleEvent (#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 onFormData callbacks with FormDataEvent (#5419, thanks @ZainnQureshii)

Performance

Don't miss a new preact release

NewReleases is sending notifications on new releases.