feat: require Node.js 22 or newer - #94
Merged
Merged
Conversation
lan17
marked this pull request as ready for review
July 26, 2026 00:15
This was referenced Jul 26, 2026
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.
Summary
>=22.0.0in the published package contract22.0.0Why
Node.js 20 reached end of life on March 24, 2026, but DialCache still advertised and tested it. A floating Node 20 package check also did not prove the bottom of the declared range. This makes the maintained runtime contract explicit without tying consumer support to the development toolchain's higher minor-version requirements.
Closes #34
Compatibility
This is a pre-v1 runtime-support change. Consumers running Node.js 20 must upgrade to a supported Node.js 22 or newer runtime before adopting the next DialCache minor release.
There are no changes to DialCache runtime APIs, cache keys, Redis protocol, stored values, or invalidation behavior. Mixed DialCache package versions remain data/protocol compatible; the only migration boundary is the application process runtime.
Release note
DialCache now requires Node.js 22.0.0 or newer. Production deployments should use a currently supported LTS release.
Validation
v24.18.0:corepack pnpm check— 278 unit tests, coverage, typecheck, ESM/CJS builds, declarations, and packed consumers passedv24.18.0:corepack pnpm test:integration— all 73 Redis 6.2, Valkey 8, and Redis Cluster cases passedv24.18.0:corepack pnpm audit --prod— no known vulnerabilitiesv22.0.0:corepack pnpm test:package— packed ESM/CommonJS runtime and declaration consumers passedgit diff --check