Skip to content

Releases: vercel/swr

1.1.0-beta.11

24 Nov 15:11
72a5480
Compare
Choose a tag to compare
1.1.0-beta.11 Pre-release
Pre-release

Patches

  • Fix: supports ssr in ie11(#1657): #1659
  • Type: disbale inference when data generic is provided: #1658

Credits

Huge thanks to @Sh031224 and @promer94 for helping!

1.1.0-beta.10

23 Nov 15:12
bb0bd86
Compare
Choose a tag to compare
1.1.0-beta.10 Pre-release
Pre-release

Minor Changes

  • Build: output without minification: #1650
  • Tweak types: #1640

Patches

Credits

Huge thanks to @promer94, @huozhi, and @nguyenyou for helping!

1.1.0-beta.9

11 Nov 10:37
98556e1
Compare
Choose a tag to compare
1.1.0-beta.9 Pre-release
Pre-release

Minor Changes

  • Revert "chore: Add type: "module" and use .mjs extension" (#1618): #1604

Patches

  • Enhance: bind removeEventListener: #1596

Credits

Huge thanks to @huozhi for helping!

1.1.0-beta.8

01 Nov 18:04
37ba0e9
Compare
Choose a tag to compare
1.1.0-beta.8 Pre-release
Pre-release

Patches

  • Chore: Add type: "module" and use .mjs extension: #1604

1.1.0-beta.7

01 Nov 13:00
d618614
Compare
Choose a tag to compare
1.1.0-beta.7 Pre-release
Pre-release

Minor Changes

  • Fix: Support for functions that return false: #1586
  • Fix: adds undefined as valid Key type to allow falsy Key or Key(): #1594
  • Revert "mark data and error as readonly " (#1570): #1514

Patches

  • Fix react-native issue: #1583
  • Fix: compatible with miniprogram: #1595
  • Change config alteration process in withMiddleware to be immutable: #1556
  • Fix mutate argument for infinite: #1602

Credits

Huge thanks to @TakahiroHimi, @morgs32, @aFINKndreas, @zhaomengfan, and @junsushin-dev for helping!

1.1.0-beta.6

24 Oct 04:25
99ed33b
Compare
Choose a tag to compare
1.1.0-beta.6 Pre-release
Pre-release

Patches

  • Small fixes: #1541
  • Chore: Refactor cleanupState: #1544
  • Feat: using latest version of axios with fetch interceptor: #1548
  • Test: Add test case for mutation deduplication: #1549
  • Test: speed up with @swc-node/jest: #1569
  • Optimizations: #1578

Credits

Huge thanks to @danestves and @huozhi for helping!

1.1.0-beta.5

09 Oct 22:02
9e3a430
Compare
Choose a tag to compare
1.1.0-beta.5 Pre-release
Pre-release

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

03 Oct 06:31
378bc7c
Compare
Choose a tag to compare
1.1.0-beta.4 Pre-release
Pre-release

Minor Changes

  • Feat: Add new onDiscarded option: #1523

Patches

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

1.1.0-beta.3

01 Oct 08:40
40143cf
Compare
Choose a tag to compare
1.1.0-beta.3 Pre-release
Pre-release

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

26 Sep 20:44
b6de933
Compare
Choose a tag to compare
1.1.0-beta.2 Pre-release
Pre-release

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!