From a8dc2a8d48ee2a21c48c2cacb6b9a8467413247b Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2020 11:03:37 -0700 Subject: [PATCH] =?UTF-8?q?Update=20immer=20to=20the=20latest=20version=20?= =?UTF-8?q?=EF=BF=BD=20(#853)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: ## The dependency [immer](https://github.com/immerjs/immer) was updated from `5.3.6` to `6.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](https://www.npmjs.com/~aleclarson) **License:** MIT
Release Notes for v6.0.0

6.0.0 (2020-03-03)

BREAKING CHANGES

feat: Adding large data sets to a draft has been optimized (in case autofreeze is disabled)

Commits

The new version differs by 41 commits.

There are 41 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](https://greenkeeper.io) bot :palm_tree: Pull Request resolved: https://github.com/facebook/flipper/pull/853 Reviewed By: passy Differential Revision: D20303311 Pulled By: mweststrate fbshipit-source-id: ba6ab68246144c858490fbffca8bcff641b930ad --- package.json | 2 +- src/init.tsx | 3 +++ static/globalTestSetup.js | 2 ++ yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 12e6ac853..28c73d06f 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "fb-watchman": "^2.0.0", "flipper-doctor": "^0.7.0", "fs-extra": "^8.0.1", - "immer": "^5.3.5", + "immer": "^6.0.0", "immutable": "^4.0.0-rc.12", "invariant": "^2.2.2", "line-replace": "^1.0.2", diff --git a/src/init.tsx b/src/init.tsx index c8075ef73..1811b8f3e 100644 --- a/src/init.tsx +++ b/src/init.tsx @@ -33,10 +33,13 @@ import {store} from './store'; import {registerRecordingHooks} from './utils/pluginStateRecorder'; import {cache} from 'emotion'; import {CacheProvider} from '@emotion/core'; +import {enableMapSet} from 'immer'; const logger = initLogger(store); const bugReporter = new BugReporter(logger, store); +enableMapSet(); + GK.init(); const AppFrame = () => { diff --git a/static/globalTestSetup.js b/static/globalTestSetup.js index b01cb6659..20dea3ba7 100644 --- a/static/globalTestSetup.js +++ b/static/globalTestSetup.js @@ -8,3 +8,5 @@ */ global.fetch = require('jest-fetch-mock'); + +require('immer').enableMapSet(); diff --git a/yarn.lock b/yarn.lock index 84d485d5b..d6e4b744a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5561,10 +5561,10 @@ ignore@^5.1.1: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf" integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A== -immer@^5.3.5: - version "5.3.5" - resolved "https://registry.yarnpkg.com/immer/-/immer-5.3.5.tgz#6af4e1b74957b7d7ff9de6e170f59fa8e93e7462" - integrity sha512-bX74RWLu00PmYdyUnxjqSaszr/qPgO72okXU+CSAD+LIZOe7sgeva/bUn4Rn4wVoSg9wbsBXmU+TPEOKeaXO9g== +immer@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/immer/-/immer-6.0.0.tgz#39cf65c7720c6ec4bdbd9ced0960b8ff126f3cd6" + integrity sha512-vqOfnW3+VEV6vVxniMLPxTI+tEz1w7POYwOE1okOfnOS9Zl/mCObxino2lxiDC5l9o4NdWy+Rkxk9Em6ThBZBA== immutable@^4.0.0-rc.12: version "4.0.0-rc.12"