logo

Releases

2024-09-15 September 15, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable/compare/2024-09-10...2024-09-15

2024-09-10 September 10, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cacheable/compare/2024-08-12...2024-09-10

2024-08-12 August 12, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cacheable/compare/2024-08-05...2024-08-12

2024-08-05 August 05, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cacheable/compare/2024-07-11...2024-08-05

2024-07-11 July 11, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-07-03...2024-07-11

2024-07-03 July 03, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-06-17...2024-07-03

2024-06-17 June 17, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-06-05...2024-06-17

2024-06-05 June 05, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-05-23...2024-06-05

2024-05-23 May 23, 2024

What's Changed

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-05-22...2024-05-23

2024-05-22 May 22, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-04-29...2024-05-22

2024-04-29 April 29, 2024

What's Changed

New Contributors

Full Changelog: https://github.com/jaredwray/cache-manager/compare/2024-04-05...2024-04-29

2024-04-05 April 05, 2024

Migration to new Mono Repo

We have migrated to the new mono repo and have included all packages from `node-cache-manager`. We will be shutting down the github org and legacy repos in the next 30 days (May 5th). All issues should be here moving forward. In addition to the mono repo there are some changes:

  • `cache-manager-redis-yet` - this has a breaking change of support from nodejs v16 to 18+

What's Changed

Full Changelog: https://github.com/jaredwray/cache-manager/compare/v5.5.0...2024-04-05

v5.5.0 April 04, 2024

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 in https://github.com/node-cache-manager/cache-manager/pull/638
  • Ability to catch promise rejections from background refreshes by @Kauhsa in https://github.com/node-cache-manager/cache-manager/pull/637
  • updating readme to show configuration options by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/644
  • updating readme with correct settings on shouldCloneBeforeSet by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/645
  • Fix README: missing closing of code block by @tdelmas in https://github.com/node-cache-manager/cache-manager/pull/648
  • updating contributing guidelines by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/649
  • moving templates and repo paths to cache-manager by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/650
  • updating readme to correct paths by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/651
  • removing dotenv-cli as it is not used by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/652
  • Migrating to xo for linting by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/653
  • Add onCacheError option by @slukes in https://github.com/node-cache-manager/cache-manager/pull/646
  • updating documentation and version by @jaredwray in https://github.com/node-cache-manager/cache-manager/pull/654

New Contributors

Full Changelog: https://github.com/node-cache-manager/cache-manager/compare/v5.4.0...v5.5.0

v5.4.0 January 19, 2024

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 by @lchenay in https://github.com/node-cache-manager/node-cache-manager/pull/630
  • upgrading vitest to 1.2.1 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/634
  • updating eslint and prettier to latest by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/635
  • fixing multi-cache testing of ttl wrap function by @jaredwray in https://github.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 December 19, 2023

What's Changed

  • Use a github action workflow to release new versions by @QuentinLemCode in https://github.com/node-cache-manager/node-cache-manager/pull/612
  • adding in prepare for the build by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/618
  • fix: exclude sourcemap when package publish by @czy88840616 in https://github.com/node-cache-manager/node-cache-manager/pull/622
  • updating clean to scripts by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/623
  • feat: support sync cache creation by @denkan in https://github.com/node-cache-manager/node-cache-manager/pull/598
  • 619: Ensure that background refresh only calls fn once. by @ricall in https://github.com/node-cache-manager/node-cache-manager/pull/620
  • updating typescript and removing release workflow by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/624
  • updating vitest to 1.1.0 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/625
  • upgrading promise-coalesce to 1.1.2 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/626
  • upgrading lru-cache to 10.1.0 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/627
  • upgrading typescript and eslint to latest by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/628

New Contributors

Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/v5.3.0...v5.3.2

v5.3.1 November 17, 2023

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 in https://github.com/node-cache-manager/node-cache-manager/pull/605
  • fix(refreshThreshold): don't run if ttl is -1 by @mihirgupta0900 in https://github.com/node-cache-manager/node-cache-manager/pull/604
  • fix(caching): coalesce concurrent requests to `wrap` function by @douglascayers in https://github.com/node-cache-manager/node-cache-manager/pull/599
  • upgrading lru-cache to 10.0.2 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/609
  • upgrading eslint, prettier, and types to latest by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/610

New Contributors

  • @mihirgupta0900 made their first contribution in https://github.com/node-cache-manager/node-cache-manager/pull/604
  • @douglascayers made their first contribution in https://github.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 November 16, 2023

What's Changed

  • updating to always run vitest with coverage by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/605
  • fix(refreshThreshold): don't run if ttl is -1 by @mihirgupta0900 in https://github.com/node-cache-manager/node-cache-manager/pull/604
  • fix(caching): coalesce concurrent requests to `wrap` function by @douglascayers in https://github.com/node-cache-manager/node-cache-manager/pull/599
  • upgrading lru-cache to 10.0.2 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/609
  • upgrading eslint, prettier, and types to latest by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/610

New Contributors

  • @mihirgupta0900 made their first contribution in https://github.com/node-cache-manager/node-cache-manager/pull/604
  • @douglascayers made their first contribution in https://github.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

5.2.4 October 06, 2023

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
  • Enabling the ttl of a wrap to be a function `async (key: string, fn: () => Promise, ttl?: WrapTTL)` - https://github.com/node-cache-manager/node-cache-manager/pull/535

What's Changed

  • fix(deps): update dependency lru-cache to v10 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/500
  • chore(deps): update vitest monorepo to v0.32.2 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/490
  • chore(deps): update dependency eslint to v8.43.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/501
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/502
  • chore(deps): update typescript-eslint monorepo to v5.60.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/503
  • chore(deps): update commitlint monorepo to v17.6.6 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/505
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/506
  • chore(deps): update typescript-eslint monorepo to v5.60.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/507
  • chore(deps): update dependency @types/node to v20.3.2 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/508
  • chore(deps): update dependency typescript to v5.1.5 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/509
  • chore(deps): update dependency lint-staged to v13.2.3 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/510
  • chore(deps): update dependency typescript to v5.1.6 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/511
  • chore(deps): update dependency @types/node to v20.3.3 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/513
  • chore(deps): update dependency eslint to v8.44.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/514
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/515
  • chore(deps): update vitest monorepo to v0.32.4 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/516
  • chore(deps): update typescript-eslint monorepo to v5.61.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/517
  • chore(deps): update dependency @release-it/conventional-changelog to v6 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/518
  • chore(deps): update dependency @types/node to v20.4.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/520
  • chore(deps): update dependency release-it to v16 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/521
  • chore(deps): update dependency @vitest/coverage-v8 to v0.33.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/523
  • chore(deps): update dependency vitest to v0.33.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/524
  • chore(deps): update dependency @types/node to v20.4.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/525
  • chore(deps): update dependency release-it to v16.1.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/526
  • chore(deps): update dependency @release-it/conventional-changelog to v7 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/527
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/528
  • chore(deps): update typescript-eslint monorepo to v5.62.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/529
  • chore(deps): update dependency @types/node to v20.4.2 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/534
  • chore(deps): update dependency eslint to v8.45.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/536
  • feat: the ttl of wrap could be function by @peng-huang-ch in https://github.com/node-cache-manager/node-cache-manager/pull/535
  • chore(deps): update typescript-eslint monorepo to v6 (major) by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/530
  • chore(deps): update dependency release-it to v16.1.2 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/537
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/538
  • chore(deps): update typescript-eslint monorepo to v6.1.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/539
  • chore(deps): update commitlint monorepo to v17.6.7 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/540
  • chore(deps): update dependency release-it to v16.1.3 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/541
  • chore(deps): update dependency @types/node to v20.4.3 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/542
  • chore(deps): update dependency @types/node to v20.4.4 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/543
  • chore(deps): lock file maintenance by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/544
  • chore(deps): update typescript-eslint monorepo to v6.2.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/545
  • chore(deps): update pnpm/action-setup action to v2.3.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/546
  • chore(deps): update dependency @types/node to v20.4.5 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/547
  • chore(deps): update pnpm/action-setup action to v2.4.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/548
  • chore(deps): update dependency eslint-config-prettier to v8.9.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/549
  • chore(deps): update dependency eslint to v8.46.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/550
  • chore(deps): update dependency @types/node to v20.4.6 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/554
  • chore(deps): update dependency eslint-config-prettier to v8.10.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/555
  • chore(deps): update dependency @types/node to v20.4.7 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/556
  • chore(deps): update dependency @types/node to v20.4.8 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/557
  • chore(deps): update dependency eslint-config-prettier to v9 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/558
  • chore(deps): update dependency @types/node to v20.4.9 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/559
  • chore(deps): update commitlint monorepo to v17.7.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/560
  • chore(deps): update dependency release-it to v16.1.4 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/561
  • chore(deps): update dependency @commitlint/cli to v17.7.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/562
  • chore(deps): update dependency eslint to v8.47.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/563
  • chore(deps): update dependency @types/node to v20.4.10 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/564
  • chore(deps): update dependency release-it to v16.1.5 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/565
  • chore(deps): update dependency lint-staged to v13.3.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/566
  • chore(deps): update dependency @types/node to v20.5.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/567
  • chore(deps): update dependency lint-staged to v14 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/568
  • chore(deps): update dependency dotenv-cli to v7.3.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/569
  • chore(deps): update dependency @types/node to v20.5.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/570
  • chore(deps): update dependency lint-staged to v14.0.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/571
  • chore(deps): update dependency @types/node to v20.5.2 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/572
  • chore(deps): update dependency @types/node to v20.5.3 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/574
  • chore(deps): update dependency @types/node to v20.5.4 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/575
  • chore(deps): update dependency @types/node to v20.5.5 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/578
  • chore(deps): update dependency @types/node to v20.5.6 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/579
  • chore(deps): update dependency eslint to v8.48.0 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/580
  • chore(deps): update dependency @types/node to v20.5.7 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/581
  • chore(deps): update dependency @types/node to v20.5.8 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/582
  • chore(deps): update dependency @types/node to v20.5.9 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/583
  • chore(deps): update dependency @release-it/conventional-changelog to v7.0.1 by @renovate in https://github.com/node-cache-manager/node-cache-manager/pull/584
  • Cleaning up project to make more like cacheable project by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/587
  • feat: optional refresh strategy (stale-while-revalidate) #533 by @jonathanarezki in https://github.com/node-cache-manager/node-cache-manager/pull/586
  • upgrading vitest to 0.34.4 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/589
  • upgrading typescript and eslint to latest by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/590
  • upgrading @vitest/coverage-v8 to 0.34.4 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/591
  • removing renovate and stale actions by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/592
  • file clean up on release, commit, husky, and changelog by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/593
  • Fix README.md by @TitusKirch in https://github.com/node-cache-manager/node-cache-manager/pull/594
  • upgrading vitest to 0.34.6 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/600
  • upgrading lru-cache to 10.0.1 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/601
  • upgrading eslint to 8.50.0 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/602
  • upgrading @faker-js/faker to 8.1.0 by @jaredwray in https://github.com/node-cache-manager/node-cache-manager/pull/603

New Contributors

Full Changelog: https://github.com/node-cache-manager/node-cache-manager/compare/5.2.3...5.2.4

Release 5.2.3 June 14, 2023

5.2.3 (2023-06-14)

Bug Fixes

Release 5.2.2 May 29, 2023

5.2.2 (2023-05-29)

Bug Fixes

Release 5.2.1 April 23, 2023

5.2.1 (2023-04-23)

Bug Fixes

  • deps: update dependency lru-cache to ~9.1.0 (d9ec046)
  • deps: update dependency lru-cache to v9 (fde0015)
  • update lru-cache (87efeff)
Release 5.2.0 March 21, 2023

5.2.0 (2023-03-21)

Bug Fixes

  • multi-caching: minor issues (bf68d36)

Features

  • add mget(), mset(), mdel() to multiCache (#367) (4cc3972)
Release 5.1.7 February 23, 2023

5.1.7 (2023-02-23)

Bug Fixes

  • lru-cache breaking changes (8398494)
Release 5.1.6 February 06, 2023

5.1.6 (2023-02-06)

Bug Fixes

Release 5.1.5 February 03, 2023

5.1.5 (2023-02-03)

Bug Fixes

  • rename type alias Ttl as Milliseconds (daa5fa8)
Release 5.1.4 December 04, 2022

5.1.4 (2022-12-04)

Bug Fixes

  • memory: passing 0 to ttl argument does not work (#282) (d6c2ed5)
Release 5.1.3 November 02, 2022

5.1.3 (2022-11-02)

Bug Fixes

  • example multichaching in README (e01f780)
  • parallelize set higher priority at wrap (7f76e54)
Release 5.1.2 November 02, 2022

5.1.2 (2022-11-02)

Bug Fixes

  • links to ioredis in Readme (1ba46d8)
  • re populate higher priority caches when a key is found in lower ones (7a6a10c)
Release 5.1.1 October 19, 2022

5.1.1 (2022-10-19)

Bug Fixes

  • bad Cache definition (3746c39)
  • mget/mset examples in README (1ca67a4)
Release 5.1.0 October 19, 2022

5.1.0 (2022-10-19)

Features

  • add ttl argument in wrap method (b06c1e5)