preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
Upgrading preact From 5.3.1 to 5.7.0
6 releases in betweennotes for 5
Reading releases, release notes and advisories…
Release by release
- Fixed
Correct regression introduced in
5.6.0where re-rendering components with the same root node could duplicate their DOM. Fixes #257. - Fixed
Fix for all empty vnodes (
"",null, etc) rendering a comment - this should only occur when an empty vnode is returned from a component'srender().
- Fixed
- New
When rendering
null, a comment node will be inserted instead of an empty TextNode. - New
When using
linkState()with components instead of DOM elements, use the first argument passed to the event handler as the default value unless a path is given. - Fixed
Fix case where switching from a String to Object style value would attempt to assign numeric CSS properties to the element
- Fixed
Fix bug where using all lowercase event names would skip bypass binding implementation (but still mostly work)
- Fixed
Fix and test for double-nulling of refs when changing the type of a component's root DOM element
- Fixed
Fix IE bug caused by assigning to the
nodeValueproperty of a TextNode that has been removed from the DOM.
- New
- Fixed
Fix
this.basenot being unset when unmounting High-Order components
- Fixed
5.4.1no release note
- New
Imporving performance by inlining hook calls (thanks @trashhalo!)
- New
Disable rendering on unmount (thanks @Madumo!) [discussion]
- New
- Fixed
Fix keyed node removal issue noted
- Fixed
2 other lines we could not sort, mostly version bumps
- 5.7.0
Enforce
this.propsandthis.context, even when a class improperly inherits fromComponent(eg: callssuper()without forwarding arguments) - 5.7.0
Make event handler "on" prefix case-insensitive
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.