- Make types more specific for what type of value is passed to
get
andset
(an array). Technically this is a breaking change for TS users as it requires TS v4 for named tuples. - Fix cleanup interval if the
get
method of the storage returns a Promise.
- Add Typescript defs. Fix second example in the Readme;
fetchProjectMeta
should have been returning a function 🤦♂️
- Ignore this release, no useful changes ;)
- Fix potential crash in cleanup interval logic.
- Allow custom cache implementation.
- Change expiresIn to be a
Date
or a function which returns aDate
. This is stored in the cache as aString
to make serialization for custom caches simpler. - Moved
stopCleanupTask
functionality toteardown
.