Releases: epicweb-dev/cachified
Releases · epicweb-dev/cachified
v3.0.1
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
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:
- write
swr
instead of swv
👍 new: const metadata: CacheMetadata = { swr: 1000, /* ... */ }
⛔️ old: const metadata: CacheMetadata = { swv: 1000, /* ... */ }
- 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
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
1.3.3 (2022-08-02)
Bug Fixes
- allow falsy values in cache (94c3dcf)
v1.3.2
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
1.3.1 (2022-07-28)
Bug Fixes
- provide conditional exports (3189a40)
v1.3.0
1.3.0 (2022-07-25)
Features
- support migrations, async and errors in checkValue (5a32f8d)
v1.2.0
1.2.0 (2022-07-18)
Features
v1.1.0
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
1.0.1 (2022-07-17)
Bug Fixes