v5.5.0
Added Event Errors
Cache Manager now does not throw errors by default. Instead, all errors are evented through the error event. Here is an example on how to use it:
const memoryCache = await caching('memory', {
max: 100,
ttl: 10 * 1000 /*milliseconds*/,
});
memoryCache.on('error', (error) => {
console.error('Cache error:', error);
});
What's Changed
- Adding SQLite storage(use better-sqlite3) by @huijiewei in #638
- Ability to catch promise rejections from background refreshes by @Kauhsa in #637
- updating readme to show configuration options by @jaredwray in #644
- updating readme with correct settings on shouldCloneBeforeSet by @jaredwray in #645
- Fix README: missing closing of code block by @tdelmas in #648
- updating contributing guidelines by @jaredwray in #649
- moving templates and repo paths to cache-manager by @jaredwray in #650
- updating readme to correct paths by @jaredwray in #651
- removing dotenv-cli as it is not used by @jaredwray in #652
- Migrating to xo for linting by @jaredwray in #653
- Add onCacheError option by @slukes in #646
- updating documentation and version by @jaredwray in #654
New Contributors
- @huijiewei made their first contribution in #638
- @Kauhsa made their first contribution in #637
- @tdelmas made their first contribution in #648
- @slukes made their first contribution in #646
Full Changelog: v5.4.0...v5.5.0