-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: remove typescript 4.7 support
- Loading branch information
Showing
9 changed files
with
5 additions
and
183 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,6 @@ | |
"@types/node": "^22.5.2", | ||
"@types/ts-expose-internals": "npm:[email protected]", | ||
"@types/ts-node": "npm:ts-node@^10.9.2", | ||
"@types/typescript-4.7": "npm:[email protected]", | ||
"changelogen": "^0.5.5", | ||
"eslint": "9.x", | ||
"globals": "^15.9.0", | ||
|
@@ -77,7 +76,7 @@ | |
"typescript-eslint": "^8.3.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=4" | ||
"typescript": ">=5" | ||
}, | ||
"dependencies": { | ||
"minimatch": "^9.0.5" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
import TS from "typescript"; | ||
import { TsTransformPathsContext } from "../types"; | ||
import { TsFourSeven } 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 (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; | ||
return (context.tsFactory ?? context.tsInstance) as HarmonyFactory; | ||
} | ||
|
||
// endregion |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
"ts-patch": "^3.2.1", | ||
"tsp2": "npm:ts-patch@2.*.*", | ||
"typescript": "^5.5.4", | ||
"typescript-4.7": "npm:[email protected]", | ||
"typescript-transform-paths": "portal:../" | ||
}, | ||
"workspaces": [ | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8069,7 +8069,6 @@ __metadata: | |
ts-patch: "npm:^3.2.1" | ||
tsp2: "npm:ts-patch@2.*.*" | ||
typescript: "npm:^5.5.4" | ||
typescript-4.7: "npm:[email protected]" | ||
typescript-transform-paths: "portal:../" | ||
languageName: unknown | ||
linkType: soft | ||
|
@@ -9189,23 +9188,13 @@ __metadata: | |
languageName: node | ||
linkType: hard | ||
|
||
"typescript-4.7@npm:[email protected]": | ||
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-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: ">=4" | ||
typescript: ">=5" | ||
languageName: node | ||
linkType: soft | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,16 +341,6 @@ __metadata: | |
languageName: node | ||
linkType: hard | ||
|
||
"@types/typescript-4.7@npm:[email protected]": | ||
version: 4.7.4 | ||
resolution: "typescript@npm:4.7.4" | ||
bin: | ||
tsc: bin/tsc | ||
tsserver: bin/tsserver | ||
checksum: 10c0/8c1c4007b6ce5b24c49f0e89173ab9e82687cc6ae54418d1140bb63b82d6598d085ac0f993fe3d3d1fbf87a2c76f1f81d394dc76315bc72c7a9f8561c5d8d205 | ||
languageName: node | ||
linkType: hard | ||
|
||
"@types/unist@npm:*, @types/unist@npm:^3.0.0": | ||
version: 3.0.3 | ||
resolution: "@types/unist@npm:3.0.3" | ||
|
@@ -2976,7 +2966,6 @@ __metadata: | |
"@types/node": "npm:^22.5.2" | ||
"@types/ts-expose-internals": "npm:[email protected]" | ||
"@types/ts-node": "npm:ts-node@^10.9.2" | ||
"@types/typescript-4.7": "npm:[email protected]" | ||
changelogen: "npm:^0.5.5" | ||
eslint: "npm:9.x" | ||
globals: "npm:^15.9.0" | ||
|
@@ -2987,7 +2976,7 @@ __metadata: | |
typescript: "npm:^5.5.4" | ||
typescript-eslint: "npm:^8.3.0" | ||
peerDependencies: | ||
typescript: ">=4" | ||
typescript: ">=5" | ||
languageName: unknown | ||
linkType: soft | ||
|
||
|