Skip to content

Releases: epicweb-dev/cachified

v3.0.1

14 Dec 20:42
58f0602
Compare
Choose a tag to compare

3.0.1 (2022-12-14)

Bug Fixes

  • redis 4 adapter: ceil EXAT value (#18 - 58f0602)

    in order to fix ERR value is not an integer or out of range

    fixes #17

    Contributed by @TapaiBalazs

v3.0.0

24 Oct 11:15
ee13f13
Compare
Choose a tag to compare

3.0.0 (2022-10-24)

Bug Fixes

  • caches work on unknown data types (c3603b1)
  • rename swv to swr on CacheMetadata (b0558a5)

BREAKING CHANGES

  • CacheMetadata.swv has been renamed to CacheMetadata.swr
    for the most part this will be handled by the library
    (existing cache entries with swv will continue to work, only new ones will use swr)

    Migration:
    When you worked with CacheMetadata (for example in a custom cache adapter)
    you need to adapt your code to:

    1. write swr instead of swv
      👍 new: const metadata: CacheMetadata = { swr: 1000, /* ... */ }
      ⛔️ old: const metadata: CacheMetadata = { swv: 1000, /* ... */ }
    2. read using the staleWhileRevalidate helper
      👍 new: const staleMs = staleWhileRevalidate(metadata)
      ⛔️ old: const staleMs = metadata.swv
  • The Cache type is not generic anymore and always uses unknown for values
    You might need to adjust your cache implementations and caches to now work on
    unknown data types. Typescript should inform you where.
    Nothing to be done when you only used the build-in cache adapters.

v2.0.0

16 Oct 12:19
e7343d2
Compare
Choose a tag to compare

2.0.0 (2022-10-16)

Features

  • add adapters for redis 3 & 4 (2e78117)
  • drop official support for node@12 (e7343d2)

BREAKING CHANGES

  • the library is not anymore tested against node@12 there should not be any breaking changes now
    but might be introduced from now on

v1.3.3

02 Aug 11:34
94c3dcf
Compare
Choose a tag to compare

1.3.3 (2022-08-02)

Bug Fixes

  • allow falsy values in cache (94c3dcf)

v1.3.2

28 Jul 11:36
7261b35
Compare
Choose a tag to compare

1.3.2 (2022-07-28)

Bug Fixes

  • do not accidentally cache ttl: 0 entries forever (7261b35)
  • export assertCacheEntry and shouldRefresh (7e737ef)

v1.3.1

28 Jul 09:52
3189a40
Compare
Choose a tag to compare

1.3.1 (2022-07-28)

Bug Fixes

  • provide conditional exports (3189a40)

v1.3.0

25 Jul 07:43
1c4e7f8
Compare
Choose a tag to compare

1.3.0 (2022-07-25)

Features

  • support migrations, async and errors in checkValue (5a32f8d)

v1.2.0

18 Jul 23:11
989df12
Compare
Choose a tag to compare

1.2.0 (2022-07-18)

Features

  • add lru adapter and test (e271095)

v1.1.0

17 Jul 22:43
0dd9f3b
Compare
Choose a tag to compare

1.1.0 (2022-07-17)

Features

  • add full options to reporter (1908345)
  • add verbose reporter (0dd9f3b)
  • support numeric fallbackToCache values (5ab749a)

v1.0.1

17 Jul 20:16
28f180f
Compare
Choose a tag to compare

1.0.1 (2022-07-17)

Bug Fixes

  • actually ship required logic (ce1b38f)
  • build cjs for es2016 (28f180f)