byte-fe / react-model

The next generation state management library for React
236 stars 23 forks source link

Update immer to the latest version 🚀 #134

Closed greenkeeper[bot] closed 4 years ago

greenkeeper[bot] commented 4 years ago

The dependency immer was updated from 4.0.2 to 5.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: aleclarson License: MIT

Release Notes for v5.0.0

5.0.0 (2019-10-30)

Bug Fixes

  • add Map getter for DRAFT_STATE, make isEnumerable more resilient (7bbec0a)
  • add more traps for Maps and Sets (930b4ab)
  • Map.prototype.set should return a draft (7001201)
  • remove "function*" syntax (08d88b8)

Features

BREAKING CHANGES

  • Maps and Sets are treated differently now; they will no longer directly mutated when updated inside a draft

This release introduces first class support for Maps and Sets!
Some things to keep in mind:

  • Inside recipes, you can directly modify Maps and Sets with methods like add, set, delete and clear
  • Those methods do mutate draft Maps and Sets, but won't actually change their originals!
  • Immer does not polyfill Map and Set automatically in environments where those aren't available out of the box
  • Maps and Sets are supported both in ES5 and Proxy mode
  • If autoFreeze is enabled, the maps and sets returned from a producer will be artificially frozen by making their mutative APIs unusable
  • Non primitive keys for Maps, and non primitive values for Sets are supported. However, we strongly recommend to not combine non-primitive keys to Maps with patches, for reasons expressed below.

Open questions

  • Set objects are now drafted
  • Map objects are now drafted
Commits

The new version differs by 49 commits.

  • b6f1d40 feat: added first class support for Map and Set
  • 0f4fe3f Sanity fix
  • f8c65f0 Updated typings
  • 7335671 Updated docs. Also fixes #445
  • e819e79 Travis fix(?)
  • 82db631 Made sure maps and sets become truly immutable
  • 7d32b7c More tests, also fixed binding of produceWithPatches
  • 24658bc ensure set patch is not modified
  • f90b586 avoid creating null keys in proxies
  • ffd8769 fix ie11
  • ff25a83 fix specs
  • 741e941 Merge branch 'master' into v4
  • 732fb19 re-run prettier
  • ae80361 run prettier with master config before merging
  • 85656cb Merge pull request #437 from runnez/es5-map-and-set-support

There are 49 commits in total.

See the full diff


FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

codecov[bot] commented 4 years ago

Codecov Report

Merging #134 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #134   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines         265    265           
  Branches       55     55           
=====================================
  Hits          265    265

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2901b09...aac23a1. Read the comment docs.

greenkeeper[bot] commented 4 years ago

Update to this version instead 🚀

Release Notes for v5.0.1

5.0.1 (2019-12-09)

Bug Fixes

  • Fixed #477, Immer crashes without an Object.assign polyfill (4895824)
Commits

The new version differs by 21 commits.

  • 4895824 fix: Fixed #477, Immer crashes without an Object.assign polyfill
  • d3be40e docs: added TypeScript readonly types note
  • e504e0b test: tried to reproduce #469
  • dbedded fix no-index
  • f29e783 Merge pull request #460 from JeewhanR/master
  • 310cb7c docs: fix link
  • 597126f patch: add funding field
  • cca5e99 docs: spelling fix
  • 2e97fc1 patch: add funding field
  • fa77d74 Fixes word form
  • 39c6e72 Better sidebar title
  • f290126 Merge pull request #454 from immerjs/dependabot/npm_and_yarn/js-yaml-3.13.1
  • 33d7e42 Merge pull request #453 from immerjs/dependabot/npm_and_yarn/handlebars-4.5.1
  • f025769 Merge pull request #452 from immerjs/dependabot/npm_and_yarn/lodash-4.17.13
  • 2994ef6 Merge pull request #451 from immerjs/dependabot/npm_and_yarn/mixin-deep-1.3.2

There are 21 commits in total.

See the full diff

greenkeeper[bot] commented 4 years ago

Update to this version instead 🚀

greenkeeper[bot] commented 4 years ago

Update to this version instead 🚀