From 81ca39e88976410c7169559743ac1e199a09c21b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 16:43:20 +0530 Subject: [PATCH 1/4] chore: bump version to 1.7.0 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FBZc7g1SP8LzhAAQFDBrrn --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 94ce31c..08f63a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "run-cache", - "version": "1.6.0", + "version": "1.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "run-cache", - "version": "1.6.0", + "version": "1.7.0", "license": "MIT", "devDependencies": { "@types/jest": "^29.5.1", diff --git a/package.json b/package.json index 16c9f8a..15b333f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "run-cache", - "version": "1.6.1", + "version": "1.7.0", "description": "A dependency-free, lightweight runtime caching library with TTL support and automatic value regeneration", "main": "dist/index.js", "module": "dist/index.mjs", From 2cabd72e5fec437b19aaed33eccd7dcb4ea286a2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 16:43:42 +0530 Subject: [PATCH 2/4] docs: move unreleased changes under 1.7.0 in the changelog Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FBZc7g1SP8LzhAAQFDBrrn --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43ba257..037ecc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Add an entry under **Unreleased** in the same pull request as the change. When a ## [Unreleased] +## [1.7.0] - 2026-11-24 + ### Added - Values of any JSON-serializable type can be cached; strings are stored as-is and other values are serialized on `set()` and parsed again by `get()`. `RunCache.createTypedCache()` returns a typed wrapper ([#39](https://github.com/helloscoopa/run-cache/pull/39), [#67](https://github.com/helloscoopa/run-cache/pull/67)). - `RunCacheError`, `SourceFnError` and `MiddlewareError` are exported; they keep the original error as `cause`, and `refetch_failure` events carry it as `error` ([#80](https://github.com/helloscoopa/run-cache/pull/80)). @@ -90,7 +92,8 @@ Add an entry under **Unreleased** in the same pull request as the change. When a - Initial release. -[Unreleased]: https://github.com/helloscoopa/run-cache/compare/v1.6.1...HEAD +[Unreleased]: https://github.com/helloscoopa/run-cache/compare/v1.7.0...HEAD +[1.7.0]: https://github.com/helloscoopa/run-cache/compare/v1.6.1...v1.7.0 [1.6.1]: https://github.com/helloscoopa/run-cache/compare/v1.6.0...v1.6.1 [1.6.0]: https://github.com/helloscoopa/run-cache/compare/v1.5.0...v1.6.0 [1.5.0]: https://github.com/helloscoopa/run-cache/compare/v1.4.1...v1.5.0 From 15331aeb86484fcfd2c3b78573cbea486ab5651a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 16:43:58 +0530 Subject: [PATCH 3/4] docs: add upgrade notes for 1.7.0 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FBZc7g1SP8LzhAAQFDBrrn --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 037ecc4..ec3cbbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ Add an entry under **Unreleased** in the same pull request as the change. When a ## [1.7.0] - 2026-11-24 +### Upgrading from 1.6 +No API was removed and existing code compiles unchanged (`set()`/`get()` default to `string`). Three behavior changes may affect you: +- **Process signals are opt-in.** 1.6 registered `SIGINT`/`SIGTERM` handlers on import. If you relied on RunCache shutting down and saving to storage on exit, call `configure({ handleProcessSignals: true })`. +- **Dependents are invalidated automatically** when the entry they depend on changes, so entries with `dependencies` may disappear sooner than before. Circular dependencies are now rejected. +- **Loading from storage merges** into the cache instead of replacing it, and no longer restores the saved configuration or source function code. Pass your configuration to `configure()` and set source functions again after loading. + ### Added - Values of any JSON-serializable type can be cached; strings are stored as-is and other values are serialized on `set()` and parsed again by `get()`. `RunCache.createTypedCache()` returns a typed wrapper ([#39](https://github.com/helloscoopa/run-cache/pull/39), [#67](https://github.com/helloscoopa/run-cache/pull/67)). - `RunCacheError`, `SourceFnError` and `MiddlewareError` are exported; they keep the original error as `cause`, and `refetch_failure` events carry it as `error` ([#80](https://github.com/helloscoopa/run-cache/pull/80)). From 247d4b68577937860dc8eb741535b32e8161596a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 16:43:58 +0530 Subject: [PATCH 4/4] docs: set current version to 1.7.0 in CLAUDE.md Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FBZc7g1SP8LzhAAQFDBrrn --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 28c7dbc..2d83ef4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -241,7 +241,7 @@ The logger (`src/logging/logger.ts`) supports multiple levels: - **GitHub**: https://github.com/helloscoopa/run-cache - **NPM**: https://www.npmjs.com/package/run-cache - **License**: MIT -- **Current Version**: 1.6.1 +- **Current Version**: 1.7.0 ## Best Practices 1. Use appropriate TTL values to balance performance and freshness