Packages

preact

11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed

Your version

10.3.2

15 Feb 2020Where it was published

10.29.8 is the newest release of 10.x.

In short

1 new3 fixed5 changed4 internal

Release note

tl;dr: Another bug-fix only release. It's safe to upgrade and we encourage everybody to do so :+1:

It's sunny today and I haven't been outside yet, so I'll make it quick: Those pesky ref TypeScript errors when used with a CSS-in-JS library should be no more! So if you're using styled-components, emotion, goober or any other CSS-in-JS library, this update is for you! :100:

@robertknight found that false values where not special cased for aria-* attributes as they have a different way of treating boolean values compared to the DOM. Many boolean-like attributes like aria-checked have three states:

  • true element is checked

  • false element is unchecked, but it's possible to check it

  • undefined (default) element can't be checked

As usual thank you so much for everyone who helped make Preact better by contributing code or reporting issues! You all rock :+1:

Bug Fixes

Typings

  • Match useErrorBoundary type with componentDidCatch (#2332, thanks @intrnl)

  • Fix incompatible ref typing with ReactElement (& popular react libraries) (#2099, thanks @xiel)

  • Make useErrorBoundary's callback param optional (#2320, thanks @intrnl)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.