-
Notifications
You must be signed in to change notification settings - Fork 88
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
Conversation
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
41ba3b7
to
27a1fcb
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. ⚠ Warning: custom changes will be lost. |
This PR contains the following updates:
2.0.0-rc.0
->2.0.1
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.
suspense
option istrue
, the returneddata
will be non-undefined, and theisLoading
will always befalse
fallbackData
option is provided, the returneddata
will be the same type offallbackData
, and theisLoading
will always befalse
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:
And more!
Read our blog post and migration guide: https://swr.vercel.app/blog/swr-v2
What's Changed
isLoading
state and refactor the core by @shuding in https://github.com/vercel/swr/pull/1928keepPreviousData
option by @shuding in https://github.com/vercel/swr/pull/1929throwOnError
option by @shuding in https://github.com/vercel/swr/pull/2182New 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 changeObject.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.
This PR has been generated by Mend Renovate. View repository job log here.