Thierry-Chain / Library-Management-App

Updated Library management system
https://smart-library-rw.herokuapp.com
2 stars 1 forks source link

Update dependency immer to v10 #93

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

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

Release Notes

immerjs/immer (immer) ### [`v10.1.1`](https://togithub.com/immerjs/immer/releases/tag/v10.1.1) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.1.0...v10.1.1) ##### Bug Fixes - export lost types ([#​1116](https://togithub.com/immerjs/immer/issues/1116)) ([5a8f6e7](https://togithub.com/immerjs/immer/commit/5a8f6e7bee76407502ca128f95ad25d277c054e3)) - Make `applyPatches` to accept `readonly Patch[]` ([#​1094](https://togithub.com/immerjs/immer/issues/1094)) ([4da2e0d](https://togithub.com/immerjs/immer/commit/4da2e0d5af3c155ba26af1364a7095366adff6ba)) ### [`v10.1.0`](https://togithub.com/immerjs/immer/releases/tag/v10.1.0) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.0.4...v10.1.0) ##### Features - **performance:** Make non-strict mode faster for classes. Addresses [#​1071](https://togithub.com/immerjs/immer/issues/1071) ([53e3203](https://togithub.com/immerjs/immer/commit/53e3203984058b8e5ce81a67b81c60069481c568)). Immer 10.x solved slow iteration for plain JS objects. This update applies the same handling to class instances. In cases this makes class instance handling 3 times faster. Note that this slightly modifies the behavior of Immer with classes in obscure corner cases, in ways that match current documentation, but do not match previous behavior. If you run into issues with this release icmw. class instances, use `setUseStrictShallowCopy("class_only")` to revert to the old behavior. For more details see https://immerjs.github.io/immer/complex-objects#semantics-in-detail ### [`v10.0.4`](https://togithub.com/immerjs/immer/releases/tag/v10.0.4) [Compare Source](https://togithub.com/immerjs/immer/compare/v10.0.3...v10.0.4) ##### Bug Fixes - Fix handling of Symbol and non-enumerable properties in finalization / freeze. Fixes [#​1096](https://togithub.com/immerjs/immer/issues/1096), [#​1087](https://togithub.com/immerjs/immer/issues/1087), [#​1091](https://togithub.com/immerjs/immer/issues/1091) ([#​1105](https://togithub.com/immerjs/immer/issues/1105))) ([8949a3e](https://togithub.com/immerjs/immer/commit/8949a3ee68f187573e61f5345f2b8b59bcd0813c)) ### [`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))

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 was generated by Mend Renovate. View the repository job log.

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
manage-my-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 1, 2023 5:54am