chore: Bump typescript from 5.9.3 to 7.0.2 - #21
Conversation
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>
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>
|
Pushed a fix for the red TypeScript 7 stops inferring Verified locally (reproduced the failure first, on this branch with TS 7.0.2):
On the declaration output. I diffed all 26 emitted
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 — Note this branch now carries a non-Dependabot commit, so Dependabot will no longer rebase or update it on its own. |
Bumps typescript from 5.9.3 to 7.0.2.
Release notes
Sourced from typescript's releases.
Commits
1e4744dMerge branch 'main' into ts7-releasea5a219cmicrosoft/typescript-go#4558ecfe30dUpdate status localization5de25b5Hide executable name in TypeScript statusd7ce74aShow bundled TypeScript version for packaged servers29be66aCorrect TS 7 release version to 7.0.2ed2bd1bMerge branch 'main' into ts7-release8873075Bump the github-actions group across 1 directory with 3 updates (microsoft/ty...9427131Set up stable / nightly extension split, other prep (microsoft/typescript-go#...d4eaca5microsoft/typescript-go#4549Maintainer changes
This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)