Update dependency typescript to v6#556
Open
renovate[bot] wants to merge 8 commits into
Open
Conversation
e65a47d to
c96e587
Compare
1af9d8e to
93b7f54
Compare
44986ac to
2941a03
Compare
2941a03 to
8de4cd6
Compare
a8df48b to
073e148
Compare
7233ede to
189981b
Compare
TypeScript 6 deprecated several options used in the old tsconfigs (target=ES5, moduleResolution=node10, downlevelIteration) and stopped auto-pulling transitive @types/* packages, so ts-node's compile would fail on tests referencing describe/it/node:assert. - Extend @tsconfig/recommended and discard the bespoke compilerOptions. - Pin @types/node to ^22 and add an explicit `types: [node, mocha]` so TS 6 picks them up without the legacy implicit lookup. - Collapse the cjs/esm/legacy build variants (which all wrote to the same dist/ and were sequentially overwriting each other) down to a single `tsc --project tsconfig.build.json`. - Remove the unused tsconfig.esm.json.
Previously the build set rootDir to the project root and included both src and test, so tsc emitted to dist/src/* and dist/test/*. Tighten the build config so the rootDir is src and only src is compiled, and update package.json main/types and the test-cli entrypoint to match the flatter dist layout.
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Neither was wired into CI or the Makefile, and the clean script deleted package-lock.json (twice) which is dangerous if invoked by mistake. The Makefile's own clean target handles node_modules removal safely.
Added in 1b951a6 (Sept 2020) alongside a planned "change the way to import some data" code change that never actually landed here. No imports of core-js exist in src/ or test/, and the ES5 build target it was presumably polyfilling for has been retired with the TS 6 upgrade.
Aligns with the support floor of Node.js 22 (which added the last ES2024 piece, Promise.withResolvers, in 22.0) and the evergreen browsers that have shipped every ES2024 feature for 2+ years.
# Conflicts: # javascript/package-lock.json # javascript/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.9.3→6.0.3Release Notes
microsoft/TypeScript (typescript)
v6.0.3Compare Source
v6.0.2Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.