Bowen7 / regex-vis

🎨 Regex visualizer & editor
https://regex-vis.com
MIT License
3.78k stars 279 forks source link

fix(deps): update dependency immer to v10 #98

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
immer ^9.0.6 -> ^10.0.0 age adoption passing confidence

Release Notes

immerjs/immer (immer) ### [`v10.0.3`](https://togithub.com/immerjs/immer/releases/tag/v10.0.3) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.0.2...v10.0.3) ##### Bug Fixes - don't use `.mjs` file for react-native, which isn't supported by default. Fixes [#​1058](https://togithub.com/immerjs/immer/issues/1058) [#​1065](https://togithub.com/immerjs/immer/issues/1065) ([#​1075](https://togithub.com/immerjs/immer/issues/1075)) ([f6736a4](https://togithub.com/immerjs/immer/commit/f6736a4beef727c6e5b41c312ce1b202ad3afb23)) ### [`v10.0.2`](https://togithub.com/immerjs/immer/releases/tag/v10.0.2) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.0.1...v10.0.2) ##### Bug Fixes - export `Objectish` type ([#​1043](https://togithub.com/immerjs/immer/issues/1043)) ([75e004d](https://togithub.com/immerjs/immer/commit/75e004db1374e059773047e786d6d01ee1e90a0f)) - Move index.js.flow from dist/ -> dist/cjs/ to match index.js ([#​1038](https://togithub.com/immerjs/immer/issues/1038)) ([a3b5603](https://togithub.com/immerjs/immer/commit/a3b5603c7270ba5b5267b41312a66931026c21c9)) ### [`v10.0.1`](https://togithub.com/immerjs/immer/releases/tag/v10.0.1) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.0.0...v10.0.1) ##### Bug Fixes - production bundle was loaded incorrectly, fixes [#​1037](https://togithub.com/immerjs/immer/issues/1037) ([707e72b](https://togithub.com/immerjs/immer/commit/707e72b49f7c06b623242a3b66c2bda83e786d63)) ### [`v10.0.0`](https://togithub.com/immerjs/immer/releases/tag/v10.0.0) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.21...v10.0.0) ### Release notes - \[breaking change] Immer 10 only supports modern browsers, that have support for `Proxy`, `Reflect`, `Symbol` and `Map` and `Set`. - \[breaking change] There is no longer a UMD build exposed (thanks [Mark Erikson](https://togithub.com/markerikson) for modernizing the build setup in [#​1032](https://togithub.com/immerjs/immer/issues/1032)! - \[breaking change] getters and setters are ignored by default on plain object, as this is a very uncommon case and provides a significant performance boost (ca 33%, but depends a lot on the scenario). Fixes [#​867](https://togithub.com/immerjs/immer/issues/867), [#​1012](https://togithub.com/immerjs/immer/issues/1012). Thanks [hrsh7th](https://togithub.com/hrsh7th) for implementing it in [#​941](https://togithub.com/immerjs/immer/issues/941)! - \[breaking change] Promise based reducers are no longer supported. Conceptually it is an anti pattern to hold on to drafts over time. If needed the old behavior can still be achieved by leveraging `createDraft` and `finishDraft`. - \[breaking change] ES5 mode (for legacy browsers) has been dropped. If your project relies on `enableES5()`, you SHOULD NOT upgrade Immer. `enableES5` has been removed. - \[breaking change] `produce` is no longer exposed as the `default` export. This improves eco system compatibility, and makes sure that there is only one correct way of doing things - \[breaking change] `enableAllPlugins` has been removed, use `enablePatches(); enableMapSet()` instead - \[breaking change] shortening the length of a JSON array now results in delete patches, rather than a mutation of the `length` property, in accordance with JSON spec. Thanks [kshramt](https://togithub.com/kshramt) for implementing this in [#​964](https://togithub.com/immerjs/immer/issues/964)! - Immer is now an ESM package that can be directly imported into the browser. CJS should still work, UMD support has been removed. Overall, there is a rough performance increase of 33% for Immer (and in some cases significantly higher), and the (non gzipped) bundle size has reduced from 16 to 11.5 KB, while the the minimal gzipped import of just `produce` has remained roughly the same at 3.3 KB. For more details, see [#​1015](https://togithub.com/immerjs/immer/issues/1015) #### Migration steps 1. If you have any `enableES5()` call, don't migrate 2. When using getters/ setters icmw plain objects, call `useStrictShallowCopy(true)` at startup 3. Replace all default imports: Replace `import produce from "immer"` with `import {produce} from "immer"` 4. Replace all calls to `enableAllPlugins()` with `enablePatches(); enableMapSet();` to be more specific and smoothen future migrations. 5. If any producer returned a Promise, refactor it to leverage `createDraft` instead. Roughly: ```javascript const newState = await produce(oldState, recipe) // becomes const draft = createDraft(oldState) await recipe(draft) const newState = finishDraft(draft) ``` ### [`v9.0.21`](https://togithub.com/immerjs/immer/releases/tag/v9.0.21) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.20...v9.0.21) ##### Bug Fixes - ensure type exports is first in package.json export declaration ([#​1018](https://togithub.com/immerjs/immer/issues/1018)) ([b6ccd0f](https://togithub.com/immerjs/immer/commit/b6ccd0f5341cef267c4db816cc28f4df4a5846dd)) ### [`v9.0.20`](https://togithub.com/immerjs/immer/releases/tag/v9.0.20) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.19...v9.0.20) ##### Bug Fixes - patching maps failed when using number keys ([#​1025](https://togithub.com/immerjs/immer/issues/1025)) ([dd83e2e](https://togithub.com/immerjs/immer/commit/dd83e2e2db0c16e44986feeb3429fe2b7662b2b5)) ### [`v9.0.19`](https://togithub.com/immerjs/immer/releases/tag/v9.0.19) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.18...v9.0.19) ##### Bug Fixes - don't freeze drafts returned from produce if they were passed in as draft ([#​917](https://togithub.com/immerjs/immer/issues/917)) ([46867f8](https://togithub.com/immerjs/immer/commit/46867f8aa90f6c8d2d94517f6bd748d679b6ea79)) - produce results should never be frozen when returned from nested produces, to prevent 'hiding' drafts. Fixes [#​935](https://togithub.com/immerjs/immer/issues/935) ([a810960](https://togithub.com/immerjs/immer/commit/a81096024ca1d6de75feb0b26a2f6a4aa5ae4bf7)) - release and publish from 'main' rather than 'master' branch ([82acc40](https://togithub.com/immerjs/immer/commit/82acc409b2b1d66373fc44200443e63917a32198)) - revert earlier fix ([#​990](https://togithub.com/immerjs/immer/issues/990)) for recursive types ([#​1014](https://togithub.com/immerjs/immer/issues/1014)) ([3eeb331](https://togithub.com/immerjs/immer/commit/3eeb33190523635a2fc3a8aa7f83b537d15a7c3c)) - Upgrade Github actions to Node 16 attempt 1 ([9d4ea93](https://togithub.com/immerjs/immer/commit/9d4ea93f8eb17f646aef2782f1d088a8c109bd53)) - Upgrade Github actions to Node 16 attempt 2 ([082eecd](https://togithub.com/immerjs/immer/commit/082eecd6101d27d1fda1817461ef0ad060341715)) ### [`v9.0.18`](https://togithub.com/immerjs/immer/releases/tag/v9.0.18) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.17...v9.0.18) ##### Bug Fixes - Preserve insertion order of Sets, fixes [#​819](https://togithub.com/immerjs/immer/issues/819) ([#​976](https://togithub.com/immerjs/immer/issues/976)) ([b3eeb69](https://togithub.com/immerjs/immer/commit/b3eeb69f2926c5f9ef3632023d3ef0695470f724)) - unnecessarily recursive Draft type ([#​990](https://togithub.com/immerjs/immer/issues/990)) ([b9eae1d](https://togithub.com/immerjs/immer/commit/b9eae1d18083b63cf37483183e91356ec5ee912c)) ### [`v9.0.17`](https://togithub.com/immerjs/immer/releases/tag/v9.0.17) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.16...v9.0.17) ##### Bug Fixes - special case NaN in setter ([#​912](https://togithub.com/immerjs/immer/issues/912)) ([5721bb7](https://togithub.com/immerjs/immer/commit/5721bb7cface08fe8727d69ead406fc9ff2b8cde)) ### [`v9.0.16`](https://togithub.com/immerjs/immer/releases/tag/v9.0.16) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.15...v9.0.16) ##### Bug Fixes - protect isDraftable against undefined constructor ([#​969](https://togithub.com/immerjs/immer/issues/969)) ([ced4563](https://togithub.com/immerjs/immer/commit/ced45636865729ec6a27a814183a3af5db3ffceb)) ### [`v9.0.15`](https://togithub.com/immerjs/immer/releases/tag/v9.0.15) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.14...v9.0.15) ##### Bug Fixes - Add "types" to exports for TypeScript 4.7 ([#​946](https://togithub.com/immerjs/immer/issues/946)) ([85ce6b7](https://togithub.com/immerjs/immer/commit/85ce6b74e80ed867d69161c8f4058abade264cd9)) ### [`v9.0.14`](https://togithub.com/immerjs/immer/releases/tag/v9.0.14) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.13...v9.0.14) ##### Bug Fixes - Use .esm.js module for backwards compatibility with old build tools ([#​939](https://togithub.com/immerjs/immer/issues/939)) ([d30d219](https://togithub.com/immerjs/immer/commit/d30d219983e139920d2b93fc4eb0b7b36a56eb5c)) ### [`v9.0.13`](https://togithub.com/immerjs/immer/releases/tag/v9.0.13) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.12...v9.0.13) ##### Bug Fixes - consistent recipe return type in produceWithPatches ([#​934](https://togithub.com/immerjs/immer/issues/934)) ([220d61d](https://togithub.com/immerjs/immer/commit/220d61d47fea7fae24c794f14dc529bcd7b46249)) - incorrect return type for async produceWithPatches ([#​933](https://togithub.com/immerjs/immer/issues/933)) ([9f7623d](https://togithub.com/immerjs/immer/commit/9f7623d43466bd3b705099f0c825cb00670a9214)) ### [`v9.0.12`](https://togithub.com/immerjs/immer/releases/tag/v9.0.12) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.11...v9.0.12) ##### Bug Fixes - produceWithPatches should not wrap result in Immutable, fixes [#​850](https://togithub.com/immerjs/immer/issues/850), [#​881](https://togithub.com/immerjs/immer/issues/881) ([d8f2636](https://togithub.com/immerjs/immer/commit/d8f26362a9ff1ca7385943ce0b4cb49e9530edaf)) ### [`v9.0.11`](https://togithub.com/immerjs/immer/releases/tag/v9.0.11) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.10...v9.0.11) ##### Bug Fixes - incorrect patches for `delete` on arrays. Fixes [#​879](https://togithub.com/immerjs/immer/issues/879) ([d91a659](https://togithub.com/immerjs/immer/commit/d91a6597e92570086b329ba5b197c18d211077db)) ### [`v9.0.10`](https://togithub.com/immerjs/immer/releases/tag/v9.0.10) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.9...v9.0.10) ##### Bug Fixes - No patches being generated for root primitive replacements. Fixes [#​888](https://togithub.com/immerjs/immer/issues/888) ([0f96270](https://togithub.com/immerjs/immer/commit/0f96270840f3b3ab20f566b18a421acdc0eb8d35)) ### [`v9.0.9`](https://togithub.com/immerjs/immer/releases/tag/v9.0.9) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.8...v9.0.9) ##### Bug Fixes - make sure produceWithPatches accepts promises ([d80e823](https://togithub.com/immerjs/immer/commit/d80e8237334226624f25424fdd0e7c0b6f2543d7)) ### [`v9.0.8`](https://togithub.com/immerjs/immer/releases/tag/v9.0.8) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.7...v9.0.8) ##### Bug Fixes - immerjs[#​876](https://togithub.com/immerjs/immer/issues/876) Ensure empty patch set for atomic set+delete on Map ([#​878](https://togithub.com/immerjs/immer/issues/878)) ([e140918](https://togithub.com/immerjs/immer/commit/e1409180ebf657dc49263afef4a55b1e739b4625)) ### [`v9.0.7`](https://togithub.com/immerjs/immer/releases/tag/v9.0.7) [Compare Source](https://togithub.com/immerjs/immer/compare/v9.0.6...v9.0.7) ##### Bug Fixes - Append to array when key is "-" ([#​872](https://togithub.com/immerjs/immer/issues/872)) ([2afdb1b](https://togithub.com/immerjs/immer/commit/2afdb1b37d784f6df64d6d66a25e86ce88131807))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
regex-vis ❌ Failed (Inspect) Aug 11, 2023 10:31am