-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency typescript to v6 #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
smartway-bot
wants to merge
1
commit into
main
Choose a base branch
from
renovate/typescript-6.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pipeline failure: Regenerate package-lock.json.
The CI pipeline failed because
package-lock.jsonis out of sync with the updated TypeScript version inpackage.json. After verifying compatibility (see other comments), runnpm installto regenerate the lockfile.🤖 Prompt for AI Agents
🧩 Analysis chain
🏁 Script executed:
Repository: ZeroGachis/smartway-react-native-ui
Length of output: 526
Resolve TypeScript 6.0 incompatibility with ts-jest.
ts-jest@29.1.0does not support TypeScript 6.0—its peer dependency constraint is>=4.3 <6. Either upgrade to a newer version of ts-jest that supports TypeScript 6.0, or use a TypeScript version below 6.0. The other tools (ts-node@10.9.2,eslint-config-standard-with-typescript@19.0.1, and@typescript-eslint/eslint-plugin@7.9.0) are compatible with TypeScript 6.0.🤖 Prompt for AI Agents
🧩 Analysis chain
🌐 Web query:
TypeScript 6.0.0 release notes breaking changes💡 Result:
TypeScript 6.0.0 introduces several breaking changes and deprecations as a transition release preparing for TypeScript 7.0 (native Go-based compiler). It maintains API compatibility with 5.9 but changes defaults and deprecates legacy options. Key breaking changes and default shifts: - rootDir defaults to . (tsconfig directory) instead of inferred from sources. Set explicitly if sources are in subdirs like src/. - types defaults to [] (no auto-inclusion of
@typespackages). Explicitly list needed types (e.g., ["node"]) for build performance gains (20-50%). - Deprecated target: es5 (lowest now es2015/es2025 recommended). - Deprecated --downlevelIteration. - Deprecated --moduleResolution node/node10 (migrate to nodenext or bundler) and classic (removed). - Deprecated --baseUrl (use paths mappings without it). - Deprecated --esModuleInterop false / --allowSyntheticDefaultImports false. - Deprecated --alwaysStrict false (strict mode closer to default). - Deprecated outFile. - Deprecated legacy module syntax for namespaces, import asserts {}, no-default-lib directives. - Specifying CLI files with existing tsconfig.json now errors. - Behavioral: strict/use strict closer to always on; moduleResolution bundler with commonjs; type ordering may differ (use --stableTypeOrdering flag). Deprecations can be ignored in 6.0 via "ignoreDeprecations": "6.0" in tsconfig.json but will be removed in 7.0. Address warnings before upgrading further. Official docs recommend explicit tsconfig settings reflecting modern practices (target es2025, bundler resolution, explicit types). For full details, see official handbook: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-6-0.htmlCitations:
Update tsconfig.json for TypeScript 6.0.0 breaking changes.
TypeScript 6.0.0 introduces significant defaults changes and deprecations:
rootDirnow defaults to.(tsconfig directory) instead of being inferred; set explicitly if sources are in subdirectories likesrc/typesnow defaults to[](no auto-inclusion of@typespackages); explicitly list required types like["node"]target: es5(use es2015 or later),--moduleResolution node/classic(migrate tobundlerornodenext),--baseUrl,--esModuleInterop false,--allowSyntheticDefaultImports falseUpdate tsconfig.json with explicit settings for
rootDir,types,target, andmoduleResolutionto align with modern practices. Deprecation warnings can be suppressed temporarily with"ignoreDeprecations": "6.0"but will be removed in TypeScript 7.0.🤖 Prompt for AI Agents