diff --git a/nx-transformer.js b/nx-transformer.js deleted file mode 100644 index 5b2db77..0000000 --- a/nx-transformer.js +++ /dev/null @@ -1,6 +0,0 @@ -// Keeping register here in the root for backwards compatibiliy, TODO remove in the next major version -console.warn( - "typescript-transform-paths: Calling the top level nx-transformer file is deprecated and will be removed in the future. Use a tool that supports package.json exports", -); - -module.exports = require("./dist/plugins/nx-transfomer-plugin").default; diff --git a/package.json b/package.json index 50d128c..4c254d9 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,6 @@ "version": "3.5.2", "description": "Transforms module resolution paths using TypeScript path mapping and/or custom paths", "type": "commonjs", - "main": "./dist/index.js", - "types": "types/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", @@ -68,8 +66,6 @@ "@types/node": "^22.5.2", "@types/ts-expose-internals": "npm:ts-expose-internals@4.9.5", "@types/ts-node": "npm:ts-node@^10.9.2", - "@types/typescript-3": "npm:typescript@3.x", - "@types/typescript-4.7": "npm:typescript@4.9.x", "changelogen": "^0.5.5", "eslint": "9.x", "globals": "^15.9.0", @@ -80,7 +76,7 @@ "typescript-eslint": "^8.3.0" }, "peerDependencies": { - "typescript": ">=3.6.5" + "typescript": ">=5" }, "dependencies": { "minimatch": "^9.0.5" diff --git a/register.js b/register.js deleted file mode 100644 index d0bcee8..0000000 --- a/register.js +++ /dev/null @@ -1,5 +0,0 @@ -// Keeping register here in the root for backwards compatibiliy, TODO remove in the next major version -console.warn( - "typescript-transform-paths: Calling the top level register file is deprecated and will be removed in the future. Use a tool that supports package.json exports", -); -require("./dist/register-entry"); diff --git a/src/harmony/harmony-factory.ts b/src/harmony/harmony-factory.ts deleted file mode 100644 index 1b00276..0000000 --- a/src/harmony/harmony-factory.ts +++ /dev/null @@ -1,33 +0,0 @@ -import TS from "typescript"; -import { TsTransformPathsContext } from "../types"; -import { TsFourSeven, TsThreeEight } from "./versions"; - -/* ****************************************************************************************************************** */ -// region: Types -/* ****************************************************************************************************************** */ - -export interface HarmonyFactory extends TS.NodeFactory {} - -// endregion - -/* ****************************************************************************************************************** */ -// region: Utilities -/* ****************************************************************************************************************** */ - -/** Creates a node factory compatible with TS v3+ */ -export function createHarmonyFactory(context: TsTransformPathsContext): HarmonyFactory { - return new Proxy(context.tsFactory ?? context.tsInstance, { - get(target, prop) { - if (TsThreeEight.predicate(context)) { - return TsThreeEight.handler(context, prop); - } else if (TsFourSeven.predicate(context)) { - return TsFourSeven.handler(context, prop); - } else { - // @ts-expect-error TS(7053) FIXME: Element implicitly has an 'any' type because expression of type 'string | symbol' can't be used to index type 'typeof import("typescript") | NodeFactory'. - return target[prop]; - } - }, - }) as HarmonyFactory; -} - -// endregion diff --git a/src/harmony/index.ts b/src/harmony/index.ts deleted file mode 100644 index 34eee98..0000000 --- a/src/harmony/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./versions"; -export * from "./harmony-factory"; diff --git a/src/harmony/utils.ts b/src/harmony/utils.ts deleted file mode 100644 index 2f0cb8e..0000000 --- a/src/harmony/utils.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* ****************************************************************************************************************** */ -// region: Utility Types -/* ****************************************************************************************************************** */ -// @formatter:off - -// @prettier-ignore -export type DownSampleTsTypes = { - [i in keyof Tuple]: Tuple[i] extends unknown[] - ? DownSampleTsTypes - : DownSampleTsType; -} & { - length: Tuple["length"]; -}; - -// @prettier-ignore -type DownSampleTsType = - T extends Exclude ? Extract[1] : T; - -// @formatter:on -// endregion diff --git a/src/harmony/versions/four-seven.ts b/src/harmony/versions/four-seven.ts deleted file mode 100644 index b09638d..0000000 --- a/src/harmony/versions/four-seven.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** Changes after this point: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes#typescript-48 */ -import type { - default as TsCurrentModule, - AssertClause, - ExportDeclaration, - Expression, - ImportClause, - ImportDeclaration, - Modifier, - ModuleBody, - ModuleDeclaration, - ModuleName, - NamedExportBindings, -} from "typescript"; -import type TsFourSevenModule from "typescript-4.7"; -import type { TsTransformPathsContext } from "../../types"; -import type { DownSampleTsTypes } from "../utils"; - -/* ****************************************************************************************************************** */ -// region: Mapping -/* ****************************************************************************************************************** */ - -export type TypeMap = [ - [TsCurrentModule.ImportDeclaration, TsFourSevenModule.ImportDeclaration], - [TsCurrentModule.Modifier, TsFourSevenModule.Modifier], - [TsCurrentModule.ImportClause, TsFourSevenModule.ImportClause], - [TsCurrentModule.Expression, TsFourSevenModule.Expression], - [TsCurrentModule.AssertClause, TsFourSevenModule.AssertClause], - [TsCurrentModule.ExportDeclaration, TsFourSevenModule.ExportDeclaration], - [TsCurrentModule.NamedExportBindings, TsFourSevenModule.NamedExportBindings], - [TsCurrentModule.ModuleDeclaration, TsFourSevenModule.ModuleDeclaration], - [TsCurrentModule.ModuleName, TsFourSevenModule.ModuleName], - [TsCurrentModule.ModuleBody, TsFourSevenModule.ModuleBody], -]; - -// endregion - -/* ****************************************************************************************************************** */ -// region: Utils -/* ****************************************************************************************************************** */ - -export const predicate = ({ tsVersionMajor, tsVersionMinor }: TsTransformPathsContext) => - tsVersionMajor == 4 && tsVersionMinor < 8; - -export function handler(context: TsTransformPathsContext, prop: string | symbol) { - const factory = context.tsFactory as unknown as TsFourSevenModule.NodeFactory; - - switch (prop) { - case "updateImportDeclaration": { - return function ( - node: ImportDeclaration, - _modifiers: readonly Modifier[] | undefined, - importClause: ImportClause | undefined, - moduleSpecifier: Expression, - assertClause: AssertClause | undefined, - ) { - const [dsNode, dsImportClause, dsModuleSpecifier, dsAssertClause] = downSample( - node, - importClause, - moduleSpecifier, - assertClause, - ); - - return factory.updateImportDeclaration( - dsNode, - dsNode.decorators, - dsNode.modifiers, - dsImportClause, - dsModuleSpecifier, - dsAssertClause, - ); - }; - } - case "updateExportDeclaration": { - return function ( - node: ExportDeclaration, - _modifiers: readonly Modifier[] | undefined, - isTypeOnly: boolean, - exportClause: NamedExportBindings | undefined, - moduleSpecifier: Expression | undefined, - assertClause: AssertClause | undefined, - ) { - const [dsNode, dsExportClause, dsModuleSpecifier, dsAssertClause] = downSample( - node, - exportClause, - moduleSpecifier, - assertClause, - ); - - return factory.updateExportDeclaration( - dsNode, - dsNode.decorators, - dsNode.modifiers, - isTypeOnly, - dsExportClause, - dsModuleSpecifier, - dsAssertClause, - ); - }; - } - case "updateModuleDeclaration": { - return function ( - node: ModuleDeclaration, - _modifiers: readonly Modifier[] | undefined, - name: ModuleName, - body: ModuleBody | undefined, - ) { - const [dsNode, dsName, dsBody] = downSample(node, name, body); - - return factory.updateModuleDeclaration(dsNode, dsNode.decorators, dsNode.modifiers, dsName, dsBody); - }; - } - default: { - // @ts-expect-error TS(7019) FIXME: Rest parameter 'args' implicitly has an 'any[]' type. - return (...args) => factory[prop](...args); - } - } -} - -export function downSample(...args: T): DownSampleTsTypes { - // @ts-expect-error TS(2322) FIXME: Type 'T' is not assignable to type 'DownSampleTsTypes'. - return args; -} - -// endregion diff --git a/src/harmony/versions/index.ts b/src/harmony/versions/index.ts deleted file mode 100644 index 4fcadcd..0000000 --- a/src/harmony/versions/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * as TsThreeEight from "./three-eight"; -export * as TsFourSeven from "./four-seven"; diff --git a/src/harmony/versions/three-eight.ts b/src/harmony/versions/three-eight.ts deleted file mode 100644 index e9e615e..0000000 --- a/src/harmony/versions/three-eight.ts +++ /dev/null @@ -1,158 +0,0 @@ -/** Changes after this point: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Changes#typescript-40 */ -import type { - default as TsCurrentModule, - EntityName, - ExportDeclaration, - Expression, - Identifier, - ImportClause, - ImportDeclaration, - ImportTypeAssertionContainer, - ImportTypeNode, - Modifier, - ModuleBody, - ModuleDeclaration, - ModuleName, - NamedExportBindings, - NamedImportBindings, - TypeNode, -} from "typescript"; -import type TsThreeEightModule from "typescript-3"; -import type { TsTransformPathsContext } from "../../types"; -import type { DownSampleTsTypes } from "../utils"; - -/* ****************************************************************************************************************** */ -// region: Mapping -/* ****************************************************************************************************************** */ - -export type TypeMap = [ - [TsCurrentModule.SourceFile, TsThreeEightModule.SourceFile], - [TsCurrentModule.StringLiteral, TsThreeEightModule.StringLiteral], - [TsCurrentModule.CompilerOptions, TsThreeEightModule.CompilerOptions], - // @ts-expect-error typescript 3 doesn't export EmitResolver - [TsCurrentModule.EmitResolver, TsThreeEightModule.EmitResolver], - [TsCurrentModule.CallExpression, TsThreeEightModule.CallExpression], - [TsCurrentModule.ExternalModuleReference, TsThreeEightModule.ExternalModuleReference], - [TsCurrentModule.LiteralTypeNode, TsThreeEightModule.LiteralTypeNode], - [TsCurrentModule.ExternalModuleReference, TsThreeEightModule.ExternalModuleReference], - [TsCurrentModule.ImportTypeNode, TsThreeEightModule.ImportTypeNode], - [TsCurrentModule.EntityName, TsThreeEightModule.EntityName], - [TsCurrentModule.TypeNode, TsThreeEightModule.TypeNode], - [readonly TsCurrentModule.TypeNode[], readonly TsThreeEightModule.TypeNode[]], - [TsCurrentModule.LiteralTypeNode, TsThreeEightModule.LiteralTypeNode], - [TsCurrentModule.ImportDeclaration, TsThreeEightModule.ImportDeclaration], - [TsCurrentModule.ImportClause, TsThreeEightModule.ImportClause], - [TsCurrentModule.Identifier, TsThreeEightModule.Identifier], - [TsCurrentModule.NamedImportBindings, TsThreeEightModule.NamedImportBindings], - [TsCurrentModule.ImportDeclaration, TsThreeEightModule.ImportDeclaration], - [TsCurrentModule.ExportDeclaration, TsThreeEightModule.ExportDeclaration], - [TsCurrentModule.ModuleDeclaration, TsThreeEightModule.ModuleDeclaration], - [TsCurrentModule.Expression, TsThreeEightModule.Expression], - [TsCurrentModule.ModuleBody, TsThreeEightModule.ModuleBody], - [TsCurrentModule.ModuleName, TsThreeEightModule.ModuleName], - [TsCurrentModule.ExportDeclaration["exportClause"], TsThreeEightModule.ExportDeclaration["exportClause"]], -]; - -// endregion - -/* ****************************************************************************************************************** */ -// region: Utils -/* ****************************************************************************************************************** */ - -export const predicate = (context: TsTransformPathsContext) => context.tsVersionMajor < 4; - -export function handler(context: TsTransformPathsContext, prop: string | symbol) { - const ts = context.tsInstance as unknown as typeof TsThreeEightModule; - - switch (prop) { - case "updateCallExpression": { - // @ts-expect-error TS(7019) FIXME: Rest parameter 'args' implicitly has an 'any[]' type. - return (...args) => ts.updateCall.apply(void 0, args); - } - case "updateImportClause": { - return function ( - node: ImportClause, - _isTypeOnly: boolean, - name: Identifier | undefined, - namedBindings: NamedImportBindings | undefined, - ) { - // @ts-expect-error TODO investigate type issue - return ts.updateImportClause.apply(void 0, downSample(node, name, namedBindings)); - }; - } - case "updateImportDeclaration": { - return function ( - node: ImportDeclaration, - _modifiers: readonly Modifier[] | undefined, - importClause: ImportClause | undefined, - moduleSpecifier: Expression, - ) { - const [dsNode, dsImportClause, dsModuleSpecifier] = downSample(node, importClause, moduleSpecifier); - - return ts.updateImportDeclaration( - dsNode, - dsNode.decorators, - dsNode.modifiers, - dsImportClause, - dsModuleSpecifier, - ); - }; - } - case "updateExportDeclaration": { - return function ( - node: ExportDeclaration, - _modifiers: readonly Modifier[] | undefined, - _isTypeOnly: boolean, - exportClause: NamedExportBindings | undefined, - moduleSpecifier: Expression | undefined, - ) { - const [dsNode, dsModuleSpecifier, dsExportClause] = downSample(node, moduleSpecifier, exportClause); - return ts.updateExportDeclaration( - dsNode, - dsNode.decorators, - dsNode.modifiers, - dsExportClause, - dsModuleSpecifier, - dsNode.isTypeOnly, - ); - }; - } - case "updateModuleDeclaration": { - return function ( - node: ModuleDeclaration, - _modifiers: readonly Modifier[] | undefined, - name: ModuleName, - body: ModuleBody | undefined, - ) { - const [dsNode, dsName, dsBody] = downSample(node, name, body); - - return ts.updateModuleDeclaration(dsNode, dsNode.decorators, dsNode.modifiers, dsName, dsBody); - }; - } - case "updateImportTypeNode": { - return function ( - node: ImportTypeNode, - argument: TypeNode, - _assertions: ImportTypeAssertionContainer | undefined, - qualifier: EntityName | undefined, - typeArguments: readonly TypeNode[] | undefined, - isTypeOf?: boolean, - ) { - const [dsNode, dsArgument, dsQualifier, dsTypeArguments] = downSample(node, argument, qualifier, typeArguments); - - return ts.updateImportTypeNode(dsNode, dsArgument, dsQualifier, dsTypeArguments, isTypeOf); - }; - } - default: { - // @ts-expect-error TS(7019) FIXME: Rest parameter 'args' implicitly has an 'any[]' type. - return (...args) => ts[prop](...args); - } - } -} - -export function downSample(...args: T): DownSampleTsTypes { - // @ts-expect-error TS(2322) FIXME: Type 'T' is not assignable to type 'DownSampleTsTypes'. - return args; -} - -// endregion diff --git a/src/transformer.ts b/src/transformer.ts index 47228cd..eed5159 100755 --- a/src/transformer.ts +++ b/src/transformer.ts @@ -2,7 +2,6 @@ import path from "node:path"; import ts, { CompilerOptions } from "typescript"; import { RunMode, TsNodeState, TsTransformPathsConfig, TsTransformPathsContext, VisitorContext } from "./types"; import { nodeVisitor } from "./visitor"; -import { createHarmonyFactory } from "./harmony"; import { Minimatch } from "minimatch"; import { createSyntheticEmitHost, getTsNodeRegistrationProperties } from "./utils/ts-helpers"; import { TransformerExtras } from "ts-patch"; @@ -139,7 +138,7 @@ export default function transformer( getVisitor() { return nodeVisitor.bind(this); }, - factory: createHarmonyFactory(tsTransformPathsContext), + factory: (tsTransformPathsContext.tsFactory ?? tsTransformPathsContext.tsInstance) as ts.NodeFactory, }; return tsInstance.visitEachChild(sourceFile, visitorContext.getVisitor(), transformationContext); diff --git a/src/types.ts b/src/types.ts index a57e101..4e63dde 100755 --- a/src/types.ts +++ b/src/types.ts @@ -2,8 +2,6 @@ import ts, { CompilerOptions, EmitHost, Pattern, SourceFile } from "typescript"; import { PluginConfig } from "ts-patch"; import { Minimatch } from "minimatch"; -import { HarmonyFactory } from "./harmony"; - /* ****************************************************************************************************************** */ // region: TS Types /* ****************************************************************************************************************** */ @@ -49,7 +47,7 @@ export interface TsTransformPathsContext { } export interface VisitorContext extends TsTransformPathsContext { - readonly factory: HarmonyFactory; + readonly factory: ts.NodeFactory; readonly sourceFile: ts.SourceFile; readonly isDeclarationFile: boolean; readonly originalSourceFile: ts.SourceFile; diff --git a/test/config.ts b/test/config.ts index a8bc12d..76d32c4 100755 --- a/test/config.ts +++ b/test/config.ts @@ -1,18 +1,7 @@ import ts from "typescript"; -import tsThree from "typescript-3"; -import tsFourSeven from "typescript-4.7"; -import tsFiveFive from "typescript-5.5"; -import tsFiveSix from "typescript-5.6"; import path from "node:path"; -export const tsModules = [ - // TODO enable later - // ["3.6.5", tsThree, "typescript-3"], - // ["4.7.4", tsFourSeven, "typescript-4.7"], - // ["5.5.4", tsFiveFive, "typescript-5.5"], - // ["5.6.3", tsFiveSix, "typescript-5.6"], - ["Latest", ts, "typescript"], -]; +export const tsModules = [["Latest", ts, "typescript"]]; export const projectsPaths = path.join(__dirname, "./projects"); export const transformerPath = require.resolve("typescript-transform-paths"); diff --git a/test/package.json b/test/package.json index 786420d..a02d3f1 100644 --- a/test/package.json +++ b/test/package.json @@ -19,10 +19,6 @@ "tsp1": "npm:ts-patch@1.*.*", "tsp2": "npm:ts-patch@2.*.*", "typescript": "^5.7.2", - "typescript-3": "npm:typescript@3.6.5", - "typescript-4.7": "npm:typescript@4.7.4", - "typescript-5.5": "npm:typescript@5.5.4", - "typescript-5.6": "npm:typescript@5.6.3", "typescript-transform-paths": "portal:../", "vitest": "^2.1.8" }, diff --git a/test/prepare.mjs b/test/prepare.mjs index 5100d2a..2b93f84 100755 --- a/test/prepare.mjs +++ b/test/prepare.mjs @@ -4,8 +4,6 @@ import { symlink } from "node:fs/promises"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { patch } from "ts-patch"; -import { patch as patch1 } from "tsp1"; -import { patch as patch2 } from "tsp2"; const __dirname = dirname(fileURLToPath(import.meta.url)); // https://stackoverflow.com/questions/46745014/alternative-for-dirname-in-node-js-when-using-es6-modules @@ -32,10 +30,6 @@ function patchTsModules() { tspatch(["tsc.js", "typescript.js"], { basedir, dir: basedir }); } - patchTypescript("typescript-3", patch1); - patchTypescript("typescript-4.7", patch2); - patchTypescript("typescript-5.5", patch); - patchTypescript("typescript-5.6", patch); patchTypescript("typescript", patch); } diff --git a/test/tests/transformer/general.test.ts b/test/tests/transformer/general.test.ts index 3f98796..cbfb124 100755 --- a/test/tests/transformer/general.test.ts +++ b/test/tests/transformer/general.test.ts @@ -50,9 +50,7 @@ describe(`Transformer -> General Tests`, () => { beforeAll(() => { transformed = transformedFiles[file]; expected = { - // @ts-expect-error TS(2345) FIXME: Argument of type 'typeof ts | typeof ts | typeof import("typescript")' is not assignable to parameter of type 'typeof import("typescript")'. js: getExpected(tsInstance, file, originalFiles[file].js, projectRoot), - // @ts-expect-error TS(2345) FIXME: Argument of type 'typeof ts | typeof ts | typeof import("typescript")' is not assignable to parameter of type 'typeof import("typescript")'. dts: getExpected(tsInstance, file, originalFiles[file].dts, projectRoot), }; }); diff --git a/test/yarn.lock b/test/yarn.lock index 62860c3..85121e6 100644 --- a/test/yarn.lock +++ b/test/yarn.lock @@ -8476,10 +8476,6 @@ __metadata: tsp1: "npm:ts-patch@1.*.*" tsp2: "npm:ts-patch@2.*.*" typescript: "npm:^5.7.2" - typescript-3: "npm:typescript@3.6.5" - typescript-4.7: "npm:typescript@4.7.4" - typescript-5.5: "npm:typescript@5.5.4" - typescript-5.6: "npm:typescript@5.6.3" typescript-transform-paths: "portal:../" vitest: "npm:^2.1.8" languageName: unknown @@ -9631,53 +9627,13 @@ __metadata: languageName: node linkType: hard -"typescript-3@npm:typescript@3.6.5": - version: 3.6.5 - resolution: "typescript@npm:3.6.5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/b6f0d5d2e2325b28460b8cf3a4a1237d79aec9951ad727014d4ca570327cc5947decec5d262044979cc0a9ab63746b58e6d8438d73d33ce8415e5369d0490dff - languageName: node - linkType: hard - -"typescript-4.7@npm:typescript@4.7.4": - version: 4.7.4 - resolution: "typescript@npm:4.7.4" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/8c1c4007b6ce5b24c49f0e89173ab9e82687cc6ae54418d1140bb63b82d6598d085ac0f993fe3d3d1fbf87a2c76f1f81d394dc76315bc72c7a9f8561c5d8d205 - languageName: node - linkType: hard - -"typescript-5.5@npm:typescript@5.5.4": - version: 5.5.4 - resolution: "typescript@npm:5.5.4" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/422be60f89e661eab29ac488c974b6cc0a660fb2228003b297c3d10c32c90f3bcffc1009b43876a082515a3c376b1eefcce823d6e78982e6878408b9a923199c - languageName: node - linkType: hard - -"typescript-5.6@npm:typescript@5.6.3": - version: 5.6.3 - resolution: "typescript@npm:5.6.3" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/44f61d3fb15c35359bc60399cb8127c30bae554cd555b8e2b46d68fa79d680354b83320ad419ff1b81a0bdf324197b29affe6cc28988cd6a74d4ac60c94f9799 - languageName: node - linkType: hard - "typescript-transform-paths@portal:../::locator=root-workspace-0b6124%40workspace%3A.": version: 0.0.0-use.local resolution: "typescript-transform-paths@portal:../::locator=root-workspace-0b6124%40workspace%3A." dependencies: minimatch: "npm:^9.0.5" peerDependencies: - typescript: ">=3.6.5" + typescript: ">=5" languageName: node linkType: soft diff --git a/yarn.lock b/yarn.lock index 720e6f4..5fa7439 100644 --- a/yarn.lock +++ b/yarn.lock @@ -74,13 +74,20 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:9.17.0, @eslint/js@npm:^9.9.1": +"@eslint/js@npm:9.17.0": version: 9.17.0 resolution: "@eslint/js@npm:9.17.0" checksum: 10c0/a0fda8657a01c60aa540f95397754267ba640ffb126e011b97fd65c322a94969d161beeaef57c1441c495da2f31167c34bd38209f7c146c7225072378c3a933d languageName: node linkType: hard +"@eslint/js@npm:^9.9.1": + version: 9.15.0 + resolution: "@eslint/js@npm:9.15.0" + checksum: 10c0/56552966ab1aa95332f70d0e006db5746b511c5f8b5e0c6a9b2d6764ff6d964e0b2622731877cbc4e3f0e74c5b39191290d5f48147be19175292575130d499ab + languageName: node + linkType: hard + "@eslint/object-schema@npm:^2.1.4": version: 2.1.4 resolution: "@eslint/object-schema@npm:2.1.4" @@ -388,26 +395,6 @@ __metadata: languageName: node linkType: hard -"@types/typescript-3@npm:typescript@3.x": - version: 3.9.10 - resolution: "typescript@npm:3.9.10" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/863cc06070fa18a0f9c6a83265fb4922a8b51bf6f2c6760fb0b73865305ce617ea4bc6477381f9f4b7c3a8cb4a455b054f5469e6e41307733fe6a2bd9aae82f8 - languageName: node - linkType: hard - -"@types/typescript-4.7@npm:typescript@4.9.x": - version: 4.9.5 - resolution: "typescript@npm:4.9.5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: 10c0/5f6cad2e728a8a063521328e612d7876e12f0d8a8390d3b3aaa452a6a65e24e9ac8ea22beb72a924fd96ea0a49ea63bb4e251fb922b12eedfb7f7a26475e5c56 - languageName: node - linkType: hard - "@types/unist@npm:*, @types/unist@npm:^3.0.0": version: 3.0.3 resolution: "@types/unist@npm:3.0.3" @@ -2931,8 +2918,6 @@ __metadata: "@types/node": "npm:^22.5.2" "@types/ts-expose-internals": "npm:ts-expose-internals@4.9.5" "@types/ts-node": "npm:ts-node@^10.9.2" - "@types/typescript-3": "npm:typescript@3.x" - "@types/typescript-4.7": "npm:typescript@4.9.x" changelogen: "npm:^0.5.5" eslint: "npm:9.x" globals: "npm:^15.9.0" @@ -2943,7 +2928,7 @@ __metadata: typescript: "npm:^5.5.4" typescript-eslint: "npm:^8.3.0" peerDependencies: - typescript: ">=3.6.5" + typescript: ">=5" languageName: unknown linkType: soft