Skip to content

Releases: immerjs/immer

v9.0.3

09 Jun 09:55
07575f3

Choose a tag to compare

9.0.3 (2021-06-09)

Bug Fixes

  • isPlainObject: add quick comparison between input and Object to short-circuit taxing Function.toString invocations (#805) (07575f3)

v9.0.2

25 Apr 14:53
6555173

Choose a tag to compare

9.0.2 (2021-04-25)

Bug Fixes

  • #785 fix type inference for produce incorrectly inferring promise (#786) (6555173)

v9.0.1

20 Mar 21:40
e0b7c01

Choose a tag to compare

9.0.1 (2021-03-20)

Bug Fixes

  • #768 immerable field being lost during patch value cloning (#771) (e0b7c01)

v9.0.0

19 Mar 21:16
2c2f30e

Choose a tag to compare

9.0.0 (2021-03-19)

feature

BREAKING CHANGES

  • It is no longer allowed to return nothing from a recipe if the target state doesn't accept undefined.
  • 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.

v8.0.4

19 Mar 16:47
b7fcf7f

Choose a tag to compare

8.0.4 (2021-03-19)

Bug Fixes

  • make sure isPlainObject checks support objects send accross frames. Fixes #766 / #405 (5ae3547)

v8.0.3

18 Mar 22:00

Choose a tag to compare

8.0.3 (2021-03-18)

Bug Fixes

  • new Immer().produce now has the same type as produce. Fixes #749 (f8b77d1)

v8.0.2

17 Mar 15:34
d395efe

Choose a tag to compare

8.0.2 (2021-03-17)

Bug Fixes

  • Add a type-checking fast path for primitive types (#755) (d395efe)
  • Ignore equal reference assignments. Fixes #648 (3b4286d)

v8.0.1

20 Jan 11:44
da2bd4f

Choose a tag to compare

8.0.1 (2021-01-20)

Bug Fixes

v8.0.0

17 Nov 22:48

Choose a tag to compare

8.0.0 (2020-11-17)

feature

BREAKING CHANGES

  • always freeze by default, even in production mode. Use setAutoFreeze(process.env.NODE_ENV !== 'production') for the old behavior. See #687 (comment) for the rationale. Fixes #649, #681, #687

v7.0.15

17 Nov 15:29

Choose a tag to compare

7.0.15 (2020-11-17)

Bug Fixes