From 3c5d22c5600fd3dd4a8a632b2882e580e647a83f Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2020 05:22:37 +0000 Subject: Bump typescript from 3.9.7 to 4.0.3 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.7 to 4.0.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.7...v4.0.3) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a5d9389..c31744f 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "ts-loader": "^8.0.2", "ts-node": "^9.0.0", "tsyringe": "4.3.0", - "typescript": "3.9.7", + "typescript": "4.0.3", "web-ext-types": "^3.2.1", "webextensions-api-fake": "^0.9.1", "webpack": "4.44.1", diff --git a/yarn.lock b/yarn.lock index cdecbc1..d0c4125 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6827,7 +6827,12 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.9.7, typescript@^3.9.3: +typescript@4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5" + integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg== + +typescript@^3.9.3: version "3.9.7" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== -- cgit v1.2.3 From d555c64e5ce12d716925786d914510415c19a0db Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 22 Sep 2020 13:00:04 +0900 Subject: Use destructuring-assignment instead of delete operator Operands for delete must be optional on TypeScript 4.0. When using the delete operator in strictNullChecks, the operand must now be any, unknown, never, or be optional (in that it contains undefined in the type). Otherwise, use of the delete operator is an error. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#operands-for-delete-must-be-optional --- src/shared/SettingData.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shared/SettingData.ts b/src/shared/SettingData.ts index a7bdf80..0d72874 100644 --- a/src/shared/SettingData.ts +++ b/src/shared/SettingData.ts @@ -51,10 +51,9 @@ export class FormKeymaps { const data: { [op: string]: string } = {}; for (const key of Object.keys(json)) { const op = json[key]; - const args = { ...op }; - delete args.type; + const { type, ...args } = op; - let name = op.type; + let name = type; if (Object.keys(args).length > 0) { name += "?" + JSON.stringify(args); } -- cgit v1.2.3