Review 13.4 Merged

92381[TASK] Prepare for TypeScript v6 and v7

Benjamin Franzke CR +2 V +2 Hard +151 −157 updated 01/22/26, 13:42

Commit message

TypeScript v7 is on the horizon and will rewrite
TypeScript in golang which requires some adaptions [1],
that will be phased on as of TypeScript v6 (the last JavaScript-based
TypeScript compiler version) as preparation for TypeScript v7.

Migrate all current known deprecations that affect our codebase in order
to run in a mode that will be compatible with the v6 and v7 release.

 * Switch TypeScript build to use `moduleResolution: bundler`

   TypeScript v7 (go implementation) will not support moduleResoluion
   `node`, but force `bundler` mode. `bundler` mode is more pedantic
   about using exact module `exports` as defined in `package.json` of
   the dependencies that are being imported.

   This affects our usage of `lit` where we often miss to specify the
   `.js` file extension (probably not by intent, but because it worked).
   These have been migrated via:

     git grep -l "from 'lit/\([^.]*\)'" Build/ | \
       xargs sed -i "s/from 'lit\/\([^.]*\)'/from 'lit\/\1.js'/"

 * Switch to `paths` + `rootDir` instead of `baseUrl` (which will be
   removed) and adapt all paths in tsconfig.json to be relative as
   suggested in upstream examples.

 * Avoid overwriting properties of super-classes when the super-class
   changes the property in it's constructor. This will become
   unsupported with `useDefineForClassFields: true`.

[1] https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/#deprecation-compatibility

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 96

Show 76 more files

Review log 34

  1. Benjamin Franzke uploaded patch set 1 01/19/26, 11:36

  2. core-ci voted on patch set 1 V +1 01/19/26, 11:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93769

  3. Benjamin Franzke commented on patch set 1 CR +2 V +2 01/22/26, 13:42

    This change is ready for review.
  4. Benjamin Franzke merged patch set 2 01/22/26, 13:42