Skip to content

Commit aefe6b2

Browse files
build!: increase minimum supported TypeScript version to 4.3.5
1 parent 8eadbb6 commit aefe6b2

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

.github/workflows/test-js.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ts_version:
2020
- "next"
2121
- "latest"
22-
- "4.0.2"
22+
- "4.3.5"
2323
- "JS"
2424
runs-on: ${{ matrix.os }}
2525
continue-on-error: ${{ matrix.ts_version == 'next' }}
@@ -47,21 +47,6 @@ jobs:
4747
if: matrix.ts_version != 'JS'
4848
run: pnpm add -D typescript@"${{ matrix.ts_version }}"
4949

50-
- name: Remove incompatible settings for ts 4.0.2
51-
if: matrix.ts_version == '4.0.2'
52-
run: |
53-
node -e '
54-
const fs = require("fs");
55-
const filename = "./tsconfig.json";
56-
const tsConfig = require(filename);
57-
delete tsConfig.compilerOptions.exactOptionalPropertyTypes;
58-
delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;
59-
delete tsConfig.compilerOptions.noUncheckedIndexedAccess;
60-
const tsConfigString = JSON.stringify(tsConfig, undefined, 2);
61-
fs.writeFileSync(filename, tsConfigString, { encoding: "utf8" });
62-
console.log("TS Config updated successfully.");
63-
'
64-
6550
- name: Run Tests
6651
run: pnpm test-compiled
6752

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"peerDependencies": {
150150
"eslint": "^8.0.0",
151-
"typescript": ">=4.0.2"
151+
"typescript": ">=4.3.5"
152152
},
153153
"peerDependenciesMeta": {
154154
"typescript": {

0 commit comments

Comments
 (0)