releases.shpreview
Vercel/SWR

SWR

$npx -y @buildinternet/releases show swr
Mon
Wed
Fri
AprMayJunJulAugSepOctNovDecJanFebMarApr
Less
More
Releases3Avg0/wkVersionsv2.3.7 → v2.4.0
Nov 26, 2021

Patches

  • Chore: rename major branch to main: #1664
  • Fix keyloader index and previousPageData type: #1669
  • Fix: Add defaults for SWRResponse: #1609

Credits

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

Nov 24, 2021

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!

Nov 23, 2021

Minor Changes

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

Patches

  • Fix: typos: #1647

Credits

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

Nov 11, 2021

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!

Nov 1, 2021

Patches

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

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!

Oct 24, 2021

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!

Oct 9, 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!

Oct 3, 2021

Minor Changes

  • Feat: Add new onDiscarded option: #1523

Patches

  • Chore: Code refactoring: #1521
  • Fix error events not deduped: #1522
Oct 1, 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!

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!

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!

Sep 15, 2021

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!

Sep 9, 2021

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!

Sep 1, 2021

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!

Aug 27, 2021

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!

Aug 26, 2021

Patches

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

Credits

Huge thanks to @huozhi and @karaggeorge for helping!

Aug 25, 2021

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!

Aug 24, 2021

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!

Latest
v2.4.0
Tracking Since
Oct 29, 2019
Last checked Apr 19, 2026