Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ swr (2.2.5 → 2.3.0) · Repo
Release Notes
2.3.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 41 commits:
2.3.0
Improve-Type-Safety-and-State-Access-in-useStateWithDeps-Hook (#3027)
2.2.6-beta.5
ci: remove the duplicate checks-all script
fix type check in tests (#3052)
upgrade use-sync-external-store to support react 19 (#3050)
Bump bundler and reorganize serialize exports (#3049)
chore: reorganize entries (#3048)
ci: simplify ci config and bump some deps version (#2770)
Update React 19 peer dependency version (#3047)
fix: Only suspend when using the `fallback` (#3045)
fix #3030 and run relateive test in edge-runtime (#3036)
chore: upgrade nextjs dev dep for e2e testing (#3044)
2.2.6-beta.4
fix: Improve comparison performance (#2973)
2.2.6-beta.3
chore: add react peerDeps 19 (#2963)
fix(infinte): export SWRInfiniteKeyedMutator type (#2900)
fix: check if config.fallback is undefined (#2913)
Export ScopedMutator type (#2937)
test: update the revalidate function test for useSWRInfinite (#2955)
Add SWRInfiniteMutatorOptions type to export (#2954)
ci: fix ci error and upgrade action version (#2952)
2.2.6-beta.2
Fix bundling of client entry chunks (#2932)
build: bump bundler for perf (#2929)
2.2.6-beta.1
test: remove console.error times check (#2918)
chore: update pkg script watch (#2920)
fix: Replace the deprecated 'window' with 'globalThis' for Deno (#2915)
Drop exports module field (#2911)
Mark package as side-effect free (#2904)
Drop client-only (#2910)
examples: add RSC streaming pre-render with promise fallback example (#2905)
build: simplify react-server export and update bundler (#2897)
chore: simplify test coverage strategy (#2909)
chore: Improve test coverage (#2903)
build: fix beta release job (#2895)
2.2.6-beta.0
[Experimental] Support promises as fallback data (#2891)
chore: bump dev deps and change example react version to latest (#2894)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands