Skip to content

[js-sdk-release-tools] bump @typespec/compiler to ^1.0.0#14637

Merged
mikeharder merged 1 commit intoAzure:mainfrom
mikeharder:js-sdk-release-tools-tsp
Mar 23, 2026
Merged

[js-sdk-release-tools] bump @typespec/compiler to ^1.0.0#14637
mikeharder merged 1 commit intoAzure:mainfrom
mikeharder:js-sdk-release-tools-tsp

Conversation

@mikeharder
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 21, 2026 06:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the tools/js-sdk-release-tools toolchain to use TypeSpec compiler v1, bringing dependencies in line with the TypeSpec 1.x ecosystem.

Changes:

  • Bump @typespec/compiler devDependency from ^0.67.1 to ^1.0.0.
  • Update @typespec/compiler peerDependency from <1.0.0 to ^1.0.0.
  • Regenerate package-lock.json to reflect the new resolved dependency graph (including new Node engine requirements).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
tools/js-sdk-release-tools/package.json Updates TypeSpec compiler dependency + peer dependency to v1.
tools/js-sdk-release-tools/package-lock.json Lockfile refresh for TypeSpec compiler v1 and its updated transitive dependencies.
Files not reviewed (1)
  • tools/js-sdk-release-tools/package-lock.json: Language not supported

Comment on lines 60 to 63
"@types/string-template": "^1.0.6",
"@types/unixify": "^1.0.2",
"@typespec/compiler": "^0.67.1",
"@typespec/compiler": "^1.0.0",
"rimraf": "^6.0.1",
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

Bumping @typespec/compiler to ^1.x pulls in transitive deps that require Node 20+ (e.g., lockfile now has @typespec/compiler engines.node >=20.0.0 and yargs engines.node ^20.19.0 || ^22.12.0 || >=23). package.json doesn’t declare an engines constraint, so consumers/CI can still run this package on Node 18 and hit install/runtime failures. Add an appropriate engines.node (likely >=20.19.0) and align any build pipelines to that minimum, or keep @typespec/compiler pinned to a version that supports Node 18 if Node 18 must remain supported.

Copilot uses AI. Check for mistakes.
Comment on lines 86 to 88
"peerDependencies": {
"@typespec/compiler": ">=0.58.0 <1.0.0"
"@typespec/compiler": "^1.0.0"
}
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

Changing the peerDependencies range from <1.0.0 to ^1.0.0 is a breaking compatibility change for any consumers still on TypeSpec 0.x. If this package is published/consumed externally, consider either (a) bumping this package’s major version, or (b) widening the peer range to cover both supported major lines (only if the code is actually compatible with both).

Copilot uses AI. Check for mistakes.
Comment on lines 2213 to 2217
"tsp-server": "cmd/tsp-server.js"
},
"engines": {
"node": ">=20.0.0"
}
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

The updated lockfile shows new Node engine requirements introduced by the TypeSpec compiler bump: @typespec/compiler now requires Node >=20.0.0 and yargs@18 requires Node ^20.19.0 || ^22.12.0 || >=23. If this tool (and its CI) still targets Node 18, npm install/runtime may fail. Either raise the supported Node version (and declare it in package.json), or revert/pin dependencies to a Node-18-compatible set.

Copilot uses AI. Check for mistakes.
@skywing918
Copy link
Copy Markdown
Contributor

@skywing918 skywing918 enabled auto-merge (squash) March 23, 2026 07:20
@mikeharder mikeharder disabled auto-merge March 23, 2026 20:51
@mikeharder mikeharder merged commit a9b350d into Azure:main Mar 23, 2026
16 checks passed
@mikeharder mikeharder deleted the js-sdk-release-tools-tsp branch March 23, 2026 20:51
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.

4 participants