Skip to content

Bump typescript from 6.0.3 to 7.0.2#111

Closed
dependabot[bot] wants to merge 7 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2
Closed

Bump typescript from 6.0.3 to 7.0.2#111
dependabot[bot] wants to merge 7 commits into
mainfrom
dependabot/npm_and_yarn/typescript-7.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 8, 2026

Copy link
Copy Markdown
Contributor

Bumps typescript from 6.0.3 to 7.0.2.

Commits
Maintainer changes

This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 8, 2026
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
learn-postgres Ready Ready Preview Jul 14, 2026 2:45pm

@exekias

exekias commented Jul 10, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@exekias

exekias commented Jul 10, 2026

Copy link
Copy Markdown
Member

@copilot fix the errors

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the errors

Fixed in commits b5cef84 and 9aa28aa.

Root cause: TypeScript 7 is the Go-based rewrite and completely changed its npm package API — the old compiler API (ts.Extension, ts.TypeFlags, etc.) no longer exists. The @typescript-eslint packages bundled inside eslint-config-next crash at module load time because they depend on this old API.

Fix: Since no version of @typescript-eslint currently supports TypeScript 7, added a compatibility shim:

  1. typescript-for-eslint: npm:typescript@~5 — installs TypeScript 5 alongside TypeScript 7
  2. scripts/setup-eslint-ts-compat.js (run as postinstall) — creates TypeScript 5 symlinks inside node_modules/eslint-config-next/node_modules/ and node_modules/ts-api-utils/node_modules/ so ESLint tooling picks up TypeScript 5 while the project still uses TypeScript 7 for compilation.

This workaround can be removed once @typescript-eslint ships TypeScript 7 support.

@exekias

exekias commented Jul 14, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@exekias

exekias commented Jul 14, 2026

Copy link
Copy Markdown
Member

@dependabot recreate

Bumps [typescript](https://github.com/microsoft/TypeScript) from 6.0.3 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
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 force-pushed the dependabot/npm_and_yarn/typescript-7.0.2 branch from 94742d5 to ac1872a Compare July 14, 2026 13:42
@exekias

exekias commented Jul 14, 2026

Copy link
Copy Markdown
Member

@copilot fix ci issues after the dep update

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@copilot fix ci issues after the dep update

Fixed in commits ac1872a..latest.

Root cause: @typescript-eslint packages bundled inside eslint-config-next require TypeScript >=4.8.4 <6.1.0 and use compiler APIs (ts.Extension, ts.TypeFlags, etc.) that no longer exist in TypeScript 7.

Fix:

  1. Added typescript-for-eslint: npm:typescript@~5 as a devDependency to install TypeScript 5 alongside TypeScript 7.
  2. Added scripts/setup-eslint-ts-compat.mjs (run as postinstall) — creates TypeScript 5 symlinks at node_modules/eslint-config-next/node_modules/typescript and node_modules/ts-api-utils/node_modules/typescript so ESLint tooling picks up TypeScript 5 while the project still compiles with TypeScript 7.

This workaround can be removed once @typescript-eslint ships TypeScript 7 support.

- Remove eslint, eslint-config-next, @eslint/compat, typescript-for-eslint
- Remove eslint.config.mjs and scripts/setup-eslint-ts-compat.mjs
- Add @biomejs/biome with biome.json config
- Update lint script to use "biome check ."
- Add format script using "biome check --fix ."
- Remove postinstall hook (no longer needed)
Next.js needs typescript available at build time. With devDependencies
potentially omitted in production builds, this ensures tsc is always
resolvable during `next build`.
typescript@7 in this ecosystem is the native (Go) compiler rewrite: its
package ships no `lib/typescript.js` and exports only `.` + `./unstable/*`.
Next.js's build-time type checker requires the classic `typescript/lib/
typescript.js` JS API, so `next build` reported "TypeScript ... not
installed" and then segfaulted. The native compiler is a *separate*
package (`@typescript/native-preview`) in this Next.js version, not a
replacement for the `typescript` package.

Revert the Dependabot bump back to the classic ^6 line and move it back to
devDependencies (Vercel installs devDependencies at build time, and
scripts/vercel-build.sh runs a plain `next build`, so the earlier "move to
dependencies" workaround was unnecessary).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dependabot @github

dependabot Bot commented on behalf of github Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/typescript-7.0.2 branch July 14, 2026 14:48
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.

2 participants