immer

Create the next immutable state by mutating the current one

MIT License

Downloads
50.6M
Stars
27K
Committers
198

Bot releases are hidden (Show)

immer - v9.0.3

Published by mweststrate over 3 years ago

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)
immer - v9.0.2

Published by mweststrate over 3 years ago

9.0.2 (2021-04-25)

Bug Fixes

  • #785 fix type inference for produce incorrectly inferring promise (#786) (6555173)
immer - v9.0.1

Published by mweststrate over 3 years ago

9.0.1 (2021-03-20)

Bug Fixes

  • #768 immerable field being lost during patch value cloning (#771) (e0b7c01)
immer - v9.0.0

Published by mweststrate over 3 years ago

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.
immer - v8.0.4

Published by mweststrate over 3 years ago

8.0.4 (2021-03-19)

Bug Fixes

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

Published by mweststrate over 3 years ago

8.0.3 (2021-03-18)

Bug Fixes

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

Published by mweststrate over 3 years ago

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)
immer - v8.0.1

Published by mweststrate over 3 years ago

8.0.1 (2021-01-20)

Bug Fixes

  • Fixed security issue #738: prototype pollution possible when applying patches CVE-2020-28477 (da2bd4f)
immer - v8.0.0

Published by aleclarson almost 4 years ago

8.0.0 (2020-11-17)

feature

BREAKING CHANGES

immer - v7.0.15

Published by aleclarson almost 4 years ago

7.0.15 (2020-11-17)

Bug Fixes

immer - v7.0.14

Published by aleclarson almost 4 years ago

7.0.14 (2020-10-20)

Bug Fixes

immer - v7.0.13

Published by aleclarson almost 4 years ago

7.0.13 (2020-10-20)

Bug Fixes

  • reconcile if the original value is assigned after creating a draft. Fixes #659 (c0e6749)
immer - v7.0.12

Published by aleclarson almost 4 years ago

7.0.12 (2020-10-20)

Bug Fixes

  • undraftable values should not be cloned for patches, fixes #676 (1b70ad5)
immer - v7.0.11

Published by aleclarson almost 4 years ago

7.0.11 (2020-10-20)

Bug Fixes

  • skip ReadonlyMap and ReadonlySet types when not available (#653). Fixes #624 (12f4cf8)
immer - v7.0.10

Published by aleclarson almost 4 years ago

7.0.10 (2020-10-20)

Bug Fixes

immer - v7.0.9

Published by aleclarson about 4 years ago

7.0.9 (2020-09-09)

Bug Fixes

  • clear map creates invalid patches, fixes #663 (bacc1e0)
immer - v7.0.8

Published by aleclarson about 4 years ago

7.0.8 (2020-08-25)

Bug Fixes

  • Use a named type for Draft object for smaller type declaration files (a1a0da0)
  • use Array.prototype.slice() for copying arrays. Fixes #650 (bf90358)
  • use Array.prototype.slice() for copying arrays. Fixes #650 (bb40c36)
immer - v7.0.7

Published by aleclarson about 4 years ago

7.0.7 (2020-07-24)

Bug Fixes

  • made NOTHING and IMMERABLE shared symbols. Fixes #632 (b1c6a8e)
  • make sure changing an undefined value to undefined is not picked up as change. Fixes #646 (5521527)
  • out of range assignments were broken in ES5 mode. Fixes #638 (0fe9132)
  • Set finalization can get stuck in a loop, fixes #628 (b12e5c9)
  • Trigger setters with the correct context, fixes #604 (2697430)
immer - v7.0.6

Published by aleclarson about 4 years ago

7.0.6 (2020-07-24)

Bug Fixes

  • flow: added types for produceWithPatches (b355838)
immer - v7.0.5

Published by aleclarson over 4 years ago

7.0.5 (2020-06-24)

Bug Fixes

  • Fixed regression in Object.frozen for IE11. Fixes #600 (6371d05)
Package Rankings
Top 0.33% on Npmjs.org
Top 12.21% on Repo1.maven.org
Top 6.73% on Proxy.golang.org
Badges
Extracted from project README's
npm Build Status Coverage Status code style: prettier OpenCollective OpenCollective Gitpod Ready-to-Code Open in Gitpod