Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: update typescript to 5.0.2 (#22079)

Pavel Feldmand39ff3dc5a23
diff --git a/package-lock.json b/package-lock.json
index 8f746e2e42..f1f28fd251 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,7 +22,7 @@
"@babel/plugin-transform-typescript": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@types/babel__core": "^7.20.0",
- "@types/codemirror": "^5.60.5",
+ "@types/codemirror": "^5.60.7",
"@types/formidable": "^2.0.4",
"@types/node": "=14.18.34",
"@types/react": "^18.0.12",
@@ -59,7 +59,7 @@
"rimraf": "^3.0.2",
"socksv5": "0.0.6",
"ssim.js": "^3.5.0",
- "typescript": "^4.9.3",
+ "typescript": "^5.0.2",
"vite": "^4.2.1",
"ws": "^8.5.0",
"xml2js": "^0.4.23",
@@ -1411,9 +1411,9 @@
}
},
"node_modules/@types/codemirror": {
- "version": "5.60.5",
- "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.5.tgz",
- "integrity": "sha512-TiECZmm8St5YxjFUp64LK0c8WU5bxMDt9YaAek1UqUb9swrSCoJhh92fWu1p3mTEqlHjhB5sY7OFBhWroJXZVg==",
+ "version": "5.60.7",
+ "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.7.tgz",
+ "integrity": "sha512-QXIC+RPzt/1BGSuD6iFn6UMC9TDp+9hkOANYNPVsjjrDdzKphfRkwQDKGp2YaC54Yhz0g6P5uYTCCibZZEiMAA==",
"dev": true,
"dependencies": {
"@types/tern": "*"
@@ -5537,16 +5537,16 @@
"license": "MIT"
},
"node_modules/typescript": {
- "version": "4.9.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
- "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
+ "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
- "node": ">=4.2.0"
+ "node": ">=12.20"
}
},
"node_modules/universalify": {
@@ -7119,9 +7119,9 @@
}
},
"@types/codemirror": {
- "version": "5.60.5",
- "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.5.tgz",
- "integrity": "sha512-TiECZmm8St5YxjFUp64LK0c8WU5bxMDt9YaAek1UqUb9swrSCoJhh92fWu1p3mTEqlHjhB5sY7OFBhWroJXZVg==",
+ "version": "5.60.7",
+ "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.7.tgz",
+ "integrity": "sha512-QXIC+RPzt/1BGSuD6iFn6UMC9TDp+9hkOANYNPVsjjrDdzKphfRkwQDKGp2YaC54Yhz0g6P5uYTCCibZZEiMAA==",
"dev": true,
"requires": {
"@types/tern": "*"
@@ -9766,9 +9766,9 @@
"dev": true
},
"typescript": {
- "version": "4.9.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
- "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz",
+ "integrity": "sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==",
"dev": true
},
"universalify": {
diff --git a/package.json b/package.json
index 3eec74afca..6017a6412e 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,7 @@
"@babel/plugin-transform-typescript": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@types/babel__core": "^7.20.0",
- "@types/codemirror": "^5.60.5",
+ "@types/codemirror": "^5.60.7",
"@types/formidable": "^2.0.4",
"@types/node": "=14.18.34",
"@types/react": "^18.0.12",
@@ -94,7 +94,7 @@
"rimraf": "^3.0.2",
"socksv5": "0.0.6",
"ssim.js": "^3.5.0",
- "typescript": "^4.9.3",
+ "typescript": "^5.0.2",
"vite": "^4.2.1",
"ws": "^8.5.0",
"xml2js": "^0.4.23",
diff --git a/tests/components/ct-vue-cli/tsconfig.test.json b/tests/components/ct-vue-cli/tsconfig.test.json
index 10b8573988..a1c8da993c 100644
--- a/tests/components/ct-vue-cli/tsconfig.test.json
+++ b/tests/components/ct-vue-cli/tsconfig.test.json
@@ -6,6 +6,7 @@
"composite": true,
"lib": [],
"jsx": "react-jsx",
- "types": ["node"]
+ "types": ["node"],
+ "ignoreDeprecations": "5.0"
}
}
diff --git a/tests/components/ct-vue2-cli/tsconfig.test.json b/tests/components/ct-vue2-cli/tsconfig.test.json
index 9b93a78c8c..b87d76b5ca 100644
--- a/tests/components/ct-vue2-cli/tsconfig.test.json
+++ b/tests/components/ct-vue2-cli/tsconfig.test.json
@@ -5,6 +5,7 @@
"allowJs": true,
"composite": true,
"lib": [],
- "types": ["node"]
+ "types": ["node"],
+ "ignoreDeprecations": "5.0"
}
}
diff --git a/tests/playwright-test/types.spec.ts b/tests/playwright-test/types.spec.ts
index c7963ab224..ec7dc9d37c 100644
--- a/tests/playwright-test/types.spec.ts
+++ b/tests/playwright-test/types.spec.ts
@@ -74,9 +74,9 @@ test('should check types of fixtures', async ({ runTSC }) => {
baz: true,
});
const fail9 = test.extend<{ foo: string }>({
+ // @ts-expect-error
foo: [ async ({}, use) => {
await use('foo');
- // @ts-expect-error
}, { scope: 'test', auto: true } ],
});
const fail10 = test.extend<{}, {}>({