From 43200bb1008d3295ab6f977b5a00a2e4d5a8098a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:45:40 +0200 Subject: [PATCH] Bump typescript from 5.0.4 to 5.1.3 (#13349) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Birchler --- package-lock.json | 10 +++++----- package.json | 2 +- packages/animation/src/components/provider.tsx | 4 +++- packages/date/tsconfig.json | 1 + packages/media/tsconfig.json | 1 + packages/moveable/tsconfig.json | 1 + packages/patterns/tsconfig.json | 1 + packages/rich-text/tsconfig.json | 1 + packages/story-editor/tsconfig.json | 1 + packages/tracking/tsconfig.json | 1 + packages/url/tsconfig.json | 1 + tsconfig.shared.json | 2 +- 12 files changed, 18 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 91941bd25f5a..8ead8596ae22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -153,7 +153,7 @@ "stylelint-prettier": "^3.0.0", "stylis-plugin-rtl": "^1.0.0", "terser-webpack-plugin": "^5.3.7", - "typescript": "^5.0.4", + "typescript": "^5.1.3", "webpack": "^5.84.1", "webpack-bundle-analyzer": "^4.8.0", "webpack-cli": "^5.1.1", @@ -39669,16 +39669,16 @@ } }, "node_modules/typescript": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", - "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", "devOptional": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=12.20" + "node": ">=14.17" } }, "node_modules/ua-parser-js": { diff --git a/package.json b/package.json index 55b27048a583..0ed649609b66 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "stylelint-prettier": "^3.0.0", "stylis-plugin-rtl": "^1.0.0", "terser-webpack-plugin": "^5.3.7", - "typescript": "^5.0.4", + "typescript": "^5.1.3", "webpack": "^5.84.1", "webpack-bundle-analyzer": "^4.8.0", "webpack-cli": "^5.1.1", diff --git a/packages/animation/src/components/provider.tsx b/packages/animation/src/components/provider.tsx index 411b1ec84385..ef2efb1889a4 100644 --- a/packages/animation/src/components/provider.tsx +++ b/packages/animation/src/components/provider.tsx @@ -228,7 +228,9 @@ function Provider({ // Note that we could use `getComputedTiming` above instead, but the typings // in @types/web-animations-js aren't completely correct for that return. const actualDuration = typeof duration === 'string' ? 0 : duration; - const animationEndTime = delay + actualDuration; + // TODO: Address case where duration can be of type CSSNumericValue. + + const animationEndTime = delay + (actualDuration as number); animation.currentTime = time === 'end' ? animationEndTime diff --git a/packages/date/tsconfig.json b/packages/date/tsconfig.json index 11a87b502315..270f9416a987 100644 --- a/packages/date/tsconfig.json +++ b/packages/date/tsconfig.json @@ -5,5 +5,6 @@ "declarationDir": "dist-types" }, "references": [{ "path": "../i18n" }], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/media/tsconfig.json b/packages/media/tsconfig.json index 0f6335580e4e..586c25f17644 100644 --- a/packages/media/tsconfig.json +++ b/packages/media/tsconfig.json @@ -9,5 +9,6 @@ { "path": "../tracking" }, { "path": "../units" } ], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/moveable/tsconfig.json b/packages/moveable/tsconfig.json index 409e9ab59df8..d4b5dc0d0773 100644 --- a/packages/moveable/tsconfig.json +++ b/packages/moveable/tsconfig.json @@ -5,5 +5,6 @@ "declarationDir": "dist-types" }, "references": [{ "path": "../react" }], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/patterns/tsconfig.json b/packages/patterns/tsconfig.json index 11a87b502315..270f9416a987 100644 --- a/packages/patterns/tsconfig.json +++ b/packages/patterns/tsconfig.json @@ -5,5 +5,6 @@ "declarationDir": "dist-types" }, "references": [{ "path": "../i18n" }], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/rich-text/tsconfig.json b/packages/rich-text/tsconfig.json index 5c12f003848c..d055c2fe89a5 100644 --- a/packages/rich-text/tsconfig.json +++ b/packages/rich-text/tsconfig.json @@ -5,5 +5,6 @@ "declarationDir": "dist-types" }, "references": [{ "path": "../patterns" }], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/story-editor/tsconfig.json b/packages/story-editor/tsconfig.json index ea9674316183..8df5fd9d92a1 100644 --- a/packages/story-editor/tsconfig.json +++ b/packages/story-editor/tsconfig.json @@ -21,6 +21,7 @@ { "path": "../templates" }, { "path": "../tracking" } ], + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": [ "src/**/test/**/*.ts", "src/**/test/**/*.tsx", diff --git a/packages/tracking/tsconfig.json b/packages/tracking/tsconfig.json index c9d87fc4143c..e1640636e1b9 100644 --- a/packages/tracking/tsconfig.json +++ b/packages/tracking/tsconfig.json @@ -4,5 +4,6 @@ "rootDir": "src", "declarationDir": "dist-types" }, + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/packages/url/tsconfig.json b/packages/url/tsconfig.json index c9d87fc4143c..e1640636e1b9 100644 --- a/packages/url/tsconfig.json +++ b/packages/url/tsconfig.json @@ -4,5 +4,6 @@ "rootDir": "src", "declarationDir": "dist-types" }, + "files": ["../../node_modules/jest-extended/types/index.d.ts"], "include": ["src/**/*"] } diff --git a/tsconfig.shared.json b/tsconfig.shared.json index 2fb586594e1f..60444d3310c7 100644 --- a/tsconfig.shared.json +++ b/tsconfig.shared.json @@ -27,7 +27,7 @@ "pretty": true, "sourceMap": true, "typeRoots": ["./typings", "./node_modules/@types"], - "types": ["jest", "jest-extended", "node"] + "types": ["jest", "node"] }, "exclude": [ "packages/*/dist-*/**",