Closed balena-renovate[bot] closed 1 month ago
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x
releases. But if you manually upgrade to 5.x
then Renovate will re-enable minor
and patch
updates automatically.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
This PR contains the following updates:
^4.1.0
->^5.0.0
Release Notes
jaredwray/cache-manager (cache-manager)
### [`v5.5.0`](https://togithub.com/jaredwray/cache-manager/releases/tag/v5.5.0) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/v5.4.0...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: ```javascript 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](https://togithub.com/huijiewei) in [https://github.com/node-cache-manager/cache-manager/pull/638](https://togithub.com/node-cache-manager/cache-manager/pull/638) - Ability to catch promise rejections from background refreshes by [@Kauhsa](https://togithub.com/Kauhsa) in [https://github.com/node-cache-manager/cache-manager/pull/637](https://togithub.com/node-cache-manager/cache-manager/pull/637) - updating readme to show configuration options by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/644](https://togithub.com/node-cache-manager/cache-manager/pull/644) - updating readme with correct settings on shouldCloneBeforeSet by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/645](https://togithub.com/node-cache-manager/cache-manager/pull/645) - Fix README: missing closing of code block by [@tdelmas](https://togithub.com/tdelmas) in [https://github.com/node-cache-manager/cache-manager/pull/648](https://togithub.com/node-cache-manager/cache-manager/pull/648) - updating contributing guidelines by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/649](https://togithub.com/node-cache-manager/cache-manager/pull/649) - moving templates and repo paths to cache-manager by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/650](https://togithub.com/node-cache-manager/cache-manager/pull/650) - updating readme to correct paths by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/651](https://togithub.com/node-cache-manager/cache-manager/pull/651) - removing dotenv-cli as it is not used by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/652](https://togithub.com/node-cache-manager/cache-manager/pull/652) - Migrating to xo for linting by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/653](https://togithub.com/node-cache-manager/cache-manager/pull/653) - Add onCacheError option by [@slukes](https://togithub.com/slukes) in [https://github.com/node-cache-manager/cache-manager/pull/646](https://togithub.com/node-cache-manager/cache-manager/pull/646) - updating documentation and version by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/cache-manager/pull/654](https://togithub.com/node-cache-manager/cache-manager/pull/654) #### New Contributors - [@huijiewei](https://togithub.com/huijiewei) made their first contribution in [https://github.com/node-cache-manager/cache-manager/pull/638](https://togithub.com/node-cache-manager/cache-manager/pull/638) - [@Kauhsa](https://togithub.com/Kauhsa) made their first contribution in [https://github.com/node-cache-manager/cache-manager/pull/637](https://togithub.com/node-cache-manager/cache-manager/pull/637) - [@tdelmas](https://togithub.com/tdelmas) made their first contribution in [https://github.com/node-cache-manager/cache-manager/pull/648](https://togithub.com/node-cache-manager/cache-manager/pull/648) - [@slukes](https://togithub.com/slukes) made their first contribution in [https://github.com/node-cache-manager/cache-manager/pull/646](https://togithub.com/node-cache-manager/cache-manager/pull/646) **Full Changelog**: https://github.com/node-cache-manager/cache-manager/compare/v5.4.0...v5.5.0 ### [`v5.4.0`](https://togithub.com/jaredwray/cache-manager/releases/tag/v5.4.0) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/v5.3.2...v5.4.0) ### Refresh cache keys in background Both the caching and multicaching modules support a mechanism to refresh expiring cache keys in background when using the `wrap` function. This is done by adding a `refreshThreshold` attribute while creating the caching store or passing it to the wrap function. If `refreshThreshold` is set and after retrieving a value from cache the TTL will be checked. If the remaining TTL is less than refreshThreshold, the system will update the value asynchronously, following same rules as standard fetching. In the meantime, the system will return the old value until expiration. #### What's Changed - Add refreshThreshold as parameter of wrap function. Fix [#606](https://togithub.com/jaredwray/cache-manager/issues/606) by [@lchenay](https://togithub.com/lchenay) in [https://github.com/node-cache-manager/node-cache-manager/pull/630](https://togithub.com/node-cache-manager/node-cache-manager/pull/630) - upgrading vitest to 1.2.1 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/634](https://togithub.com/node-cache-manager/node-cache-manager/pull/634) - updating eslint and prettier to latest by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/635](https://togithub.com/node-cache-manager/node-cache-manager/pull/635) - fixing multi-cache testing of ttl wrap function by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/636](https://togithub.com/node-cache-manager/node-cache-manager/pull/636) **Full Changelog**: https://github.com/node-cache-manager/node-cache-manager/compare/v5.3.2...v5.4.0 ### [`v5.3.2`](https://togithub.com/jaredwray/cache-manager/releases/tag/v5.3.2) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/v5.3.1...v5.3.2) #### What's Changed - Use a github action workflow to release new versions by [@QuentinLemCode](https://togithub.com/QuentinLemCode) in [https://github.com/node-cache-manager/node-cache-manager/pull/612](https://togithub.com/node-cache-manager/node-cache-manager/pull/612) - adding in prepare for the build by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/618](https://togithub.com/node-cache-manager/node-cache-manager/pull/618) - fix: exclude sourcemap when package publish by [@czy88840616](https://togithub.com/czy88840616) in [https://github.com/node-cache-manager/node-cache-manager/pull/622](https://togithub.com/node-cache-manager/node-cache-manager/pull/622) - updating clean to scripts by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/623](https://togithub.com/node-cache-manager/node-cache-manager/pull/623) - feat: support sync cache creation by [@denkan](https://togithub.com/denkan) in [https://github.com/node-cache-manager/node-cache-manager/pull/598](https://togithub.com/node-cache-manager/node-cache-manager/pull/598) - 619: Ensure that background refresh only calls fn once. by [@ricall](https://togithub.com/ricall) in [https://github.com/node-cache-manager/node-cache-manager/pull/620](https://togithub.com/node-cache-manager/node-cache-manager/pull/620) - updating typescript and removing release workflow by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/624](https://togithub.com/node-cache-manager/node-cache-manager/pull/624) - updating vitest to 1.1.0 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/625](https://togithub.com/node-cache-manager/node-cache-manager/pull/625) - upgrading promise-coalesce to 1.1.2 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/626](https://togithub.com/node-cache-manager/node-cache-manager/pull/626) - upgrading lru-cache to 10.1.0 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/627](https://togithub.com/node-cache-manager/node-cache-manager/pull/627) - upgrading typescript and eslint to latest by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/628](https://togithub.com/node-cache-manager/node-cache-manager/pull/628) #### New Contributors - [@QuentinLemCode](https://togithub.com/QuentinLemCode) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/612](https://togithub.com/node-cache-manager/node-cache-manager/pull/612) - [@czy88840616](https://togithub.com/czy88840616) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/622](https://togithub.com/node-cache-manager/node-cache-manager/pull/622) - [@denkan](https://togithub.com/denkan) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/598](https://togithub.com/node-cache-manager/node-cache-manager/pull/598) - [@ricall](https://togithub.com/ricall) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/620](https://togithub.com/node-cache-manager/node-cache-manager/pull/620) **Full Changelog**: https://github.com/node-cache-manager/node-cache-manager/compare/v5.3.0...v5.3.2 ### [`v5.3.1`](https://togithub.com/jaredwray/cache-manager/releases/tag/v5.3.1) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/v5.3.0...v5.3.1) Major fix as `5.3.0` did not have the dist folder on release. #### What's Changed - updating to always run vitest with coverage by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/605](https://togithub.com/node-cache-manager/node-cache-manager/pull/605) - fix(refreshThreshold): don't run if ttl is -1 by [@mihirgupta0900](https://togithub.com/mihirgupta0900) in [https://github.com/node-cache-manager/node-cache-manager/pull/604](https://togithub.com/node-cache-manager/node-cache-manager/pull/604) - fix(caching): coalesce concurrent requests to `wrap` function by [@douglascayers](https://togithub.com/douglascayers) in [https://github.com/node-cache-manager/node-cache-manager/pull/599](https://togithub.com/node-cache-manager/node-cache-manager/pull/599) - upgrading lru-cache to 10.0.2 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/609](https://togithub.com/node-cache-manager/node-cache-manager/pull/609) - upgrading eslint, prettier, and types to latest by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/610](https://togithub.com/node-cache-manager/node-cache-manager/pull/610) #### New Contributors - [@mihirgupta0900](https://togithub.com/mihirgupta0900) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/604](https://togithub.com/node-cache-manager/node-cache-manager/pull/604) - [@douglascayers](https://togithub.com/douglascayers) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/599](https://togithub.com/node-cache-manager/node-cache-manager/pull/599) **Full Changelog**: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.4...v5.3.1 ### [`v5.3.0`](https://togithub.com/jaredwray/cache-manager/releases/tag/v5.3.0) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/5.2.4...v5.3.0) #### What's Changed - updating to always run vitest with coverage by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/605](https://togithub.com/node-cache-manager/node-cache-manager/pull/605) - fix(refreshThreshold): don't run if ttl is -1 by [@mihirgupta0900](https://togithub.com/mihirgupta0900) in [https://github.com/node-cache-manager/node-cache-manager/pull/604](https://togithub.com/node-cache-manager/node-cache-manager/pull/604) - fix(caching): coalesce concurrent requests to `wrap` function by [@douglascayers](https://togithub.com/douglascayers) in [https://github.com/node-cache-manager/node-cache-manager/pull/599](https://togithub.com/node-cache-manager/node-cache-manager/pull/599) - upgrading lru-cache to 10.0.2 by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/609](https://togithub.com/node-cache-manager/node-cache-manager/pull/609) - upgrading eslint, prettier, and types to latest by [@jaredwray](https://togithub.com/jaredwray) in [https://github.com/node-cache-manager/node-cache-manager/pull/610](https://togithub.com/node-cache-manager/node-cache-manager/pull/610) #### New Contributors - [@mihirgupta0900](https://togithub.com/mihirgupta0900) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/604](https://togithub.com/node-cache-manager/node-cache-manager/pull/604) - [@douglascayers](https://togithub.com/douglascayers) made their first contribution in [https://github.com/node-cache-manager/node-cache-manager/pull/599](https://togithub.com/node-cache-manager/node-cache-manager/pull/599) **Full Changelog**: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.4...v5.3.0 ### [`v5.2.4`](https://togithub.com/jaredwray/cache-manager/releases/tag/5.2.4) [Compare Source](https://togithub.com/jaredwray/cache-manager/compare/5.2.3...5.2.4) ### Updates š» - Added refreshing cache keys in the background. You can learn more here: https://github.com/node-cache-manager/node-cache-manager#refresh-cache-keys-in-background - [https://github.com/node-cache-manager/node-cache-manager/pull/586](https://togithub.com/node-cache-manager/node-cache-manager/pull/586) - Enabling the ttl of a wrap to be a function `asyncConfiguration
š Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
š¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
ā» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
š Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.