Skip to content

Releases: vercel/swr

1.1.0-beta.1

22 Sep 14:39
86fb5da
Compare
Choose a tag to compare
1.1.0-beta.1 Pre-release
Pre-release

Minor Changes

  • Add react 18 to peerDependencies: #1467
  • Upgrade typescript to 4.4.3: #1486

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

Huge thanks to @huozhi and @koba04 for helping!

1.1.0-beta.0

15 Sep 23:08
ea151b5
Compare
Choose a tag to compare
1.1.0-beta.0 Pre-release
Pre-release

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

12 Sep 21:37
214d959
Compare
Choose a tag to compare

1.0.1-beta.1

09 Sep 21:05
d8d71cc
Compare
Choose a tag to compare
1.0.1-beta.1 Pre-release
Pre-release

Minor Changes

  • Should treat key change as remount: #1430

Patches

  • Test: add tests for a global cache: #1421
  • Chore: always use config ref: #1397
  • Typing: use separated constants instead of enum: #1425

Credits

Huge thanks to @koba04 and @huozhi for helping!

1.0.1-beta.0

01 Sep 10:24
d97b704
Compare
Choose a tag to compare
1.0.1-beta.0 Pre-release
Pre-release

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

27 Aug 16:21
ce95f49
Compare
Choose a tag to compare

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!

1.0.0-beta.15

26 Aug 21:06
256341b
Compare
Choose a tag to compare
1.0.0-beta.15 Pre-release
Pre-release

Patches

  • Doc: update fallbackData usage examples: #1380
  • Fix bound mutate: #1383

Credits

Huge thanks to @huozhi and @karaggeorge for helping!

1.0.0-beta.14

25 Aug 17:27
50adf76
Compare
Choose a tag to compare
1.0.0-beta.14 Pre-release
Pre-release

Patches

  • Chore: add test for callback setSize: #1373
  • Fix: cache is missing on server side: #1377
  • Rm deprecated warning: #1374
  • Add basic test for node env: #1378
  • [Infinite] Return current data if failed to resolve pages from cache when setting size: #1379
  • Rename revalidateWhenStale: #1381

Credits

Huge thanks to @huozhi for helping!

1.0.0-beta.13

24 Aug 12:08
a553657
Compare
Choose a tag to compare
1.0.0-beta.13 Pre-release
Pre-release

Major Changes

  • New useSWRConfig API and remove createCache: #1361
  • Rename middlewares option to use: #1368
  • Rename fallbackValues to fallback; rename initialData to fallbackData: #1370

Minor Changes

  • Replace Object.defineProperties with getter: #1371
  • Update README and CONTRIBUTING: #656

Patches

  • Improve tests for cache provider: #1369

Credits

Huge thanks to @huozhi and @pacocoursey for helping!

1.0.0-beta.12

20 Aug 21:32
471a582
Compare
Choose a tag to compare
1.0.0-beta.12 Pre-release
Pre-release

Patches

  • Add beta publish script: #1351
  • Fix: isValidating should be false when no fetcher is provided: #1352
  • Upgrade bunchee, dedupe yarn lock: #1358
  • Reverse middleware order: #1360

Credits

Huge thanks to @huozhi for helping!