From 43b61935c26e26615398bbbb6df7c8393357a08e Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Tue, 16 Feb 2021 10:15:36 +0000 Subject: [PATCH] chore: upgrade TypeScript to 4.1.5 We were blocked on doing this because API Extractor didn't support it, but now it does, so we can bump TS and the API tooling in one go. None of the breaking changes in TS4 cause us any issues. --- package.json | 6 +++--- test/navigation.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f574ed82f47ab..dfcdd64737c74 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,8 @@ "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", - "@microsoft/api-documenter": "7.9.7", - "@microsoft/api-extractor": "7.10.4", + "@microsoft/api-documenter": "^7.12.7", + "@microsoft/api-extractor": "^7.13.1", "@types/debug": "0.0.31", "@types/mime": "^2.0.0", "@types/mocha": "^7.0.2", @@ -107,7 +107,7 @@ "standard-version": "^9.0.0", "text-diff": "^1.0.1", "ts-node": "^9.0.0", - "typescript": "3.9.5" + "typescript": "^4.1.5" }, "husky": { "hooks": { diff --git a/test/navigation.spec.ts b/test/navigation.spec.ts index ccf4f5dc6b128..b8ff839e0682c 100644 --- a/test/navigation.spec.ts +++ b/test/navigation.spec.ts @@ -613,7 +613,7 @@ describe('navigation', function () { server.PREFIX + '/frames/one-frame.html' ); const frame = await utils.waitEvent(page, 'frameattached'); - await new Promise((fulfill) => { + await new Promise((fulfill) => { page.on('framenavigated', (f) => { if (f === frame) fulfill(); });