Skip to content

fix(deps): update dependency swr to v2.0.1 #1861

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

Merged
merged 2 commits into from
Jan 19, 2023
Merged

fix(deps): update dependency swr to v2.0.1 #1861

merged 2 commits into from
Jan 19, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 2, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
swr (source) 2.0.0-rc.0 -> 2.0.1 age adoption passing confidence

Release Notes

vercel/swr

v2.0.1

Compare Source

Brief

In this patch release, we majorly improves the typing support to infer the typing based on the configuration.

  • When the suspense option is true, the returned data will be non-undefined, and the isLoading will always be false
  • When the fallbackData option is provided, the returned data will be the same type of fallbackData, and the isLoading will always be false
swr-2.0.1.mp4

What's Changed

New Contributors

Full Changelog: vercel/swr@2.0.0...v2.0.1

v2.0.0

Compare Source

Announcing SWR 2.0

We are excited to announce the release of SWR 2.0! The new version comes with a lot of improvements:

  • New useSWRMutation hook
  • Enhanced mutation and optimistic UI capabilities
  • SWR DevTools
  • Preload resource
  • Improved React 18 support

And more!

Read our blog post and migration guide: https://swr.vercel.app/blog/swr-v2

What's Changed

New Contributors

Full Changelog: vercel/swr@1.2.2...2.0.0

v2.0.0-rc.3

Compare Source

What's Changed

Full Changelog: vercel/swr@2.0.0-rc.1...2.0.0-rc.3

v2.0.0-rc.2

Compare Source

v2.0.0-rc.1

Compare Source

~~The last RC before SWR 2.0.~~ This release includes several small fixes with one breaking change.

Breaking

In this release, we are dropping IE 11 support, and using ES2018 as the build target. However, when using SWR in a framework or using a bundler (esbuild, Webpack, etc.), you can still target ES5 or using a browserlist configuration to customize this.

The benefit of this change is, we can now use faster native APIs to make SWR more performant, instead of using old alternatives. A benchmark shows a 4.7x speed improvement of the useSWR() function call during SSR, when we change Object.assign({}, a, b) to { ...a, ...b }.

Details can be found in #​2249.

What's Changed

New Contributors

Full Changelog: vercel/swr@2.0.0-rc.0...2.0.0-rc.1


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team January 2, 2023 02:53
@github-actions github-actions bot added the type: bug code to address defects in shipped code label Jan 2, 2023
@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/63c974e3dc72e600094425bd
😎 Deploy Preview https://deploy-preview-1861--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/63c974e45690550008c99034
😎 Deploy Preview https://deploy-preview-1861--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/63c974e351d56e0008efb624
😎 Deploy Preview https://deploy-preview-1861--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/63c974e4b06cef0008195b10
😎 Deploy Preview https://deploy-preview-1861--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/63c974e471f857000841c7e1
😎 Deploy Preview https://deploy-preview-1861--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/63c974e475af9f0009f0b4ff
😎 Deploy Preview https://deploy-preview-1861--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/63c974e4d2a1f000088a2000
😎 Deploy Preview https://deploy-preview-1861--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/63c974e4692465000891b7a8
😎 Deploy Preview https://deploy-preview-1861--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jan 2, 2023

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 4b7345e
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/63c974e4625c260008736015
😎 Deploy Preview https://deploy-preview-1861--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@renovate renovate bot force-pushed the renovate/swr-2.x branch from 41ba3b7 to 27a1fcb Compare January 18, 2023 20:51
@renovate renovate bot changed the title fix(deps): update dependency swr to v2.0.0 fix(deps): update dependency swr to v2.0.1 Jan 18, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Jan 19, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@kodiakhq kodiakhq bot merged commit c992600 into main Jan 19, 2023
@kodiakhq kodiakhq bot deleted the renovate/swr-2.x branch January 19, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant