Releases: helloscoopa/run-cache
RunCache v1.4.1
Release Note
Version 1.4.1
Release Date: 30th Sep. 2024
Summary
-
Bug Fixes
- Replace
setTimeout
withsetInterval
. - Updated test cases to reflect changes in the cache autoRefetch process, ensuring accurate function call expectations.
- Replace
-
Documentation
- Improved clarity in event handling documentation related to cache refetching and failures.
Pull Requests
- fix: Update
setTimeout
tosetInterval
(#18)
RunCache v1.4.0
Release Note
Version 1.4.0
Release Date: 19th Sep. 2024
Summary
-
New Features
- Introduced an event-driven architecture for cache management in the
RunCache
library, allowing for more flexible handling of cache expiration and refetching events. - Added new static methods for registering (
onExpiry
,onKeyExpiry
,onRefetch
,onKeyRefetch
) and clearing event listeners related to cache events. - Implemented
clearEventListeners
method for better control over event management. - Added
autoRefetch
option in cache settings for automatic updates.
- Introduced an event-driven architecture for cache management in the
-
Bug Fixes
- Corrected minor textual issues in the documentation for improved clarity.
-
Documentation
- Update
README.md
to include new event listeners for cache expiry and refetching, along with examples for better usability.
- Update
-
Tests
- Enhanced testing for cache expiration and refetching functionalities, improving test performance and reliability.
Pull Requests
- feat: Upgrade event callbacks into
EventEmitter
(#16)
RunCache v1.3.2
Release Note
Version 1.3.2
Release Date: 15th Sep. 2024
Summary
This release focuses on enhancing cache functionality by adding events/triggers. Also reduce possible concurrency issues from refetch.
New Features
Improvements
RunCache v1.2.2
Release Note
Version 1.2.2
Release Date: 13th Sep. 2024
Summary
This release focuses on enhancing the development experience by including TypeScript declaration files and source maps in the build output. These improvements will help consumers of the library by providing better TypeScript support and improved debugging capabilities.
Improvements
- fix: Update configuration to build
.d.ts
files (#5)
RunCache v1.2.0
Release Note
Version 1.2.0
Release Date: 13th Sep. 2024
Summary
This release focuses on enhancing cache functionality and simplifying code structure by merging related functions.
New Features
- feat: Implement auto refetch
value
on cache expiry (#4)
Improvements
- refactor: Merge
set
andsetWithSourceFn
functions (#2)
RunCache v1.0.5
Release Note
Version 1.0.5
Release Date: 9th Sep. 2024
Summary
This is the initial version of RunCache
. Including basic features of an in-memory cache, error handling, TypeScript configuration, and testing functionalities.
Please read README.md for usage.