Review main Merged

92375[TASK] Prepare for TypeScript v6 and v7

Benjamin Franzke CR +2 V +2 Hard +172 −178 updated 01/22/26, 13:41

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
    • Oli Bartsch +1
    • Benni Mack +1
  • Verified V +2 Done
    • Benjamin Franzke +2
    • Oli Bartsch +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 1

Files 112

Show 92 more files

Review log 913

  1. Benjamin Franzke uploaded patch set 1 01/18/26, 17:14

  2. core-ci voted on patch set 1 V +1 01/18/26, 17:24 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93724

  3. Benjamin Franzke uploaded patch set 2 V +1 01/18/26, 20:22

  4. core-ci voted on patch set 2 V +1 01/18/26, 20:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93730

  5. Benjamin Franzke uploaded patch set 3 V +1 01/19/26, 11:31

  6. Benjamin Franzke uploaded patch set 4 01/19/26, 11:35

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

  8. core-ci voted on patch set 3 V -1 01/19/26, 11:50 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/93766

  9. Benjamin Franzke marked it ready for review 01/19/26, 11:57

  10. Benni Mack voted on patch set 4 CR +1 V +1 01/22/26, 10:04

  11. Oli Bartsch voted on patch set 4 CR +1 V +1 01/22/26, 11:36

  12. Benjamin Franzke voted on patch set 4 CR +2 V +2 01/22/26, 13:41

  13. Benjamin Franzke merged patch set 5 01/22/26, 13:41