Packages

preact

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

Your version

6.1.0

29 Sep 2016Where it was published

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 in setState()). 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 value and checked props. 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 className to class normalization and hashed class stringification out of h() and into the DOM renderer.

    • Tiny possible breakage here: if you were creating VNodes using className and expecting them to have attributes.class instead of attributes.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.