Skip to content

Change Log

Please visit the SWR release page for all history releases.

1.1.0-beta.5

Published on Sat Oct 09 2021.

Minor Changes

  • Mark data and error as readonly: #1514
  • Add revalidateFirstPage option to infinite: #1538

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

Huge thanks to @timas130 and @huozhi for helping!

1.1.0-beta.4

Published on Sun Oct 03 2021.

Minor Changes

  • Feat: Add new onDiscarded option: #1523

Patches

  • Chore: Code refactoring: #1521
  • Fix error events not deduped: #1522

1.1.0-beta.3

Published on Fri Oct 01 2021.

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

Huge thanks to @huozhi and @promer94 for helping!

1.1.0-beta.2

Published on Sun Sep 26 2021.

Minor Changes

  • Type useSWR fetcher: #1477

Patches

  • Ci: multiple dir type checking: #1492
  • Chore: Improve project file structure: #1497
  • Chore: Refine type interfaces: #1496
  • Chore: Upgrade eslint and add local cache: #1499

Credits

Huge thanks to @promer94 and @huozhi for helping!

1.1.0-beta.1

Published on Wed Sep 22 2021.

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!