Packages

immer

11.2.9 · 22 Oct 2026MIT89.4M / weekRepositoryHomepagenpmAtom feed

Your version

9.0.0

major19 Mar 2021Where it was published

9.0.21 is the newest release of 9.x.

In short

2 breaking1 new

  • breaking

    It is no longer allowed to return nothing from a recipe if the target state doesn't accept undefined.

  • breaking

    It is no longer allowed to return arbitrary things from a recipe. Recipes should either return nothing, or something that is assignable to the original state type. This will catch mistakes with accidental returns earlier.

Security

2 advisories affect 9.0.0; 9.0.6 fixes them

Release note

feature

Breaking changes

  • breaking

    It is no longer allowed to return nothing from a recipe if the target state doesn't accept undefined.

  • breaking

    It is no longer allowed to return arbitrary things from a recipe. Recipes should either return nothing, or something that is assignable to the original state type. This will catch mistakes with accidental returns earlier.