diff --git a/.changeset/chilled-camels-admire.md b/.changeset/chilled-camels-admire.md deleted file mode 100644 index e8f52ccb..00000000 --- a/.changeset/chilled-camels-admire.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@neshca/cache-handler': patch ---- - -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 diff --git a/.changeset/sweet-worms-fry.md b/.changeset/sweet-worms-fry.md deleted file mode 100644 index f92c3a26..00000000 --- a/.changeset/sweet-worms-fry.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'cache-handler-docs': patch ---- - -Updated the docs. - -#### What's Changed - -- Added information about the `timeoutMs` option for Redis Handlers. -- Added information about the `name` property for `cache` objects. -- Improved the debugging section. diff --git a/docs/cache-handler-docs/CHANGELOG.md b/docs/cache-handler-docs/CHANGELOG.md index bffa5c1e..03516240 100644 --- a/docs/cache-handler-docs/CHANGELOG.md +++ b/docs/cache-handler-docs/CHANGELOG.md @@ -1,43 +1,55 @@ # cache-handler-docs +## 0.6.2 + +### Patch Changes + +- fb2a5ce: Updated the docs. + + #### What's Changed + + - Added information about the `timeoutMs` option for Redis Handlers. + - Added information about the `name` property for `cache` objects. + - Improved the debugging section. + ## 0.6.1 ### Patch Changes -- d9c5d09: Added the `name` static field to the `IncrementalCache` class and updated the documentation to reflect this in troubleshooting section. +- d9c5d09: Added the `name` static field to the `IncrementalCache` class and updated the documentation to reflect this in troubleshooting section. ## 0.6.0 ### Minor Changes -- 60dab2a: Made the documentation complete. +- 60dab2a: Made the documentation complete. ## 0.5.4 ### Patch Changes -- cdcf136: Fix redis-stack-custom example +- cdcf136: Fix redis-stack-custom example ## 0.5.3 ### Patch Changes -- 571435b: Fix types and improve naming +- 571435b: Fix types and improve naming ## 0.5.2 ### Patch Changes -- a18f2bb: Add async onCreation hook and async Handlers +- a18f2bb: Add async onCreation hook and async Handlers ## 0.5.1 ### Patch Changes -- 9a970af: Add new HTTP Handler and an example to docs +- 9a970af: Add new HTTP Handler and an example to docs ## 0.5.0 ### Minor Changes -- 954a21e: Add docs for new `handlers` API +- 954a21e: Add docs for new `handlers` API diff --git a/docs/cache-handler-docs/package.json b/docs/cache-handler-docs/package.json index b4ed41ae..3ffbf5ee 100644 --- a/docs/cache-handler-docs/package.json +++ b/docs/cache-handler-docs/package.json @@ -1,6 +1,6 @@ { "name": "cache-handler-docs", - "version": "0.6.1", + "version": "0.6.2", "private": true, "scripts": { "build:docs": "next build", diff --git a/packages/cache-handler/CHANGELOG.md b/packages/cache-handler/CHANGELOG.md index b476679b..8a4db36f 100644 --- a/packages/cache-handler/CHANGELOG.md +++ b/packages/cache-handler/CHANGELOG.md @@ -1,164 +1,181 @@ # @neshca/cache-handler +## 0.6.2 + +### 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 + ## 0.6.1 ### Patch Changes -- d9c5d09: Added the `name` static field to the `IncrementalCache` class and updated the documentation to reflect this in troubleshooting section. +- d9c5d09: Added the `name` static field to the `IncrementalCache` class and updated the documentation to reflect this in troubleshooting section. ## 0.6.0 ### Minor Changes -- 60dab2a: This release introduces a colossal refactoring and new features to the `@neshca/cache-handler` package. +- 60dab2a: This release introduces a colossal refactoring and new features to the `@neshca/cache-handler` package. - #### Breaking Changes + #### 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 to `getRevalidatedTags`; - - Changed the return type of `getRevalidatedTags` cache method; - - Made Handlers to be exported as default exports. + - 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 to `getRevalidatedTags`; + - Changed the return type of `getRevalidatedTags` cache method; + - Made Handlers to be exported as default exports. - #### Features + #### Features - - Added `buildId` to `onCreationHook` context argument; - - Introduced `useFileSystem` option; - - Made the LRU cache an independent Handler like Redis or Server; - - Made `getRevalidatedTags` and `revalidateTag` cache methods to be optional. + - Added `buildId` to `onCreationHook` context argument; + - Introduced `useFileSystem` option; + - Made the LRU cache an independent Handler like Redis or Server; + - Made `getRevalidatedTags` and `revalidateTag` cache methods to be optional. - #### Misc + #### Misc - - Added TSDoc comments to the codebase. + - Added TSDoc comments to the codebase. ## 0.5.4 ### Patch Changes -- 915ecef: Fix Pages router for older Next.js versions +- 915ecef: Fix Pages router for older Next.js versions ## 0.5.3 ### Patch Changes -- 571435b: Fix types and improve naming +- 571435b: Fix types and improve naming ## 0.5.2 ### Patch Changes -- a18f2bb: Add async onCreation hook and async Handlers +- a18f2bb: Add async onCreation hook and async Handlers ## 0.5.1 ### Patch Changes -- 9a970af: Add new HTTP Handler and an example to docs +- 9a970af: Add new HTTP Handler and an example to docs ## 0.5.0 ### Minor Changes -- 954a21e: Use `exports` instead of `main` and `module` in `package.json` +- 954a21e: Use `exports` instead of `main` and `module` in `package.json` - New `handlers` API: + New `handlers` API: - - Add `redis-stack` and `redis-strings` handlers; + - Add `redis-stack` and `redis-strings` handlers; ### Patch Changes -- Updated dependencies [954a21e] - - @neshca/json-replacer-reviver@1.1.0 +- Updated dependencies [954a21e] + - @neshca/json-replacer-reviver@1.1.0 ## 0.4.4 ### Patch Changes -- bd1d48a: Add link to the official Next.js template in the README.md +- bd1d48a: Add link to the official Next.js template in the README.md ## 0.4.3 ### Patch Changes -- e6869ea: Fix usage of `cache-handler` in dev environment +- e6869ea: Fix usage of `cache-handler` in dev environment ## 0.4.2 ### Patch Changes -- a89c527: Update Redis cache handler example and docs +- a89c527: Update Redis cache handler example and docs ## 0.4.1 ### Patch Changes -- cc5323d: Add next14.0.1 to dist tags +- cc5323d: Add next14.0.1 to dist tags ## 0.4.0 ### Minor Changes -- b811b66: Upgrade to Next.js v14.0.0 +- b811b66: Upgrade to Next.js v14.0.0 ## 0.3.12 ### Patch Changes -- d83d9fe: Fix TagsManifest type export +- d83d9fe: Fix TagsManifest type export ## 0.3.11 ### Patch Changes -- 334890f: Add next13.5.6 in distTags +- 334890f: Add next13.5.6 in distTags ## 0.3.10 ### Patch Changes -- be8d389: Improve documentation +- be8d389: Improve documentation ## 0.3.9 ### Patch Changes -- a52f32e: Update README and fix paths to docs +- a52f32e: Update README and fix paths to docs ## 0.3.8 ### Patch Changes -- 6a33283: Rewrite README to be more clear +- 6a33283: Rewrite README to be more clear ## 0.3.7 ### Patch Changes -- a6862db: Add test for app restarting functionality +- a6862db: Add test for app restarting functionality ## 0.3.6 ### Patch Changes -- 892c741: Fix publishing +- 892c741: Fix publishing ## 0.3.5 ### Patch Changes -- 8abe6ea: Add supported Next.js versions to distTags +- 8abe6ea: Add supported Next.js versions to distTags ## 0.3.4 ### Patch Changes -- 577ea45: Automatically add dist-tags to npm packages +- 577ea45: Automatically add dist-tags to npm packages ## 0.3.3 ### Patch Changes -- 32bc1d6: Add changeset configuration for versioning +- 32bc1d6: Add changeset configuration for versioning diff --git a/packages/cache-handler/package.json b/packages/cache-handler/package.json index 77d83a92..24dc9880 100644 --- a/packages/cache-handler/package.json +++ b/packages/cache-handler/package.json @@ -1,6 +1,6 @@ { "name": "@neshca/cache-handler", - "version": "0.6.1", + "version": "0.6.2", "description": "Flexible API to replace the default Next.js cache, accommodating custom cache solutions for multi-instance deployments.", "keywords": [ "cache",