Skip to content

chore: bump @types/node to 25.9.3 (cli + sdk) - #1349

Merged
tamirdresher merged 1 commit into
github:devfrom
tamirdresher:tamirdresher/types-node-25
Jun 16, 2026
Merged

tamirdresher merged 1 commit into
github:devfrom
tamirdresher:tamirdresher/types-node-25

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

Summary

Combines Dependabot PRs #1321 and #1326 into a single, tested bump.

  • Bumps @types/node from ^22.0.0 to ^25.9.3 in both packages/squad-cli and packages/squad-sdk
  • Removes the now-unnecessary @ts-expect-error directive at packages/squad-cli/src/cli-entry.ts:17 — @types/node 25 ships proper typings for the process.emit override pattern, so the suppression directive became invalid (TS2578)
  • Regenerates package-lock.json to 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 fail

Motivation

@types/node 22 → 25 is 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 — ✅ both squad-sdk and squad-cli compile cleanly
  • npm run lint (tsc --noEmit) — ✅ no type errors
  • npx vitest run test/sdk-failure-scenarios.test.ts — ✅ 21/21 pass
  • npx vitest run test/cli/ — ✅ 503/505 pass (2 known Windows-only flakes: state-mcp.test.ts, team-root-resolution.test.ts)

Copilot AI review requested due to automatic review settings June 16, 2026 06:44
@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit 9a40e06

PR Scope: 📦🔧 Mixed (product + infrastructure)

⚠️ 3 item(s) to address before review

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.

@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

🔒 Security Review

🔒 Security review: 2 info.

Severity Category Finding Location
ℹ️ info new-dependency 1 new/changed dependency version(s) in packages/squad-cli/package.json. Verify these packages are trusted and necessary. packages/squad-cli/package.json:197
ℹ️ info new-dependency 1 new/changed dependency version(s) in packages/squad-sdk/package.json. Verify these packages are trusted and necessary. packages/squad-sdk/package.json:257

Automated security review — informational only.

@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #1349

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 5
Files added 1
Files modified 4
Files deleted 0
Modules touched 3
Critical files 2

🎯 Risk Factors

  • 5 files changed (≤5 → LOW)
  • 3 modules touched (2-4 → MEDIUM)
  • Critical files touched: packages/squad-cli/package.json, packages/squad-sdk/package.json

📦 Modules Affected

root (2 files)
  • .changeset/types-node-25.md
  • package-lock.json
squad-cli (2 files)
  • packages/squad-cli/package.json
  • packages/squad-cli/src/cli-entry.ts
squad-sdk (1 file)
  • packages/squad-sdk/package.json

⚠️ Critical Files

  • packages/squad-cli/package.json
  • packages/squad-sdk/package.json

This report is generated automatically for every PR. See #733 for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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/node to ^25.9.3 in packages/squad-cli and packages/squad-sdk.
  • Remove the @ts-expect-error directive around the process.emit override in packages/squad-cli/src/cli-entry.ts.
  • Regenerate package-lock.json to 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.

Comment thread packages/squad-cli/package.json Outdated
{
"name": "@bradygaster/squad-cli",
"version": "0.10.0",
"version": "0.10.0-build.1",
Comment thread packages/squad-sdk/package.json Outdated
{
"name": "@bradygaster/squad-sdk",
"version": "0.10.0",
"version": "0.10.0-build.1",
Comment on lines 16 to 18
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[]) {
@tamirdresher
tamirdresher force-pushed the tamirdresher/types-node-25 branch from 7297723 to 4f91707 Compare June 16, 2026 07:11
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants