preact
11.2.0 · 6 Nov 2026MIT63.1M / weekRepositoryHomepagenpmAtom feed
Upgrading preact From 4.6.1 to 4.8.0
6 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
4 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:
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.