Skip to content

Update dependency typescript to v7#2263

Closed
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/typescript-7.x
Closed

Update dependency typescript to v7#2263
red-hat-konflux[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/typescript-7.x

Conversation

@red-hat-konflux

@red-hat-konflux red-hat-konflux Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
typescript (source) ^5.9.3^7.0.0 age confidence

Release Notes

microsoft/TypeScript (typescript)

v7.0.2

Compare Source

v6.0.3: TypeScript 6.0.3

Compare Source

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

Downloads are available on:

v6.0.2: TypeScript 6.0

Compare Source

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

Downloads are available on:


Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • Every minute (* * * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
@red-hat-konflux

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @typescript-eslint/eslint-plugin@8.63.0
npm error Found: typescript@7.0.2
npm error node_modules/typescript
npm error   typescript@"^7.0.0" from the root project
npm error   peer typescript@">=5.9.3" from @openshift-console/dynamic-plugin-sdk-webpack@4.22.0
npm error   node_modules/@openshift-console/dynamic-plugin-sdk-webpack
npm error     @openshift-console/dynamic-plugin-sdk-webpack@"4.22.0" from the root project
npm error   4 more (cosmiconfig, ts-api-utils, ts-loader, ts-node)
npm error
npm error Could not resolve dependency:
npm error peer typescript@">=4.8.4 <6.1.0" from @typescript-eslint/eslint-plugin@8.63.0
npm error node_modules/@typescript-eslint/eslint-plugin
npm error   dev @typescript-eslint/eslint-plugin@"8.63.0" from the root project
npm error
npm error Conflicting peer dependency: typescript@6.0.3
npm error node_modules/typescript
npm error   peer typescript@">=4.8.4 <6.1.0" from @typescript-eslint/eslint-plugin@8.63.0
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"8.63.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2026-07-22T21_30_54_606Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2026-07-22T21_30_54_606Z-debug-0.log

@openshift-ci
openshift-ci Bot requested review from joshuawilson and syedriko July 22, 2026 21:31
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updates the typescript dependency in package.json from ^5.9.3 to ^7.0.0.

Changes

TypeScript dependency

Layer / File(s) Summary
Update TypeScript dependency
package.json
The manifest changes the TypeScript version range from ^5.9.3 to ^7.0.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested labels: lgtm, approved

Suggested reviewers: kyoto, sriroopar

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: upgrading TypeScript to v7.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/main/typescript-7.x

Comment @coderabbitai help to get the list of available commands.

@openshift-ci

openshift-ci Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign syedriko for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 50: Revert the TypeScript dependency version in package.json from ^7.0.0
to the currently supported version, keeping the upgrade deferred until
ts-loader, ts-node, `@typescript-eslint`, and the tsconfig.json compiler options
support TypeScript 7.
- Line 50: Update tsconfig.json for TypeScript 7 by removing baseUrl and
changing moduleResolution from "node" to "bundler" for the webpack build. Before
removing baseUrl, inspect imports for aliases that rely on it and rewrite those
imports explicitly while preserving their resolved modules.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4269f572-cb97-4c44-98f4-fd706e4e27c9

📥 Commits

Reviewing files that changed from the base of the PR and between 0b6d67e and 2e71042.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json
"ts-loader": "^9.6.0",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"typescript": "^7.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== package.json ==\n'
cat -n package.json | sed -n '1,140p'

printf '\n== tsconfig.json ==\n'
if [ -f tsconfig.json ]; then
  cat -n tsconfig.json | sed -n '1,220p'
else
  echo "tsconfig.json not found"
fi

printf '\n== relevant dependency occurrences ==\n'
rg -n '"(typescript|ts-loader|ts-node|`@typescript-eslint/`|eslint|webpack)"' package.json **/package.json 2>/dev/null || true

Repository: openshift/lightspeed-console

Length of output: 5190


🌐 Web query:

TypeScript 7 compiler API removal compatibility ts-loader ts-node @typescript-eslint deprecated baseUrl moduleResolution node

💡 Result:

TypeScript 7.0 (released July 2026) introduced major architectural changes, primarily due to the transition to a native Go-based compiler [1][2]. The most critical change is the absence of the programmatic TypeScript Compiler API in the 7.0 release [2][3][4]. Compatibility and Migration Details: 1. Compiler API Removal: TypeScript 7.0 does not expose the stable programmatic Compiler API (ts.createProgram, ts.createSourceFile, etc.) that many tools rely on [5][4]. Tools that import the TypeScript compiler as a library—such as ts-loader, ts-node, ts-morph, and type-aware @typescript-eslint rules—will break if they attempt to use the 7.0 native binary directly [2][3][5]. 2. Compatibility Strategy: Microsoft supports side-by-side usage to maintain compatibility [1][4]. You can keep TypeScript 6.x installed as a compatibility alias (often via npm: typescript@npm:@typescript/typescript6``) for tools that require the Compiler API, while using the native TypeScript 7 binary for type-checking and builds [1][4]. 3. Impact on Ecosystem Tools: - ts-node: Does not work with TypeScript 7.0 because it relies on the JavaScript-based compiler API [6][7]. Users are encouraged to switch to alternatives like tsx (which uses esbuild) for execution, while keeping a 7.0+ process for type-checking [6][7]. - ts-loader: The full type-checking mode relies on the Compiler API and is affected [2][5]. The `transpileOnly: true` mode remains functional as it bypasses the compiler API [5]. - `@typescript-eslint`: Type-aware linting (which requires `parserOptions.project`) depends on the Compiler API [3][7]. It must be configured to use a 6.x environment until the new API is released in TypeScript 7.1 [1][4]. 4. Configuration Changes: - baseUrl and moduleResolution: Use of `baseUrl` and older `moduleResolution` settings like `node` (alias for `node10`) have been removed or deprecated [4][8][9]. You should update your `tsconfig.json` to use modern resolutions such as `nodenext`, `node16`, or `bundler` [4][8][10]. - baseUrl Removal: `baseUrl` is no longer supported [9]. Migration requires updating `paths` to use project-root-relative paths (e.g., changing `@app/: ["app/"]` to `@app/: ["./src/app/"]`) [9]. The official release of a new Compiler API for the Go-based compiler is planned for TypeScript 7.1, expected within 3 to 4 months of the 7.0 release [4]. Until then, maintaining a dual-version setup is the recommended migration path [1][4].

Citations:


Hold the TypeScript 7 bump until dependent tools are updated. ts-loader, ts-node, and @typescript-eslint still rely on the compiler API, and this repo’s tsconfig.json uses baseUrl and moduleResolution: "node", which TS7 no longer supports. Upgrading only package.json will break build and lint paths.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 50, Revert the TypeScript dependency version in
package.json from ^7.0.0 to the currently supported version, keeping the upgrade
deferred until ts-loader, ts-node, `@typescript-eslint`, and the tsconfig.json
compiler options support TypeScript 7.

Source: MCP tools


🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== files ==\n'
git ls-files | rg '(^|/)(package\.json|tsconfig.*|webpack.*|vite.*|rollup.*|babel.*|\.swcrc|\.npmrc)$' || true

printf '\n== package.json ==\n'
if [ -f package.json ]; then
  cat -n package.json | sed -n '1,220p'
fi

printf '\n== tsconfig files ==\n'
for f in $(git ls-files | rg '(^|/)tsconfig(\..*)?\.json$'); do
  printf '\n--- %s ---\n' "$f"
  cat -n "$f" | sed -n '1,260p'
done

printf '\n== webpack/import strategy hits ==\n'
rg -n '"moduleResolution"|"\bbaseUrl\b"|"paths"|resolve\.|alias|tsx?config|typescript' -g '!*node_modules*' -g '!*.lock' .

Repository: openshift/lightspeed-console

Length of output: 15646


🌐 Web query:

TypeScript 7 baseUrl moduleResolution node removes behaviors blog progress on TypeScript 7 December 2025

💡 Result:

In TypeScript 7.0, released in July 2026 [1], the compiler options baseUrl and moduleResolution: node (including node10) have been officially removed [1][2]. These features were deprecated in TypeScript 6.0 [3][4] to modernize the compiler's module resolution logic and simplify configuration [5][6]. Migration Paths: 1. baseUrl Removal: The baseUrl option is no longer supported as a lookup root for module resolution [3][4]. Developers should remove baseUrl from their tsconfig.json and incorporate the base path directly into each entry in the paths configuration [2][6]. For example, if your paths were mapped relative to a baseUrl of "./src", you should now prepend "./src/" to those path values [2][6]. 2. moduleResolution: node/node10 Removal: The node and node10 resolution strategies are no longer supported because they failed to reflect modern Node.js module resolution behaviors [5][3]. - For applications running directly in Node.js, the recommended replacement is moduleResolution: nodenext [2][3]. - For projects using bundlers (like Webpack, Vite, or Bun), the recommended replacement is moduleResolution: bundler [2][3]. Background and Context: The deprecation process began in TypeScript 6.0 [3][4]. During the transition period, projects could use the --ignoreDeprecations compiler option to suppress related errors, but this functionality has been removed in the final 7.0 release [1][7]. These changes were part of a broader architectural shift; TypeScript 7.0 is a significant milestone that introduced a new native compiler rewritten in Go (codenamed "Project Corsa") to achieve substantial performance improvements in build times and memory usage [8][9][10]. Despite this architectural rewrite, the compiler maintains structural and semantic parity with TypeScript 6.0 to ensure compatibility with existing codebases [9].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== webpack.config.ts ==\n'
cat -n webpack.config.ts | sed -n '1,220p'

printf '\n== non-relative imports in src/tests/unit-tests ==\n'
rg -n 'from [\"\x27](?!\.{1,2}/)' src tests unit-tests -g '!**/*.css' -g '!**/*.json' || true

printf '\n== tsconfig paths/baseUrl usage ==\n'
rg -n '"paths"|"baseUrl"|"moduleResolution"' tsconfig.json tests/tsconfig.json unit-tests/tsconfig.json webpack.config.ts package.json || true

Repository: openshift/lightspeed-console

Length of output: 4185


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== non-relative import specifiers ==\n'
rg -n --pcre2 'from\s+[\"\x27](?!\.{1,2}/)([^\"\x27]+)[\"\x27]' src tests unit-tests || true

printf '\n== import/require aliases or tsconfig path mappings ==\n'
rg -n '"paths"|baseUrl|resolve.alias|paths\s*:' src tests unit-tests webpack.config.ts tsconfig.json package.json || true

Repository: openshift/lightspeed-console

Length of output: 12791


Update tsconfig.json for TypeScript 7

baseUrl and moduleResolution: "node" are removed in TS 7, so this config will break as-is. For the webpack build, switch to moduleResolution: "bundler" and drop baseUrl; if any imports depend on it, rewrite those aliases explicitly first.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 50, Update tsconfig.json for TypeScript 7 by removing
baseUrl and changing moduleResolution from "node" to "bundler" for the webpack
build. Before removing baseUrl, inspect imports for aliases that rely on it and
rewrite those imports explicitly while preserving their resolved modules.

Source: MCP tools

@kyoto

kyoto commented Jul 23, 2026

Copy link
Copy Markdown
Member

Don't want to upgrade to TypeScript 7 yet

@kyoto kyoto closed this Jul 23, 2026
@kyoto
kyoto deleted the konflux/mintmaker/main/typescript-7.x branch July 23, 2026 02:23
@red-hat-konflux

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 7.x releases. But if you manually upgrade to 7.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant