From 1770b94ed3f05cdd5543129e0c568408411df078 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:01:20 +0000 Subject: [PATCH] Update dependency typescript to v5.8.2 (#29417) * Update dependency typescript to v5.8.2 * Fix types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 2 +- src/utils/location/locationEventGeoUri.ts | 2 +- .../views/settings/tabs/user/SessionManagerTab-test.tsx | 1 + test/unit-tests/utils/oidc/authorize-test.ts | 1 + yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 6f9e810cc9..0ec4002e84 100644 --- a/package.json +++ b/package.json @@ -290,7 +290,7 @@ "terser-webpack-plugin": "^5.3.9", "testcontainers": "^10.16.0", "ts-node": "^10.9.1", - "typescript": "5.7.3", + "typescript": "5.8.2", "util": "^0.12.5", "web-streams-polyfill": "^4.0.0", "webpack": "^5.89.0", diff --git a/src/utils/location/locationEventGeoUri.ts b/src/utils/location/locationEventGeoUri.ts index 54b463da3c..7648120102 100644 --- a/src/utils/location/locationEventGeoUri.ts +++ b/src/utils/location/locationEventGeoUri.ts @@ -18,5 +18,5 @@ export const locationEventGeoUri = (mxEvent: MatrixEvent): string => { // https://github.com/matrix-org/matrix-doc/issues/3516 const content = mxEvent.getContent(); const loc = M_LOCATION.findIn(content) as { uri?: string }; - return loc ? loc.uri : content["geo_uri"]; + return loc?.uri ?? content["geo_uri"]; }; diff --git a/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx b/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx index 625aafe731..171fa4b827 100644 --- a/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx +++ b/test/unit-tests/components/views/settings/tabs/user/SessionManagerTab-test.tsx @@ -263,6 +263,7 @@ describe("", () => { }); afterAll(() => { + // @ts-expect-error window.location = realWindowLocation; }); diff --git a/test/unit-tests/utils/oidc/authorize-test.ts b/test/unit-tests/utils/oidc/authorize-test.ts index cade0c42ca..3ccc77e633 100644 --- a/test/unit-tests/utils/oidc/authorize-test.ts +++ b/test/unit-tests/utils/oidc/authorize-test.ts @@ -65,6 +65,7 @@ describe("OIDC authorization", () => { }); afterAll(() => { + // @ts-expect-error window.location = realWindowLocation; }); diff --git a/yarn.lock b/yarn.lock index 5a848238f6..a3679463b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12231,10 +12231,10 @@ typed-array-length@^1.0.7: possible-typed-array-names "^1.0.0" reflect.getprototypeof "^1.0.6" -typescript@5.7.3: - version "5.7.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e" - integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw== +typescript@5.8.2: + version "5.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4" + integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ== ua-parser-js@^1.0.2: version "1.0.40"