- 6bae69a: Updated the documentation and peer dependencies to explicitly state that only Next.js versions
13.5.xand14.x.xare supported. Modified the defaultestimateExpireAgefunction to perform the calculation as(staleAge) => staleAge * 1.5.
- 3a91160: Refactor monorepo setup and release workflow. No functional changes.
- b91f759: Add the new
neshClassicCachefunction to the@neshca/cache-handler/functionsmodule allowing to cache the result of expensive operations in thegetServerSidePropsand a Next.js Pages API routes.
- 3cd218c: Fix
neshCacheJSDocs time interval description. It was incorrectly stated in milliseconds. Now it is stated in seconds.
- 972ed99: Add
.npmignorefile to exclude unnecessary files from the package.
- be27549: Add error handling for
keyExpirationStrategyandprerenderManifestparsing.
- 432a918: Fix an error when working with the
fetch-cachein theregisterInitialCache.
- 978c3e2: Add
registerInitialCacheinstrumentation hook for pre-populating the cache with the initial data on application start.
- 435a4fe: Fix delete functionality for all built-in Handlers and enhance debug logging.
-
7b2abf9: Refactor search index creation in the
redis-stackHandler- Move search index creation to revalidateTag method:
- Ensure index existence before searching by creating it inside revalidateTag with a randomized name to avoid collisions
- Allow synchronous Handler creation without waiting for the client to connect
- Move search index creation to revalidateTag method:
- 41cf0c8: Rewrite README
-
6558891: Add
experimental-redis-clusterHandler.- Add
experimental-redis-clusterHandler and related documentation.
- Improve documentation and JSDoc comments.
- Add
-
092d6f4: Add the ability to disable Redis operations timeout in the
redis-stringandredis-stackHandlers.- Added a condition to check if the
timeoutMsis zero to disable Redis operations timeout.
- Added a condition to check if the
timeoutMsis zero to disable Redis operations timeout.
Thanks to @ElyDotDev for the contribution.
- Added a condition to check if the
-
1685585: Update the
revalidateTagmethod to useft.searchNoContentfunction in theredis-stackHandler.- Updated the
revalidateTagmethod to useft.searchNoContentfunction.
Thanks to @galtonova for the contribution.
- Updated the
-
cc3bfec: Add the new option
revalidateTagQuerySizeto theredis-stackand theredis-stringsHandlers- Added
revalidateTagQuerySizeoption. It allows specifying the number of tags in a single query retrieved from Redis when scanning or searching for tags. - Increased the default query size for
hScanfrom 25 to 100.
- Added
revalidateTagQuerySizeoption. It allows specifying the number of tags in a single query retrieved from Redis when scanning or searching for tags. - Increased the default query size for
ft.searchfrom 25 to 100.
- Added
- e5774f5: Added support for batched revalidateTag calls.
-
3200068: Updated types, JSDoc and the documentation.
- added the documentation for the pre-built
redis-stack,redis-stringsandlocal-lruHandlers
- marked
LruCacheHandlerOptionstype as deprecated - added
LruCacheOptionsexport.
- marked
timeoutMsoption as optional
- marked
timeoutMsoption as optional
- added the documentation for the pre-built
-
0d4766b: Added
keyExpirationStrategyoption for theredis-stringsHandler.- Added
keyExpirationStrategyoption. It allows you to choose the expiration strategy for cache keys.
- Added
- 7adc1af: Fix bin paths in package.json files.
-
76bcdcd: Add experimental
neshCachefunction and related documentation.- add new endpoint
@neshca/cache-handler/functionswith useful application-side functions - add experimental function
neshCacheand related documentation
- add new endpoint
-
588153b: Add
revalidatePathfunctionality.- add
implicitTagsparameter to thegetmethod for Handlers - remove implicit tags filtration for the
PAGEkind cache values
- implement
revalidatePathfunctionality
- implement
revalidatePathfunctionality
- implement
revalidatePathfunctionality - refactor
revalidateTagmethod to useHSCANinstead ofHGETALL
- add
isImplicitTagandgetTimeoutRedisCommandOptionsfunctions
- add
- 45c8e8b: Fixed unlink calls for Redis Handlers and updated dependencies.
-
e92658a: Fix the redis-stack Handler
revalidateTagmethod.- Add pagination to tags search
- Replace
deloperation withunlink
- c8cc0af: Add tests for
unstable_cache
- 00b6aaf: Add information about Next.js Routers support in readmes and documentation.
- 3dd5b93: Fix body mutation of the ROUTE kind values.
- 30a20d9: Fix Redis client type in Redis Handlers
- ea5e158: Change hash set to Redis querying for the
redis-stackHandler'srevalidateTagmethod
- 6aeca1f: Fix Redis Handlers
revalidateTagmethod
-
dbf9286: Release 1.0.0
- rename
IncrementalCacheclass toCacheHandler - rename
Cachetype toHandler - add
deletemethod toHandler - remove
useFileSystemoption - add global
ttloption - remove support for on-demand revalidation by path for App Router pages
- remove file system handling except for pages with
fallback: falseingetStaticPaths - refactor e2e tests for App Router pages
- add new tests for Pages router pages
- encapsulate
Buffertobase64conversion to theROUTEkind values - make filesystem-related methods static
- refactor constructor to prevent multiple
CacheHandler.#configureCacheHandlercalls - update and improve docs
- remove
revalidatedTagsKeyoption - add
sharedTagsKeyoption - remove
useTtloption - remove
@neshca/json-replacer-reviverfrom deps
- rename
- bb61a52: Applied new code style.
- Updated dependencies [bb61a52]
- @neshca/json-replacer-reviver@1.1.1
- 8570f6e: Refactor debug flag initialization in cache-handler.ts
- f3b30a5: Refactor
redis-stackHandler to usePromise.allSettledforsetcallback.
- ddf957f: Added support for ES Modules.
- 3f02029: Added the
resetRequestCachemethod to match with originalCacheHandlerclass.
-
c62c986: Refactored Redis Handlers timeout handling
- Refactored Redis Handlers to use
AbortSignalinstead of promisifyingsetTimeout. - Set default Redis Handlers
timeoutMsoption to 5000 ms.
- Refactored Redis Handlers to use
- 9dcb393: Refactored
lru-cacheHandler to overcome ttl via setTimeout limitations. AddedtimeoutMsoption toserverHandler.
- 277865a: Added support for stale-while-revalidate strategy in
useTtloption.
-
fb2a5ce: Refactored the functionality of cache layers
- removed
unstable__logErrorsoption - introduced
nameproperty for Handlers for easier debugging - introduced explicit cache debug logs using
process.env.NEXT_PRIVATE_DEBUG_CACHE - added a new
timeoutMsoption to the Redis Handlers
- Made pre-configured Redis Handler not cause page loading to hang
- removed
- d9c5d09: Added the
namestatic field to theIncrementalCacheclass and updated the documentation to reflect this in troubleshooting section.
-
60dab2a: This release introduces a colossal refactoring and new features to the
@neshca/cache-handlerpackage.- Changed the Handlers API;
onCreationnow can accept multiple Handlers for cache layering;- Dropped
diskAccessModeoption; - Dropped
defaultLruCacheOptionsoption; - Dropped the default LRU cache;
- Renamed
getTagsManifestcache method togetRevalidatedTags; - Changed the return type of
getRevalidatedTagscache method; - Made Handlers to be exported as default exports.
- Added
buildIdtoonCreationHookcontext argument; - Introduced
useFileSystemoption; - Made the LRU cache an independent Handler like Redis or Server;
- Made
getRevalidatedTagsandrevalidateTagcache methods to be optional.
- Added TSDoc comments to the codebase.
- 915ecef: Fix Pages router for older Next.js versions
- 571435b: Fix types and improve naming
- a18f2bb: Add async onCreation hook and async Handlers
- 9a970af: Add new HTTP Handler and an example to docs
-
954a21e: Use
exportsinstead ofmainandmoduleinpackage.jsonNew
handlersAPI:- Add
redis-stackandredis-stringshandlers;
- Add
- Updated dependencies [954a21e]
- @neshca/json-replacer-reviver@1.1.0
- bd1d48a: Add link to the official Next.js template in the README.md
- e6869ea: Fix usage of
cache-handlerin dev environment
- a89c527: Update Redis cache handler example and docs
- cc5323d: Add next14.0.1 to dist tags
- b811b66: Upgrade to Next.js v14.0.0
- d83d9fe: Fix TagsManifest type export
- 334890f: Add next13.5.6 in distTags
- be8d389: Improve documentation
- a52f32e: Update README and fix paths to docs
- 6a33283: Rewrite README to be more clear
- a6862db: Add test for app restarting functionality
- 892c741: Fix publishing
- 8abe6ea: Add supported Next.js versions to distTags
- 577ea45: Automatically add dist-tags to npm packages
- 32bc1d6: Add changeset configuration for versioning