Repository navigation
fix(packages): raise the published Node engines floor to 20 - #7108
Conversation
Seven published packages declared `engines.node: ">=18"`, but CI has never run Node 18 and Node 18 reached end of life on 2025-04-30. The claim pointed at a runtime nothing tests and that receives no security patches. Raise those seven to `">=20"`, the lowest version the unit matrix (20.x, 22.x, 24.x) actually proves, and raise the root manifest to match. Also give `@copilotkit/runtime` its first `engines` field. It declared none, while #7089 moved it to pino 10, which drops Node 18. Pino ships no `engines` of its own, so a consumer on Node 18 installed cleanly and failed later, at runtime. Closes #7107 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change raises the minimum Node.js version from 18 to 20 in the root and package manifests. The public API manifest now reflects these requirements and records runtime compatibility provenance for ChangesNode.js 20 engine alignment
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to This metadata-only change aligns published package requirements with the Node versions used by CI and release workflows. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
|
Size Change: 0 B Total Size: 1.68 MB ℹ️ View Unchanged
|
`scripts/release/public-api/manifest.v1.json` records each published package's `engines`, so raising the floor left it stale and `public-api-manifest.test.ts` failed on all six unit shards. Regenerated with `pnpm generate:public-api-manifest`: seven `>=18` entries become `>=20`, and `@copilotkit/runtime` gains an `engines` block with its package-json provenance entry. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
## What does this PR do? Three documentation pages told readers Node 18 was enough. Node 18 reached end of life on 2025-04-30, and #7108 raised every published package to `engines.node: ">=20"`, so the guidance was wrong on both counts. | File | Was | Now | | --- | --- | --- | | `docs/cookbook/oracle-agent-spec-memory.mdx:52` | `Node.js 18+` | `Node.js 20+` | | `snippets/langgraph-platform-deployment-tabs.mdx:27` | `# For TypeScript with Node 18 or above` | `# ... Node 20 or above` | | `docs/deploy/aws-lambda.mdx:29` | "a Node.js managed runtime (Node.js 18 or later)" | states the floor `@copilotkit/runtime` needs, and keeps the AWS fact | The AWS Lambda page is the one judgment call. Response streaming genuinely works on Node 18 as far as AWS is concerned, so the page was not wrong about AWS — but it was steering CopilotKit users at a floor the runtime no longer supports, while its own examples already deploy `nodejs22.x`. The new wording keeps both facts: > ...and a Node.js managed runtime of version 20 or later. AWS supports response streaming from Node.js 18, but `@copilotkit/runtime` requires Node.js 20. ## Testing This is a prose-only change to existing MDX. No components, props, or code samples were touched, so there is nothing to execute. The claim that needs evidence is the **completeness of the sweep**, which I checked two ways against `origin/main` at `9bf9d4cd3f`. **1. Version-claim regex across all of `shell-docs/src/content`:** ``` $ grep -rn -iE "node(\.js)?[[:space:]]*(v)?1[0-9]" showcase/shell-docs/src/content/ showcase/shell-docs/src/content/docs/deploy/aws-lambda.mdx:29: ...AWS supports response streaming from Node.js 18, but `@copilotkit/runtime` requires Node.js 20. ``` One hit, and it is the deliberate AWS clause above. **2. A different technique, in case the regex shape was the blind spot** — every line containing `node`, filtered to those carrying a major between 14 and 19, with identifier noise (`node_modules`, `NodeNext`, `chat_node`, `ReactNode`, …) removed: ``` $ grep -rn -i "node" showcase/shell-docs/src/content/ | grep -E "1[4-9]" | grep -viE "node_modules|\.node|nodeType|NodeJS\.|nodes|NodeNext" ``` Same single hit. Every other Node version claim in the docs already reads 20+, 20.6+, or 22+. **3. Format check scope.** The `format` job's file list covers `*.md` but not `*.mdx`, so a docs-only change hands it an empty list and the step exits 0 with "No formattable files changed in this PR". Nothing to pre-format here. ## Related Follows #7108 (the `engines` floor) and #7089 (pino 10), and closes the documentation item noted in #7107. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated the Oracle Agent Memory cookbook prerequisites to require Node.js 20 or later. - Clarified AWS Lambda streaming requirements: the runtime requires Node.js 20+, while AWS response streaming is supported from Node.js 18. - Updated LangGraph deployment guidance to recommend Node.js 20 or later for local TypeScript deployments. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Three pages told readers Node 18 was enough. Node 18 reached end of life on 2025-04-30, and CopilotKit#7108 raised every published package to `engines.node: ">=20"`, so the guidance was wrong on both counts. The AWS Lambda page keeps the AWS fact that response streaming works from Node 18, but now states the floor `@copilotkit/runtime` actually needs. Its own examples already deploy `nodejs22.x`. Every other Node claim across shell-docs already said 20 or later. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
What does this PR do?
Seven published packages declared
engines.node: ">=18". CI has never run Node 18, and Node 18 reached end of life on 2025-04-30, about sixteen months ago. The claim pointed at a runtime nothing tests and that receives no security patches.This raises those seven to
">=20", the lowest version the unit matrix ([20.x, 22.x, 24.x]) actually proves, and raises the root manifest to match.It also gives
@copilotkit/runtimeits firstenginesfield. The package declared none, while #7089 moved it frompino: ^9.2.0to^10.1.1, and pino 10 drops Node 18. Pino ships noenginesof its own, so today a consumer on Node 18 installs cleanly and fails later, at runtime.enginesis advisory here. The root.npmrcsets noengine-strict, so npm warns and pnpm does not block. A consumer who opts in toengine-strictgets a hard failure, which is the intended signal.Scope
Deliberately not in this PR:
enginesat all. Adding a floor to all of them is a policy decision about whether this repository wants engine gates as a rule, not a fix to a false claim. Noted in Published packages claim Node 18 support that CI never tests, and Node 18 is end-of-life #7107.One thing for the reviewer to decide
The subject is
fix(packages):, so this lands as a patch. Tighteningenginesnarrows the supported range, which under a strict reading is breaking — though only for consumers on an end-of-life runtime who have opted in toengine-strict. Say the word and I will re-word the subject.Testing
Run in a worktree at
ed4f44f94f, on Node 22.23.2 with pnpm 10.33.4.1.
publint,attw, andcheck-dtsacross every package — the checks most sensitive to a manifest edit, and what thepackage-qualityjob runs:2. Tests and type-checks for every changed package:
3. Frozen install, all 75 workspace projects:
4. The format check, reproduced exactly as CI runs it. Worth showing, because
oxfmtignorespackage.jsonby filename heuristic, so a package.json-only PR hands it a list it discards entirely. The workflow's--no-error-on-unmatched-patterncovers that case:5. No
">=18"remains in any manifest:Closes #7107
🤖 Generated with Claude Code
Summary by CodeRabbit