Releases: spautz/limited-cache
v2.2.0
v2.1.1
v2.1.0
v2.0.0
- Add
getCacheMetaFromObject
for accessing the cacheMeta of aLimitedCacheObject
: see docs - Internal package updates
- Confirm support for Node 17
BREAKING CHANGES
- Drop support for Node 10
Full Changelog: https://github.com/spautz/limited-cache/blob/main/CHANGELOG.md#200-2021-10-23
v1.1.1
v1.1.0
v1.0.1
v1.0.0
1.0.0 (2020-08-10)
Version 1.0 redesigns the internal cacheMeta structure. This should scale better, and make it possible to build future
features and additional options.
There is now a new build system. As part of this, the React hooks and the react
entry point have been removed.
The code for useLimitedCache
and useLimitedCacheObject
is here
if you want to reimplement them yourself. For most cases, a useMemo(() => LimitedCache(), []))
should be enough.
Other than the React hooks, there are no breaking changes to the public API or options. If you've used any undocumented
internal features, however, then they may not work the same in v1.0.
A limited-cache instance from v0.x isn't compatible with v1.x, so if you persist cacheMeta in storage then it will be
reset to an empty state on next load.