Repository navigation
chore: bump @types/node to 25.9.3 (cli + sdk) - #1349
Conversation
🛫 PR Readiness Check
PR Scope: 📦🔧 Mixed (product + infrastructure)
|
| Status | Check | Details |
|---|---|---|
| ✅ | Single commit | 1 commit — clean history |
| ✅ | Not in draft | Ready for review |
| ✅ | Branch up to date | Up to date with dev |
| ❌ | Copilot review | No Copilot review yet — it may still be processing |
| ✅ | Changeset present | Changeset file found |
| ✅ | Scope clean | No .squad/ or docs/proposals/ files |
| ✅ | No merge conflicts | No merge conflicts |
| ❌ | Copilot threads resolved | 1 unresolved Copilot thread(s) — fix and resolve before merging |
| ❌ | CI passing | 6 check(s) still running |
Files Changed (5 files, +18 −10)
| File | +/− |
|---|---|
.changeset/types-node-25.md |
+6 −0 |
package-lock.json |
+10 −7 |
packages/squad-cli/package.json |
+1 −1 |
packages/squad-cli/src/cli-entry.ts |
+0 −1 |
packages/squad-sdk/package.json |
+1 −1 |
Total: +18 −10
This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.
🔒 Security Review🔒 Security review: 2 info.
Automated security review — informational only. |
🟡 Impact Analysis — PR #1349Risk tier: 🟡 MEDIUM 📊 Summary
🎯 Risk Factors
📦 Modules Affectedroot (2 files)
squad-cli (2 files)
squad-sdk (1 file)
|
There was a problem hiding this comment.
⚠️ Not ready to approve
It introduces committed -build.N prerelease versions and a packages/squad-cli/src/ change without the required changeset/CHANGELOG update, both of which are enforced by CI policy gates.
Pull request overview
This PR consolidates the @types/node upgrade for the SDK and CLI and updates the lockfile accordingly, including removing a now-invalid TypeScript suppression in the CLI entrypoint.
Changes:
- Bump
@types/nodeto^25.9.3inpackages/squad-cliandpackages/squad-sdk. - Remove the
@ts-expect-errordirective around theprocess.emitoverride inpackages/squad-cli/src/cli-entry.ts. - Regenerate
package-lock.jsonto reflect the updated dependency graph.
File summaries
| File | Description |
|---|---|
| packages/squad-sdk/package.json | Updates SDK dev dependency on @types/node (also changes version field). |
| packages/squad-cli/src/cli-entry.ts | Removes TS suppression around process.emit override. |
| packages/squad-cli/package.json | Updates CLI dev dependency on @types/node (also changes version field). |
| package-lock.json | Updates resolved @types/node/undici-types and workspace metadata. |
Copilot's findings
- Files reviewed: 3/4 changed files
- Comments generated: 4
Note
Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
| { | ||
| "name": "@bradygaster/squad-cli", | ||
| "version": "0.10.0", | ||
| "version": "0.10.0-build.1", |
| { | ||
| "name": "@bradygaster/squad-sdk", | ||
| "version": "0.10.0", | ||
| "version": "0.10.0-build.1", |
| const _origEmit = process.emit; | ||
| // @ts-expect-error — narrowing emit signature for warning suppression | ||
| process.emit = function (evt: string, ...args: unknown[]) { | ||
| if (evt === 'warning' && (args[0] as { name?: string })?.name === 'ExperimentalWarning') { |
| // this runtime hook catches warnings emitted during dynamic imports below. | ||
| const _origEmit = process.emit; | ||
| // @ts-expect-error — narrowing emit signature for warning suppression | ||
| process.emit = function (evt: string, ...args: unknown[]) { |
7297723 to
4f91707
Compare
Replaces github#1321 and github#1326. Removes unused @ts-expect-error directive in cli-entry.ts that is no longer needed under @types/node 25 typings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4f91707 to
9a40e06
Compare
Summary
Combines Dependabot PRs #1321 and #1326 into a single, tested bump.
@types/nodefrom^22.0.0to^25.9.3in bothpackages/squad-cliandpackages/squad-sdk@ts-expect-errordirective atpackages/squad-cli/src/cli-entry.ts:17—@types/node 25ships proper typings for theprocess.emitoverride pattern, so the suppression directive became invalid (TS2578)package-lock.jsonto resolve the lockfile drift that caused deps: bump @types/node from 22.19.21 to 25.9.3 in /packages/squad-sdk #1326 CI to failMotivation
@types/node 22 → 25is a dev-dependency-only change (runtime stays on Node 22 LTS, unchanged). The bump gives TypeScript accurate type information for Node 25 APIs without affecting any runtime behaviour.Closes
Closes #1321
Closes #1326
Validation
npm run build— ✅ bothsquad-sdkandsquad-clicompile cleanlynpm run lint(tsc --noEmit) — ✅ no type errorsnpx vitest run test/sdk-failure-scenarios.test.ts— ✅ 21/21 passnpx vitest run test/cli/— ✅ 503/505 pass (2 known Windows-only flakes:state-mcp.test.ts,team-root-resolution.test.ts)