Skip to content

Version Packages - #37

Merged
leejpsd merged 1 commit into
mainfrom
changeset-release/main
Nov 24, 2026
Merged

leejpsd merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@leejpsd/nextjs-cache-handler@1.1.1

Patch Changes

  • #36 db92190 Thanks @leejpsd! - ISR handler: read all of an entry's tag states with one MGET instead of one GET per tag (Stampede prevention and L1 cache #34). A page with five _N_T_ layout tags now costs two Redis commands per get() instead of six; round trips were already one thanks to auto-pipelining, so this matters for per-command pricing and command-rate limits. On Redis Cluster, where the un-namespaced tag keys never share a slot, the handler keeps reading key by key: from the start when the client is the Cluster adapter (new isCluster flag on RedisClientLike) or hashTag: true is set, otherwise from the first CROSSSLOT reply on, retrying that read in place and logging one warning. The same fallback applies when MGET can never work for another reason: an ACL that allows GET but not MGET, a server that does not know the command, or a custom client without a usable mGet. tag.expiration.read is now also emitted by the ISR handler with meta.strategy ("mget" or "per-key").

  • #35 877ebee Thanks @leejpsd! - Docs: correct the singleFlight description. The lock reports which instance saw a stale entry first (cache.stale.refresh.leader / .follower); it does not stop other instances from refreshing, because Next.js decides to refresh after get() returns. The README, API reference, option JSDoc and agent skill said or implied that followers skip the refresh. No behavior change. Also links Stampede prevention and L1 cache #34 for an in-process L1 and fetch miss coalescing wrapper.

@leejpsd
leejpsd merged commit c231c47 into main Nov 24, 2026
@leejpsd
leejpsd deleted the changeset-release/main branch November 24, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant