Releases: vercel/swr
Releases · vercel/swr
1.1.0-beta.5
Minor Changes
Patches
- Output code coverage: #1511
- Test: Add tests for reconnect and merge-config: #1530
- Fix: Only trigger the success event if not discarded: #1529
- Chore: Code refactoring: #1533
- Fix: Reusing cache provider: #1539
- Chore: fix ts comments: #1540
- Fix: Ensure mutate accepts undefined as the data: #1515
Credits
1.1.0-beta.4
1.1.0-beta.3
Patches
- Fix: Invalidate the key when mutating without revalidating: #1498
- Example: add ref checking condition: #1504
- Fix: Refactor core revalidate function and fix isValidating state bug: #1493
- Chore: Remove duplicate configs: #1507
- Typing: fix-type-generation: #1509
- Chroe: use yalc for local development: #1508
Credits
1.1.0-beta.2
1.1.0-beta.1
Minor Changes
Patches
- Test: refactor immutable and infinite hook tests: #1466
- Test: refactor integration and loading tests: #1473
- Test: refactor key, middlewares, and suspense tests: #1474
- Test: refactor offline and refresh tests: #1483
- Build(deps): bump tmpl from 1.0.4 to 1.0.5: #1484
- Chore: Code refactoring: #1482
Credits
1.1.0-beta.0
Minor Changes
- Should treat key change as remount: #1430
- Stable hash: #1429
- Enhance: provider release handlers: #1449
Patches
- Test: add tests for a global cache: #1421
- Chore: always use config ref: #1397
- Typing: use separated constants instead of enum: #1425
- Test: add render utilities and remove TestSWRConfig: #1435
- Fix initial isValidating when isPaused() returns true: #1440
- Build: no emit on error: #1446
- Chore: remove unused typings: #1448
- Test: refactor use-swr-cache-test: #1442
- Refactor code related to unsubscribing global listeners: #1451
- Chore: refactor infinite: #1452
- Test: refactor concurrent rendering tests: #1457
- Test: refactor config tests: #1458
- Revert "feat: add a warning for invalid arguments with suspense mode " (#1460): #1402
- Test: refactor mutation tests: #1459
- Fix: Support IE11: #1463
Credits
Huge thanks to @huozhi, @koba04, @anirudh1713, @anothertempore, and @amannn for helping!
1.0.1
1.0.1-beta.1
1.0.1-beta.0
Minor Changes
- Feat: add a warning for invalid arguments with suspense mode: #1402
- Export KeyedMutator type from root export: #1406
Patches
- Fix typo in test: #1393
- Chore: remove isomorphic-unfetch from examples: #1389
- Chore: bump swr to latest in examples: #1394
- Fix: isValidating when an error occurred: #1396
- Fix:
useSWRConfig
is exported as() => any
type: #1409 - Fix: isValidating cache inconsistence in mutatation: #1411
- Refactor: use TestSWRConfig for error-test: #1404
Credits
Huge thanks to @louisgv, @willheslam, @koba04, @huozhi, and @origin-master for helping!
1.0.0
Minor Changes & Breaking Changes
See full changes of this major & previous beta updates on the Releases page. Also read our blog post and migration guide: https://swr.vercel.app/blog/swr-v1.
Patches
- Chore: add test to ensure the unserialized key is passed to middleware: #1384
- Chore(examples): update all examples to use v1: #1385
Credits
Huge thanks to @koba04 for helping!