Skip to content

Commit 99f157a

Browse files
Update all non-major dependencies (#4323)
* Update all non-major dependencies * Prettier Signed-off-by: Michael Telatynski <[email protected]> * Fix types for widget API update Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <[email protected]>
1 parent f9f6d81 commit 99f157a

File tree

8 files changed

+276
-253
lines changed

8 files changed

+276
-253
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"eslint-plugin-tsdoc": "^0.3.0",
107107
"eslint-plugin-unicorn": "^54.0.0",
108108
"fake-indexeddb": "^5.0.2",
109-
"fetch-mock": "10.0.7",
109+
"fetch-mock": "10.1.0",
110110
"fetch-mock-jest": "^1.5.1",
111111
"husky": "^9.0.0",
112112
"jest": "^29.0.0",
@@ -117,7 +117,7 @@
117117
"lint-staged": "^15.0.2",
118118
"matrix-mock-request": "^2.5.0",
119119
"node-fetch": "^2.7.0",
120-
"prettier": "3.3.2",
120+
"prettier": "3.3.3",
121121
"rimraf": "^6.0.0",
122122
"ts-node": "^10.9.2",
123123
"typedoc": "^0.26.0",

spec/unit/timeline-window.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ describe("TimelineWindow", function () {
434434
});
435435

436436
function idsOf(events: Array<MatrixEvent>): Array<string> {
437-
return events.map((e) => (e ? e.getId() ?? "MISSING_ID" : "MISSING_EVENT"));
437+
return events.map((e) => (e ? (e.getId() ?? "MISSING_ID") : "MISSING_EVENT"));
438438
}
439439

440440
describe("removing events", () => {

spec/unit/webrtc/groupCall.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const mockGetStateEvents =
105105
(events: MatrixEvent[] = FAKE_STATE_EVENTS as MatrixEvent[]) =>
106106
(type: EventType, userId?: string): MatrixEvent[] | MatrixEvent | null => {
107107
if (type === EventType.GroupCallMemberPrefix) {
108-
return userId === undefined ? events : events.find((e) => e.getStateKey() === userId) ?? null;
108+
return userId === undefined ? events : (events.find((e) => e.getStateKey() === userId) ?? null);
109109
} else {
110110
const fakeEvent = { getContent: () => ({}), getTs: () => 0 } as MatrixEvent;
111111
return userId === undefined ? [fakeEvent] : fakeEvent;

src/models/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
404404
// The fallback in these cases will be to use the origin_server_ts.
405405
// For EDUs, the origin_server_ts also is not defined so we use Date.now().
406406
const age = this.getAge();
407-
this.localTimestamp = age !== undefined ? Date.now() - age : this.getTs() ?? Date.now();
407+
this.localTimestamp = age !== undefined ? Date.now() - age : (this.getTs() ?? Date.now());
408408
this.reEmitter = new TypedReEmitter(this);
409409
}
410410

src/rust-crypto/RoomEncryptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class RoomEncryptor {
143143
* @param globalBlacklistUnverifiedDevices - When `true`, it will not send encrypted messages to unverified devices
144144
*/
145145
public encryptEvent(event: MatrixEvent | null, globalBlacklistUnverifiedDevices: boolean): Promise<void> {
146-
const logger = new LogSpan(this.prefixedLogger, event ? event.getTxnId() ?? "" : "prepareForEncryption");
146+
const logger = new LogSpan(this.prefixedLogger, event ? (event.getTxnId() ?? "") : "prepareForEncryption");
147147
// Ensure order of encryption to avoid message ordering issues, as the scheduler only ensures
148148
// events order after they have been encrypted.
149149
const prom = this.currentEncryptionPromise

src/sync-accumulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export class SyncAccumulator {
504504

505505
currentData._timeline.push({
506506
event: transformedEvent,
507-
token: index === 0 ? data.timeline.prev_batch ?? null : null,
507+
token: index === 0 ? (data.timeline.prev_batch ?? null) : null,
508508
});
509509
});
510510

src/sync.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,9 @@ export class SyncApi {
14031403
if (limited) {
14041404
room.resetLiveTimeline(
14051405
joinObj.timeline.prev_batch,
1406-
this.syncOpts.canResetEntireTimeline!(room.roomId) ? null : syncEventData.oldSyncToken ?? null,
1406+
this.syncOpts.canResetEntireTimeline!(room.roomId)
1407+
? null
1408+
: (syncEventData.oldSyncToken ?? null),
14071409
);
14081410

14091411
// We have to assume any gap in any timeline is

yarn.lock

Lines changed: 266 additions & 245 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)