immer
11.2.9 · 22 Oct 2026MIT89.4M / weekRepositoryHomepagenpmAtom feed
9.0.21 is the newest release of 9.x.
In short
2 breaking1 new
- breaking
It is no longer allowed to return
nothingfrom a recipe if the target state doesn't acceptundefined. - 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
- CriticalPrototype Pollution in immerGHSA-33f9-j839-rf8h · 2 Sep 2021Fixed in 9.0.6
- HighPrototype Pollution in immerGHSA-c36v-fmgq-m8hx · 7 Sep 2021Fixed in 9.0.6
Release note
feature
Breaking changes
- breaking
It is no longer allowed to return
nothingfrom a recipe if the target state doesn't acceptundefined. - 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.