Packages

preact

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

Upgrading preact From 4.0.1 to 4.8.0

19 releases in betweenevery note read

Other targets from 4.0.1Latest11.2.0
  1. 4.0.1yours
  2. 18 releases
  3. 4.8.0target
0
changes to make
0
advisories fixed
1
new
19
fixes

Release by release

  1. 4.8.0

    27 Apr 20161 fix
    • Fixed

      Fix children being ignored when passed explicitly via props in certain cases. Fixes developit/preact-compat#44 (thanks @ld0rman!)

  2. 4.7.2

    19 Apr 20161 fix
    • 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.

  3. 4.7.1

    19 Apr 20161 fix
    • Fixed

      Fix regression in 4.6.2 related to recycled component DOM not being treated as first render

  4. 4.7.0nothing new or fixed in the note

  5. 4.6.3

    16 Apr 20161 fix
    • Fixed

      Don't attempt to append a child to a parentNode if the child is the parentNode. Fixes Issue #126.

  6. 4.6.2

    13 Apr 20161 new
  7. 4.6.1

    12 Apr 20161 fix
    • Fixed

      Fix for #122: don't assume Function.prototype exists, as it does not for Arrow Functions (thanks @LinusU!)

  8. 4.6.0

    12 Apr 20161 fix
    • Fixed

      Fix regression since 4.5.0 where key tracking for components would fail in some cases, causing components not to be recycled. Relates to #98 and the second issue noted in #120.

11 other lines we could not sort, mostly version bumps
  • A few small optimizations

    4.7.1
  • 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.7.0
  • Rethink solution to #120. TL;DR: fresh instances, cached DOM. Long version:

    4.6.2
  • Switch to a global/named symbol Symbol.for('preactattr') for the prop cache key (still falling back to __preactattr_).

    4.6.0
  • Updated ESLint, announced preactjs.com website.

    4.5.1
  • Drop unnecessary cloning of props/context

    4.5.0
  • Ship a more optimized default build by applying uglify-js without name mangling and with beautification (removes comments and applies dead code elimination)

    4.5.0
  • Omit explicitly false JSX children to match the behavior of React (Issue #83).

    4.1.3
  • Preact 4 is now officially out of beta. Please still report any bugs you find!

    4.1.1

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.