Skip to content

Releases: caching-tools/next-shared-cache

@neshca/[email protected]

11 Jan 12:18
caadc43
Compare
Choose a tag to compare

Patch Changes

  • 9dcb393: Refactored lru-cache Handler to overcome ttl via setTimeout limitations. Added timeoutMs option to server Handler.

@neshca/[email protected]

10 Jan 18:10
58b4d58
Compare
Choose a tag to compare

Patch Changes

  • 277865a: Added support for stale-while-revalidate strategy in useTtl option.

@neshca/[email protected]

21 Dec 12:10
1936143
Compare
Choose a tag to compare

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

@neshca/[email protected]

12 Dec 11:17
6e145d8
Compare
Choose a tag to compare

Patch Changes

  • d9c5d09: Added the name static field to the IncrementalCache class and updated the documentation to reflect this in troubleshooting section.

@neshca/[email protected]

10 Dec 13:54
9c3e030
Compare
Choose a tag to compare

Minor Changes

  • 60dab2a: Updated the package to ensure compatibility with the new API for @neshca/cache-handler.

    Breaking Changes

    • Renamed getTagsManifest route to getRevalidatedTags;
      Changed the return type of getRevalidatedTags route.

@neshca/[email protected]

10 Dec 13:54
9c3e030
Compare
Choose a tag to compare

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 to getRevalidatedTags;
    • Changed the return type of getRevalidatedTags cache method;
    • Made Handlers to be exported as default exports.

    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.

    Misc

    • Added TSDoc comments to the codebase.

@neshca/[email protected]

28 Nov 15:44
b929011
Compare
Choose a tag to compare

Patch Changes

  • 915ecef: Fix Pages router for older Next.js versions

@neshca/[email protected]

24 Nov 01:25
ceea518
Compare
Choose a tag to compare

Patch Changes

  • 571435b: Fix types and improve naming

@neshca/[email protected]

23 Nov 12:15
ad809e8
Compare
Choose a tag to compare

Patch Changes

  • a18f2bb: Add async onCreation hook and async Handlers

@neshca/[email protected]

20 Nov 16:27
c01b64e
Compare
Choose a tag to compare

Patch Changes

  • 274e2e4: Fix remote property injection vulnerability