Skip to content

chore: Bump typescript from 5.9.3 to 7.0.2 - #21

Merged
stormer78 merged 2 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2
Sep 12, 2026
Merged

chore: Bump typescript from 5.9.3 to 7.0.2#21
stormer78 merged 2 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps typescript from 5.9.3 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:

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 5.9.3 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...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 12, 2026
TypeScript 7 no longer infers `rootDir` from the common source directory of
`include`. Without it, `tsc -p tsconfig.types.json` refuses to emit rather
than guessing the declaration layout:

    tsconfig.types.json(7,5): error TS5011: The common source directory of
    'tsconfig.types.json' is './src'. The 'rootDir' setting must be explicitly
    set to this or another path to adjust your output's file layout.

Setting it to the value TS 5 inferred keeps the emitted layout byte-identical
in shape: 26 declarations at the root of `types/`, which is what the `types`
and `exports` entries in package.json already point at.

The declaration *contents* differ from TS 5 in three cosmetic, semantically
equivalent ways: `export function` is emitted as `export declare function`;
optional properties lose a redundant `| undefined`; and const exports become
`declare const X = "literal"; export { X };` rather than
`export const X: "literal";` — the literal type is preserved either way. No
export is added or lost.

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78

Copy link
Copy Markdown
Contributor

Pushed a fix for the red test job. The tests themselves were never failing — the run reported 270 pass / 0 fail — it was the build:types step afterwards:

tsconfig.types.json(7,5): error TS5011: The common source directory of
'tsconfig.types.json' is './src'. The 'rootDir' setting must be explicitly set
to this or another path to adjust your output's file layout.

TypeScript 7 stops inferring rootDir from the common source directory of include, and refuses to emit rather than guessing. Setting "rootDir": "./src" — the value TS 5 was inferring — is the whole fix.

Verified locally (reproduced the failure first, on this branch with TS 7.0.2):

  • npm run build:types now succeeds and emits 26 declarations at the root of types/, the same layout TS 5 produced and the one package.json's types / exports entries already point at.
  • npm test: 262 pass, 0 fail, 7 skipped.

On the declaration output. I diffed all 26 emitted .d.ts files against the ones main produces under TS 5. Every file differs, but only in three cosmetic ways, and no export is added or lost:

TS 5 TS 7 Equivalent?
export function f(…) export declare function f(…) yes
x?: T | undefined x?: T yes (exactOptionalPropertyTypes is off)
export const X: "lit"; declare const X = "lit"; export { X }; yes — literal type preserved

Worth a second opinion on that table before merging, since this is a major bump of the toolchain that generates the package's public type surface. Two constants — FORWARD_MESSAGE_TYPE and LIVE_DELIVERY_CHANGE_TYPE — initially looked dropped; they are not, they moved to the third form above.

Note this branch now carries a non-Dependabot commit, so Dependabot will no longer rebase or update it on its own.

@stormer78
stormer78 merged commit 059cfbc into main Sep 12, 2026
2 checks passed
@stormer78
stormer78 deleted the dependabot/npm_and_yarn/typescript-7.0.2 branch September 12, 2026 15:37
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.

1 participant