Repository navigation
fix: hold undici below 8.12 to keep Node 22.12 working - #75
Merged
Merged
Conversation
undici 8.12.0+ binds zlib.createZstdDecompress at import time. That function only exists from Node 22.15, so on the declared 22.12 floor the CLI crashes on start-up. The published ^8.10.2 range already lets fresh installs resolve the broken versions, and Dependabot's undici 8.13.1 PR (#74) fails the Node 22.12 CI job for the same reason. Cap the range at <8.12.0 and tell Dependabot to skip those versions until the engines floor is raised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pungoyal
marked this pull request as ready for review
November 30, 2026 13:58
10 tasks done
pungoyal
added a commit
that referenced
this pull request
Nov 30, 2026
undici 8.11.x, which #75 pinned to keep Node 22.12 working, is affected by several published advisories (GHSA-xjj6-f33q-929c, GHSA-55wc-3pg8-jfw6, GHSA-4w7w-5xrc-9h26 and others). Every patched release is 8.12.2 or later, and those call zlib.createZstdDecompress at import, which is missing before Node 22.15. undici declares Node 22.19 as its minimum. Raise engines, the doctor check, the CI matrix and the docs to 22.19, upgrade undici to ^8.14.0, and drop the Dependabot ignore added in #75. BREAKING CHANGE: Node 22.12 to 22.18 are no longer supported. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
What and why
undici 8.12.0 and later run
zlib.createZstdDecompress.bind(...)when the module loads (lib/interceptor/decompress.js).createZstdDecompressonly exists from Node 22.15, so on our declared 22.12 floor the CLI crashes on start-up withTypeError: Cannot read properties of undefined (reading 'bind').This affects users now, not just CI. The published
^8.10.2range lets a freshnpm i -g @pungoyal/kite-cliresolve undici 8.14.0, and that crashes on Node 22.12–22.14. Dependabot's undici 8.13.1 PR (#74) failsTest (Node 22.12)for the same reason.package.json: undici^8.10.2→>=8.10.2 <8.12.0. The lockfile stays on 8.11.2..github/dependabot.yml: skip undici>=8.12.0, with a comment saying to lift this together with the engines floor.CHANGELOG.md: added an Unreleased → Fixed entry.Alternative (your call): raise
engines.nodeto>=22.15(or>=22.19, which is what undici itself declares, even for 8.11.x) and take #74. That drops Node 22.12–22.14, so it is a breaking change for a 0.x minor release. This PR keeps the documented floor until you decide.Checks
npm run lintandnpm run typecheckpassnpm testpasses (475 passed, 1 skipped)npm run buildandnpm run lint:publishpassnpm run docs:commands:check: not applicable, no command changesCHANGELOG.mdhas an entry under## [Unreleased]Non-negotiables
🤖 Generated with Claude Code