preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
6.4.0 is the newest release of 6.x.
In short
2 new3 fixed7 changed
Release note
Tons of little optimizations!
Don't skip empty values in
extend()(and thus insetState()). Fixes #308.Address ownership issue when rendering using reclaimed DOM. Fixes #297.
Fix issue where re-rendering an intermediary high order component could remove (or fail to add) the associated element.
When removing old props from the DOM, skip those with empty values.
Exclusively rely on DOM state when diffing
valueandcheckedprops. Fixes #326.Use strict equality when comparing attribute values against prop values. Fixes #327.
Upon initial entry into diff, check if the diff should start out in SVG mode. Fixes #331.
Fix prop cache reset triggering in the wrong case (affected performance)
Add typings path to
package.json. Fixes #318.Add support for single level of array children in h()
Move both
classNametoclassnormalization and hashedclassstringification out ofh()and into the DOM renderer.Tiny possible breakage here: if you were creating VNodes using
classNameand expecting them to haveattributes.classinstead ofattributes.className, that is no longer the case.
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.