Releases: caching-tools/next-shared-cache
Releases · caching-tools/next-shared-cache
@neshca/[email protected]
Patch Changes
- 9dcb393: Refactored
lru-cache
Handler to overcome ttl via setTimeout limitations. AddedtimeoutMs
option toserver
Handler.
@neshca/[email protected]
Patch Changes
- 277865a: Added support for stale-while-revalidate strategy in
useTtl
option.
@neshca/[email protected]
Patch Changes
-
fb2a5ce: Refactored the functionality of cache layers
Features
- removed
unstable__logErrors
option - introduced
name
property for Handlers for easier debugging - introduced explicit cache debug logs using
process.env.NEXT_PRIVATE_DEBUG_CACHE
- added a new
timeoutMs
option to the Redis Handlers
Fixes
- Made pre-configured Redis Handler not cause page loading to hang
- removed
@neshca/[email protected]
Patch Changes
- d9c5d09: Added the
name
static field to theIncrementalCache
class and updated the documentation to reflect this in troubleshooting section.
@neshca/[email protected]
Minor Changes
-
60dab2a: Updated the package to ensure compatibility with the new API for
@neshca/cache-handler
.Breaking Changes
- Renamed
getTagsManifest
route togetRevalidatedTags
;
Changed the return type ofgetRevalidatedTags
route.
- Renamed
@neshca/[email protected]
Minor Changes
-
60dab2a: This release introduces a colossal refactoring and new features to the
@neshca/cache-handler
package.Breaking Changes
- Changed the Handlers API;
onCreation
now can accept multiple Handlers for cache layering;- Dropped
diskAccessMode
option; - Dropped
defaultLruCacheOptions
option; - Dropped the default LRU cache;
- Renamed
getTagsManifest
cache method togetRevalidatedTags
; - Changed the return type of
getRevalidatedTags
cache method; - Made Handlers to be exported as default exports.
Features
- Added
buildId
toonCreationHook
context argument; - Introduced
useFileSystem
option; - Made the LRU cache an independent Handler like Redis or Server;
- Made
getRevalidatedTags
andrevalidateTag
cache methods to be optional.
Misc
- Added TSDoc comments to the codebase.
@neshca/[email protected]
Patch Changes
- 915ecef: Fix Pages router for older Next.js versions
@neshca/[email protected]
Patch Changes
- 571435b: Fix types and improve naming
@neshca/[email protected]
Patch Changes
- a18f2bb: Add async onCreation hook and async Handlers
@neshca/[email protected]
Patch Changes
- 274e2e4: Fix remote property injection vulnerability