Skip to content

Releases: edumudu/swr-vue

v1.9.1

21 Dec 12:57
Compare
Choose a tag to compare

1.9.1 (2022-12-21)

Bug Fixes

  • allow node versions greater than 16 (3c5213a)

v1.9.0

21 Nov 04:18
Compare
Choose a tag to compare

1.9.0 (2022-11-21)

Bug Fixes

  • allow use mutate to pre fetch data in key before use in hook (e9d4e00)
  • use shallowReadonly instead deep readonly (712a498)

Features

  • create vue devtools plugin (0e8a58d)

You can register the devtools plugin only in dev mode with vite this way

import { setupDevtools } from 'swr-vue';

// ...
// The devtools code will be removed in the production build
if (import.meta.env.DEV) {
  app.use(setupDevtools);
}

// ...

v1.8.0

12 Sep 01:45
Compare
Choose a tag to compare

1.8.0 (2022-09-12)

Bug Fixes

  • mutate: serialize key passed for global mutate function (d00fd46)
  • skip dedup when call mutate (7481166)
  • types: fix mutate type to accepts raw values (ef4610b)

Features

  • key: change function to hash keys (3ffabf5)
  • mutate: allow revalidate composables via mutate function (dcc177b)

v1.7.3

06 Sep 02:47
Compare
Choose a tag to compare

1.7.3 (2022-09-06)

Bug Fixes

  • dedup: fix dedup when already has cache (675153f)
  • useSWR: fix erro and data type missing undefined (9428cdc)
  • useSWR: verify if is in client before use browser APIs (6e82799)

v1.7.2

31 Aug 01:05
Compare
Choose a tag to compare

1.7.2 (2022-08-31)

Bug Fixes

  • useSWR: fix generic types (cdb88dc)

v1.7.1

29 Aug 01:29
Compare
Choose a tag to compare

1.7.1 (2022-08-29)

Bug Fixes

  • useSWR: fix possible call max stack error when watching changes from the composables state (1b648a6)

v1.7.0

29 Aug 00:54
Compare
Choose a tag to compare

1.7.0 (2022-08-29)

Bug Fixes

  • fix build type declarations (7f97e97)
  • fix delayed cache sync (45ae7cd)
  • types: fix CacheState types (87da2a7)
  • useSWR: fix not getting stale data until fetcher resolves when key change (b54e131)

Features

v1.6.0

11 Aug 04:40
Compare
Choose a tag to compare

1.6.0 (2022-08-11)

Features

  • add fallback option (0402100)
  • add focusThrottleInterval option (ae8b11e)

v1.5.0

09 Aug 02:15
Compare
Choose a tag to compare

1.5.0 (2022-08-09)

Features

v1.4.0

18 Jul 01:47
Compare
Choose a tag to compare

1.4.0 (2022-07-18)

Bug Fixes

  • fix mergeConfigs function typing (620c089)
  • make default cache reactive (7e7acde)
  • fix wrong behavior from mutate function (e481a29)

Features