preact
11.2.0 · 6 Nov 2026MIT63.1M / weekRepositoryHomepagenpmAtom feed
Upgrading preact From 4.0.0 to 4.8.0
20 releases in betweenevery note read
Release by release
- Fixed
Fix
childrenbeing ignored when passed explicitly via props in certain cases. Fixes developit/preact-compat#44 (thanks @ld0rman!)
- Fixed
- Fixed
Bugfix: Fixes an issue caught by preact-compat's ref tests, where swapping the root node rendered by a component would null its ref twice.
- Fixed
- Fixed
Fix regression in 4.6.2 related to recycled component DOM not being treated as first render
- Fixed
4.7.0nothing new or fixed in the note
- Fixed
Don't attempt to append a child to a parentNode if the child is the parentNode. Fixes Issue #126.
- Fixed
- New
Optimize serialization of Objects to CSS strings to be about 5x faster (benchmark: esbench.com/bench/570daee0db965b9a009659f7)
- New
- Fixed
Fix for #122: don't assume Function.prototype exists, as it does not for Arrow Functions (thanks @LinusU!)
- Fixed
- Fixed
Fix regression since
4.5.0wherekeytracking for components would fail in some cases, causing components not to be recycled. Relates to #98 and the second issue noted in #120.
- Fixed
12 other lines we could not sort, mostly version bumps
- 4.7.1
A few small optimizations
- 4.7.0
Merge #106: removes some unnecessary code, drops ~50 bytes
- 4.7.0
Lazy-instantiate the internal mapping for
linkState()and setState's callback queue. - 4.6.2
Rethink solution to #120. TL;DR: fresh instances, cached DOM. Long version:
- 4.6.0
Switch to a global/named symbol
Symbol.for('preactattr')for the prop cache key (still falling back to__preactattr_). - 4.5.1
Updated ESLint, announced preactjs.com website.
- 4.5.0
Drop unnecessary cloning of props/context
- 4.5.0
Ship a more optimized default build by applying
uglify-jswithout name mangling and with beautification (removes comments and applies dead code elimination) - 4.1.3
Omit explicitly
falseJSX children to match the behavior of React (Issue #83). - 4.1.1
Preact 4 is now officially out of beta. Please still report any bugs you find!
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.