diff --git a/CHANGELOG.md b/CHANGELOG.md index 43ba257..ec3cbbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ Add an entry under **Unreleased** in the same pull request as the change. When a ## [Unreleased] +## [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)). @@ -90,7 +98,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 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 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",