Version Packages - #9
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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@0.4.0
Minor Changes
#7
bf047c9Thanks @leejpsd! - Build-output cache seeding:seedBuildOutput()(new/seedentry point) andnpx nextjs-cache-handler seedwalk.next/after a build and insertprerendered App Router routes (including PPR segment data), Pages Router
routes, and fetch-cache entries into Redis in the handler's own record
format — with NX semantics so entries already written by live instances are
never overwritten. A fresh deployment's first requests are cache HITs
instead of a regeneration stampede (verified on a real Next 16 app: cold
server + seeded Redis → first request
x-nextjs-cache: HIT). TheRedisClientLike.setcontract gains an optionalNXflag.#7
1e57e03Thanks @leejpsd! - Newnextjs-cache-handlerCLI (zero-dependency):initdetects the Next.jsversion and Redis client, generates the handler wrapper shims, shows the
next.config keys to add (never edits it), appends env templates, and injects
the agent rules block into CLAUDE.md/AGENTS.md idempotently (
--yestoapply,
--skillsto install the agent skill locally).doctorverifiesRedis connectivity, inspects cache key namespaces, and runs a write/read
round-trip — the first command an agent should reach for when debugging.
#7
6cd5901Thanks @leejpsd! - Opt-in push-based tag propagation (tagPubSub: true, plural handler):updateTags()publishes invalidations on a namespaced channel and everyinstance maintains a subscription on a dedicated duplicate connection,
updating its local tag mirror in ~3 ms (measured cross-instance over real
Redis with both redis@5 and ioredis) instead of waiting for the next
refreshTags()scan (~seconds). The scan keeps running as the consistencysafety net, so a dropped subscription degrades to the previous behavior —
never to staleness. Cluster clients fall back to polling with a one-time
warning.
RedisClientLikegains optionalpublish/subscribe.