Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit c3809d3

Browse files
Update all non-major dependencies (#9674)
* Typescript updates * Update @types/node * Fix more types * Update all non-major dependencies * Remove spurious cast * Remove unused dependency rrweb-snapshot * Update all non-major dependencies * Iterate PR * Update yarn.lock * Remove stale dev dep * Resolve * Pin back axe-core for now, it is a bit too strict Co-authored-by: Michael Telatynski <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 851c1ef commit c3809d3

File tree

5 files changed

+161
-177
lines changed

5 files changed

+161
-177
lines changed

.github/workflows/cypress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
path: webapp
102102

103103
- name: Run Cypress tests
104-
uses: cypress-io/github-action@v4.1.1
104+
uses: cypress-io/github-action@v4.2.2
105105
with:
106106
# The built-in Electron runner seems to grind to a halt trying
107107
# to run the tests, so use chrome.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"blurhash": "^1.1.3",
6767
"cheerio": "^1.0.0-rc.9",
6868
"classnames": "^2.2.6",
69-
"commonmark": "^0.29.3",
69+
"commonmark": "^0.30.0",
7070
"counterpart": "^0.18.6",
7171
"diff-dom": "^4.2.2",
7272
"diff-match-patch": "^1.0.5",
@@ -84,7 +84,7 @@
8484
"html-entities": "^2.0.0",
8585
"is-ip": "^3.1.0",
8686
"jszip": "^3.7.0",
87-
"katex": "^0.12.0",
87+
"katex": "^0.16.0",
8888
"linkify-element": "4.0.0-beta.4",
8989
"linkify-string": "4.0.0-beta.4",
9090
"linkifyjs": "4.0.0-beta.4",
@@ -99,12 +99,12 @@
9999
"pako": "^2.0.3",
100100
"parse5": "^6.0.1",
101101
"png-chunks-extract": "^1.0.0",
102-
"posthog-js": "1.12.2",
103-
"qrcode": "1.4.4",
102+
"posthog-js": "1.36.0",
103+
"qrcode": "1.5.1",
104104
"re-resizable": "^6.9.0",
105105
"react": "17.0.2",
106106
"react-beautiful-dnd": "^13.1.0",
107-
"react-blurhash": "^0.1.3",
107+
"react-blurhash": "^0.2.0",
108108
"react-dom": "17.0.2",
109109
"react-focus-lock": "^2.5.1",
110110
"react-transition-group": "^4.4.1",
@@ -138,7 +138,6 @@
138138
"@peculiar/webcrypto": "^1.4.1",
139139
"@percy/cli": "^1.11.0",
140140
"@percy/cypress": "^3.1.2",
141-
"@sentry/types": "^7.0.0",
142141
"@sinonjs/fake-timers": "^9.1.2",
143142
"@testing-library/jest-dom": "^5.16.5",
144143
"@testing-library/react": "^12.1.5",
@@ -172,7 +171,7 @@
172171
"@types/zxcvbn": "^4.4.0",
173172
"@typescript-eslint/eslint-plugin": "^5.35.1",
174173
"@typescript-eslint/parser": "^5.6.0",
175-
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
174+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
176175
"allchange": "^1.1.0",
177176
"axe-core": "4.4.3",
178177
"babel-jest": "^29.0.0",
@@ -183,12 +182,12 @@
183182
"cypress-real-events": "^1.7.1",
184183
"enzyme": "^3.11.0",
185184
"enzyme-to-json": "^3.6.2",
186-
"eslint": "8.9.0",
185+
"eslint": "8.28.0",
187186
"eslint-config-google": "^0.14.0",
188187
"eslint-plugin-deprecate": "^0.7.0",
189188
"eslint-plugin-import": "^2.25.4",
190189
"eslint-plugin-jsx-a11y": "^6.5.1",
191-
"eslint-plugin-matrix-org": "^0.7.0",
190+
"eslint-plugin-matrix-org": "0.7.0",
192191
"eslint-plugin-react": "^7.28.0",
193192
"eslint-plugin-react-hooks": "^4.3.0",
194193
"eslint-plugin-unicorn": "^45.0.0",
@@ -207,7 +206,6 @@
207206
"raw-loader": "^4.0.2",
208207
"react-test-renderer": "^17.0.2",
209208
"rimraf": "^3.0.2",
210-
"rrweb-snapshot": "1.1.7",
211209
"stylelint": "^14.9.1",
212210
"stylelint-config-standard": "^29.0.0",
213211
"stylelint-scss": "^4.2.0",

src/PosthogAnalytics.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import posthog, { PostHog } from 'posthog-js';
17+
import posthog, { PostHog, Properties } from 'posthog-js';
1818
import { MatrixClient } from "matrix-js-sdk/src/client";
1919
import { logger } from "matrix-js-sdk/src/logger";
2020
import { UserProperties } from "@matrix-org/analytics-events/types/typescript/UserProperties";
@@ -196,7 +196,7 @@ export class PosthogAnalytics {
196196
// we persist the last `$screen_name` and send it for all events until it is replaced
197197
private lastScreen: ScreenName = "Loading";
198198

199-
private sanitizeProperties = (properties: posthog.Properties, eventName: string): posthog.Properties => {
199+
private sanitizeProperties = (properties: Properties, eventName: string): Properties => {
200200
// Callback from posthog to sanitize properties before sending them to the server.
201201
//
202202
// Here we sanitize posthog's built in properties which leak PII e.g. url reporting.
@@ -222,7 +222,7 @@ export class PosthogAnalytics {
222222
return properties;
223223
};
224224

225-
private registerSuperProperties(properties: posthog.Properties) {
225+
private registerSuperProperties(properties: Properties) {
226226
if (this.enabled) {
227227
this.posthog.register(properties);
228228
}
@@ -245,7 +245,7 @@ export class PosthogAnalytics {
245245
}
246246

247247
// eslint-disable-nextline no-unused-varsx
248-
private capture(eventName: string, properties: posthog.Properties, options?: IPostHogEventOptions) {
248+
private capture(eventName: string, properties: Properties, options?: IPostHogEventOptions) {
249249
if (!this.enabled) {
250250
return;
251251
}

src/audio/PlaybackClock.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@ export class PlaybackClock implements IDestroyable {
124124
}
125125

126126
if (!this.timerId) {
127-
// cast to number because the types are wrong
128-
// 100ms interval to make sure the time is as accurate as possible without
129-
// being overly insane
130-
this.timerId = <number><any>window.setInterval(this.checkTime, 100);
127+
// 100ms interval to make sure the time is as accurate as possible without being overly insane
128+
this.timerId = window.setInterval(this.checkTime, 100);
131129
}
132130
}
133131

0 commit comments

Comments
 (0)