Skip to content

chore(deps-dev): bump typescript from 4.9.5 to 7.0.2 - #1688

Open
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2
Open

chore(deps-dev): bump typescript from 4.9.5 to 7.0.2#1688
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 4, 2026

Copy link
Copy Markdown
Contributor

Bumps typescript from 4.9.5 to 7.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 7.0.2

https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/

This tag was originally released at: https://github.com/microsoft/typescript-go/releases/tag/typescript%2Fv7.0.2

TypeScript 6.0.3

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0.1 RC

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

TypeScript 5.9.3

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

... (truncated)

Commits
  • 1e4744d Merge branch 'main' into ts7-release
  • a5a219cmicrosoft/typescript-go#4558
  • ecfe30d Update status localization
  • 5de25b5 Hide executable name in TypeScript status
  • d7ce74a Show bundled TypeScript version for packaged servers
  • 29be66a Correct TS 7 release version to 7.0.2
  • ed2bd1b Merge branch 'main' into ts7-release
  • 8873075 Bump the github-actions group across 1 directory with 3 updates (microsoft/ty...
  • 9427131 Set up stable / nightly extension split, other prep (microsoft/typescript-go#...
  • d4eaca5microsoft/typescript-go#4549
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [typescript](https://github.com/microsoft/TypeScript) from 4.9.5 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.9.5...v7.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 7.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 4, 2026
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 4, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Use the native TypeScript 7 compiler for type-checking while retaining the official TypeScript 6 compatibility API for TSLint and ts-loader.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@chagong Changyong Gong (chagong) 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.

The TypeScript 7 compatibility migration is focused, preserves the legacy compiler API for TSLint and ts-loader, and passes all required checks.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The TypeScript upgrade introduces a dual-compiler setup (TypeScript 7 for tsc vs TypeScript 6 for ts-loader/require("typescript")) and needs a deliberate compatibility decision before it can be safely approved.

Pull request overview

Updates the repository’s TypeScript toolchain to accommodate a major TypeScript upgrade, including build-script changes and a raised Node.js prerequisite.

Changes:

  • Adds a TypeScript 7.x install via an npm alias and adjusts compile to invoke that compiler.
  • Tweaks test harness imports to CommonJS-style import = require(...).
  • Updates TS compiler options and bumps the documented minimum Node.js version.
File summaries
File Description
tsconfig.json Adds explicit strictness-related compiler option overrides.
test/suite/index.ts Switches glob/mocha imports to import = require(...).
package.json Updates TypeScript-related devDependencies and changes the compile script to use the aliased compiler.
package-lock.json Adds the new aliased TypeScript package and its platform-specific optional dependencies.
CONTRIBUTING.md Updates the documented minimum Node.js version.
Review details
  • Files reviewed: 3/5 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json Outdated
Comment thread package.json
Comment thread test/suite/index.ts Outdated
Declare the test runner glob dependency directly and document the intentional TypeScript 6 compatibility API used by legacy build tools.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The documented Node.js minimum is inconsistent with engine requirements in the lockfile, and the TS/glob dependency strategy introduces mismatches (including a deprecated glob version) that should be resolved/clarified before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

package.json:1398

  • The PR title/description says TypeScript is bumped to 7.0.2, but the typescript devDependency is set to npm:@typescript/typescript6@^6.0.2 (with TypeScript 7 added separately as @typescript/native). This is likely to confuse maintainers and tooling (require('typescript') will resolve to TS6). Consider aligning the PR metadata with the dual-compiler approach, or switching typescript itself to 7.x and introducing the compatibility compiler under a different alias.
    "typescript": "npm:@typescript/typescript6@^6.0.2",
  • Files reviewed: 3/5 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread CONTRIBUTING.md
Comment thread package.json Outdated
Comment thread package.json Outdated
Align the development runtime with CI, use the public TypeScript compiler bin, and migrate test discovery to the supported glob API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The compile script currently runs the TypeScript 7 native tsc via node, which should fail at runtime and break npm test/CI.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

package.json:1397

  • PR title/description says TypeScript is bumped to 7.0.2, but the typescript devDependency is set to npm:@typescript/typescript6@^6.0.2 (and 7.0.2 is pulled in under the alias @typescript/native). That mismatch is likely to confuse tooling and maintainers (e.g. anything checking the typescript version from package.json) and makes the PR metadata misleading.
    "typescript": "npm:@typescript/typescript6@^6.0.2",
  • Files reviewed: 3/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread package.json

@chagong Changyong Gong (chagong) 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.

The final TypeScript 7 compatibility migration is focused, all review findings are addressed or disproven by current-head evidence, and all required checks pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants