Update to TypeScript 7 - #520
Open
gaborm88 wants to merge 6 commits into
Open
Conversation
- Updated jest configuration to use @swc/jest instead of ts-jest. - Replaced ts-node with tsx in various package.json scripts and example files for improved performance. - Adjusted import statements to use default imports for 'assert' and 'Koa' where applicable. - Updated TypeScript peer dependencies to support version 7 across multiple packages.
….0 in peer ranges
…3 in pnpm-lock.yaml
…latest version by default.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upgrades the workspace from TypeScript 5.x to TypeScript 7.0.2, modernizes the build/test tooling around it, and widens supported peer ranges to
^4.8.0 || ^5.0.0 || ^6.0.0 || ^7.0.0across all published packages — so consumers on older TypeScript versions are unaffected.Changes
TypeScript 7
typescriptbumped to7.0.2in all packages (previously 5.7.2/5.9.2)import * as assert→import assert)Module resolution modernization
module/moduleResolution:commonjs/node→node16in all tsconfigsbaseUrl/pathsusage and added explicittypes: ["node"]where neededTooling: drop ts-node / ts-jest
render,prerender, drivers, examples):ts-node→tsxts-jest→@swc/jestts-nodeandts-jestdevDependencies entirelyFix eslint under TS 7
@typescript-eslint/*5.x doesn't support TS 7, sopackageExtensionsinpnpm-workspace.yamlnow injectstypescript: npm:@typescript/typescript6@^6.0.2into@typescript-eslint/eslint-plugin,@typescript-eslint/type-utils,@typescript-eslint/typescript-estree, andtsutilspnpm 10.16.0 → 10.33.0
ERR_PNPM_MISSING_TIME) where projects withoutminimumReleaseAgeoverwrite the full-metadata cache entries this repo needs (abbreviated docs lack thetimefield). 10.33.0 separates the cache intometadata-ff-v1.3version:pins frompnpm/action-setupin both workflows — the action now reads the version frompackageManagerinpackage.json, keeping a single source of truthpnpm-lock.yamlregenerated (newpackageExtensionsChecksum+typescript6resolutions)Testing
pnpm install --frozen-lockfilepasses locallypnpm run lint:localpasses (validates the eslint TS6 shim)