Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>()`/`get<T>()` 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<T>()` 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)).
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading