Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency immer to v10 #978

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 27, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
immer 9.0.21 -> 10.1.1 age adoption passing confidence

Release Notes

immerjs/immer (immer)

v10.1.1

Compare Source

Bug Fixes

v10.1.0

Compare Source

Features
  • performance: Make non-strict mode faster for classes. Addresses #​1071 (53e3203). 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

Compare Source

Bug Fixes

v10.0.3

Compare Source

Bug Fixes

v10.0.2

Compare Source

Bug Fixes

v10.0.1

Compare Source

Bug Fixes

v10.0.0

Compare Source

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 for modernizing the build setup in #​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, #​1012. Thanks hrsh7th for implementing it in #​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 for implementing this in #​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

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:
const newState = await produce(oldState, recipe)

// becomes
const draft  = createDraft(oldState)
await recipe(draft)
const newState = finishDraft(draft)

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link

vercel bot commented Apr 27, 2023

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

Name Status Preview Comments Updated (UTC)
data-manager-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2023 0:23am

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Apr 27, 2023
@renovate renovate bot had a problem deploying to data-manager-ui/test April 27, 2023 22:11 Failure
@renovate renovate bot had a problem deploying to data-manager-ui/test April 27, 2023 22:11 Failure
@renovate renovate bot temporarily deployed to data-manager-ui/test May 9, 2023 20:28 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test May 9, 2023 20:28 Inactive
@github-actions
Copy link

github-actions bot commented May 9, 2023

📦 Next.js Bundle Analysis for @squonk/data-manager-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 160.26 KB (🟢 -1.23 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 10:52 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 10:52 Inactive
@github-actions
Copy link

📦 Next.js Bundle Analysis for @squonk/data-manager-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 160.25 KB (🟢 -1.23 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Two Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/datasets 116.42 KB 276.68 KB 79.05% (+/- <0.01%)
/project 111.98 KB 272.24 KB 77.78% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 11:14 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 11:14 Inactive
@github-actions
Copy link

📦 Next.js Bundle Analysis for @squonk/data-manager-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 160.42 KB (🟢 -1.24 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/datasets 116.56 KB 276.98 KB 79.14% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@renovate renovate bot had a problem deploying to data-manager-ui/test May 10, 2023 12:47 Failure
@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 12:47 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 12:58 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test May 10, 2023 12:58 Inactive
@github-actions
Copy link

📦 Next.js Bundle Analysis for @squonk/data-manager-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 160.76 KB (🟢 -1.25 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/datasets 116.76 KB 277.53 KB 79.29% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 10:47 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 10:47 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 15:24 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 15:24 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 21:42 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 21:42 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:03 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:03 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:25 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:25 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:34 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:34 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:39 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:39 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:44 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 7, 2024 22:44 Inactive
@renovate renovate bot had a problem deploying to data-manager-ui/test November 8, 2024 22:55 Failure
@renovate renovate bot temporarily deployed to data-manager-ui/test November 8, 2024 22:55 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 9, 2024 11:29 Inactive
@renovate renovate bot temporarily deployed to data-manager-ui/test November 9, 2024 11:29 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants