matrix-js-sdk breaking changes
Updated December 4, 2026
On this page
Latest version 45.2.0, released November 24, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 44.0.0 to 45.2.0: 23 breaking changes in 3 versions.
- From 39.0.0 to 45.2.0: 161 breaking changes in 24 versions.
matrix-js-sdk 45.2.0 breaking changes
- Signature changed
EventTimelineSet.insertEventIntoTimeline
Was insertEventIntoTimeline(event: MatrixEvent, timeline: EventTimeline, roomState: RoomState, addToState: boolean): void; now insertEventIntoTimeline(event: MatrixEvent, timeline: EventTimeline, roomState: RoomState, addToState: boolean... npmjs.com - Signature changed
IPublicRoomsChunkRoom.join_rule
Was join_rule?: JoinRule.Knock | JoinRule.Public; now join_rule?: JoinRule.Knock | JoinRule.KnockRestricted | JoinRule.Public. npmjs.com - Signature changed
Thread.insertEventIntoTimeline
Was insertEventIntoTimeline(event: MatrixEvent): void; now insertEventIntoTimeline(event: MatrixEvent, liveEvent?: boolean): void. npmjs.com
matrix-js-sdk 45.1.0 breaking changes
- Behavior changed
Key material for MatrixRTC encryption is now 32 bytes. Code that depends on the previous key length or format may need to be updated. github.com - Behavior changed
Sticky durations that are zero or negative are now rejected. Code that passes such values must be changed to pass a positive number. github.com - Signature changed
MatrixClient._unstable_sendDelayedStateEvent
Was _unstable_sendDelayedStateEvent<K extends keyof StateEvents>(roomId: string, delayMsOrOpts: number | SendDelayedEventRequestOpts, eventType: K, content: StateEvents[K], stateKey?: string, opts?: IRequestOpts)... npmjs.com - Signature changed
StickyMatrixEvent
Was type StickyMatrixEvent = MatrixEvent & {unstableStickyExpiresAt: number;}; now type StickyMatrixEvent = MatrixEvent & {unstableStickyExpiresAt: number; unstableStickyIntendedExpiresAt: number;}. npmjs.com
matrix-js-sdk 45.0.0 breaking changes
- Removed
Parent delay IDs were removed; code that relies on them must stop using them. github.com - Signature changed
Request types for the LiveKit endpoints changed to use member_id, so code building these requests must be updated. github.com - Signature changed
MatrixClient._unstable_sendDelayedEvent
Was _unstable_sendDelayedEvent<K extends keyof TimelineEvents>(roomId: string, delayOpts: SendDelayedEventRequestOpts, threadId: string | null, eventType: K, content: TimelineEvents[K], txnId?: string): Promise<SendDelayedEventResponse>... npmjs.com - Signature changed
MatrixClient._unstable_sendDelayedStateEvent
Was _unstable_sendDelayedStateEvent<K extends keyof StateEvents>(roomId: string, delayOpts: SendDelayedEventRequestOpts, eventType: K, content: StateEvents[K], stateKey?: string, opts?: IRequestOpts): Promise<SendDelayedEventResponse>; now... npmjs.com - Signature changed
MatrixClient._unstable_sendStickyDelayedEvent
Was _unstable_sendStickyDelayedEvent<K extends keyof TimelineEvents>(roomId: string, stickDuration: number, delayOpts: SendDelayedEventRequestOpts, threadId: string | null, eventType: K, content: TimelineEvents[K] & {msc4354_sticky_key?... npmjs.com - Signature changed
MatrixClient.encryptAndSendEvent
Was protected encryptAndSendEvent(room: Room | null, event: MatrixEvent, delayOpts: SendDelayedEventRequestOpts, queryDict?: QueryDict): Promise<ISendEventResponse>; now protected encryptAndSendEvent(room: Room | null, event: MatrixEvent... npmjs.com - Signature changed
MatrixClient.sendCompleteEvent
Was protected sendCompleteEvent(params: {roomId: string; threadId: string | null; eventObject: Partial<IEvent>; delayOpts: SendDelayedEventRequestOpts; queryDict?: QueryDict; txnId?: string;}): Promise<SendDelayedEventResponse> protected... npmjs.com - Signature changed
MatrixRTCSession.slotId
The type of MatrixRTCSession.slotId is stricter, which may break typed code that assigns looser values. github.com - Signature changed
OAuth2.constructor
Was constructor(metadata: ValidatedAuthMetadata, context: Context, logger?: Logger); now constructor(metadata: ValidatedAuthMetadata, context: Context, logger?: Logger, httpOptions?: OAuth2HttpOptions). npmjs.com - Signature changed
OAuth2.performRefreshTokenGrant
Was performRefreshTokenGrant(refreshToken: string): Promise<BearerTokenResponse>; now performRefreshTokenGrant(refreshToken: string, opts?: OAuth2RequestOptions): Promise<BearerTokenResponse>. npmjs.com
And 6 more in this version. Sign up to see every change
matrix-js-sdk 44.0.0 breaking changes
- Removed
The separate LiveKit transports and transport configs distinction is removed, so code relying on it will break. github.com - Removed
Selecting an RTC transport by the "oldest membership" method is no longer supported. github.com - Removed
The deprecated MatrixRTC APIs are removed in this release, so code that still calls them will break. github.com - Signature changed
EventTimelineSet.addEventToTimeline
Was addEventToTimeline(event: MatrixEvent, timeline: EventTimeline, {toStartOfTimeline, fromCache, roomState, timelineWasEmpty, addToState}: IAddEventToTimelineOptions): void; now addEventToTimeline(event: MatrixEvent, timeline... npmjs.com - Signature changed
EventTimelineSet.canContain
Was canContain(event: MatrixEvent): boolean; now canContain(event: MatrixEvent, batch?: MatrixEvent[]): boolean. npmjs.com
matrix-js-sdk 43.0.0 breaking changes
- Removed
ICreateClientOpts.tokenRefreshFunction
ICreateClientOpts.tokenRefreshFunction was removed in matrix-js-sdk 43.0.0 npmjs.com - Removed
IHttpOpts.tokenRefreshFunction
IHttpOpts.tokenRefreshFunction was removed in matrix-js-sdk 43.0.0 npmjs.com - Removed
TokenRefresher
TokenRefresher was removed in matrix-js-sdk 43.0.0 npmjs.com - Removed
TokenRefreshFunction
TokenRefreshFunction was removed in matrix-js-sdk 43.0.0 npmjs.com - Behavior changed
The release lists a breaking change that brings OAuth token refresh into the js-sdk, but the notes do not say which calls change or what users must do. github.com - Signature changed
MatrixClient.sendRtcDecline
Was sendRtcDecline(roomId: string, notificationEventId: string): Promise<ISendEventResponse>; now sendRtcDecline(roomId: string, notificationEventId: string, stickyDurationMs?: number): Promise<ISendEventResponse>. npmjs.com - Signature changed
OAuth2.completeAuthorizationCodeGrant
Was completeAuthorizationCodeGrant(code: string): Promise<BearerTokenResponse>; now completeAuthorizationCodeGrant(code: string, redirectUri: string): Promise<BearerTokenResponse>. npmjs.com - Signature changed
OAuth2.generateAuthorizationCodeGrantUrl
Was generateAuthorizationCodeGrantUrl(state: string, responseMode?: "fragment" | "query", prompt?: string, scope?: string): Promise<string>; now generateAuthorizationCodeGrantUrl(state: string, redirectUri: string, responseMode?... npmjs.com - Signature changed
RoomSummary
Was interface RoomSummary extends Omit<IPublicRoomsChunkRoom, "canonical_alias" | "aliases">; now interface RoomSummary extends Omit<IPublicRoomsChunkRoom, "canonical_alias" | "aliases" | "join_rule">. npmjs.com - Signature changed
RoomSummary.join_rule
Was join_rule?: JoinRule.Knock | JoinRule.Public; now "join_rule"?: JoinRule. npmjs.com
And 2 more in this version. Sign up to see every change
matrix-js-sdk 42.4.0 breaking changes
- Signature changed
MatrixClient.initRustCrypto
Was initRustCrypto(args?: {useIndexedDB?: boolean; cryptoDatabasePrefix?: string; storageKey?: Uint8Array; storagePassword?: string; caCertsPem?: string;}): Promise<void>; now initRustCrypto(args?: {useIndexedDB?: boolean... npmjs.com - Signature changed
MatrixClient.members
Was members(roomId: string, includeMembership?: string, excludeMembership?: string, atEventId?: string): Promise<{[userId: string]: IStateEventWithRoomId[];}>; now members(roomId: string, includeMembership?: string, excludeMembership?... npmjs.com - Signature changed
OAuth2.constructor
Was constructor(metadata: ValidatedAuthMetadata, context: Context); now constructor(metadata: ValidatedAuthMetadata, context: Context, logger?: Logger). npmjs.com - Signature changed
OAuth2.registerClient
Was static registerClient(authMetadata: ValidatedAuthMetadata, clientMetadata: OAuthRegistrationRequest): Promise<string>; now static registerClient(authMetadata: ValidatedAuthMetadata, clientMetadata: OAuthRegistrationRequest, logger?... npmjs.com - Signature changed
startDeviceAuthorization
Was const startDeviceAuthorization: ({clientId, scope, metadata}: {clientId: string; scope: string; metadata: ValidatedAuthMetadata;}) => Promise<DeviceAuthorizationResponse>; now const startDeviceAuthorization: ({clientId, scope... npmjs.com - Signature changed
waitForDeviceAuthorization
Was const waitForDeviceAuthorization: ({session, metadata, clientId}: {session: DeviceAuthorizationResponse; metadata: ValidatedAuthMetadata; clientId: string;}) => Promise<DeviceAccessTokenResponse | DeviceAccessTokenError>; now const... npmjs.com
Older versions
19 older versions, each with its first changes. Sign up to see every change
Show 19 older versions
matrix-js-sdk 42.3.0 breaking changes
- Signature changed
DeviceAccessTokenError
Was interface DeviceAccessTokenError; now interface DeviceAccessTokenError extends OAuth2ErrorResponse. npmjs.com
matrix-js-sdk 42.2.0 breaking changes
- Signature changed
ClientEventHandlerMap
Was type ClientEventHandlerMap = {[ClientEvent.Sync]: (state: SyncState, prevState: SyncState | null, data?: ISyncStateData) => void; [ClientEvent.Event]: (event: MatrixEvent) => void; [ClientEvent.ToDeviceEvent]: (event: MatrixEvent) =>... npmjs.com - Signature changed
MatrixClient.initRustCrypto
Was initRustCrypto(args?: {useIndexedDB?: boolean; cryptoDatabasePrefix?: string; storageKey?: Uint8Array; storagePassword?: string;}): Promise<void>; now initRustCrypto(args?: {useIndexedDB?: boolean; cryptoDatabasePrefix?: string... npmjs.com
matrix-js-sdk 42.1.0 breaking changes
- Removed
Support for MSC3391 and MSC3852 is removed in this release, so code relying on them will no longer work. github.com - Removed
IMyDevice.last_seen_user_agent
IMyDevice.last_seen_user_agent was removed in matrix-js-sdk 42.1.0 npmjs.com
And 8 more in this version.
matrix-js-sdk 42.1.0-rc.0 breaking changes
- Removed
Support for MSC3391 and MSC3852 is removed in this pre-release, so code relying on them will no longer work. github.com
matrix-js-sdk 42.0.0 breaking changes
- Removed
AuthorizationParams
AuthorizationParams was removed in matrix-js-sdk 42.0.0 npmjs.com - Removed
BearerTokenResponse.expires_at
BearerTokenResponse.expires_at was removed in matrix-js-sdk 42.0.0 npmjs.com
And 35 more in this version.
matrix-js-sdk 41.9.0 breaking changes
- Signature changed
anySignal
Was function anySignal(signals: AbortSignal[]): {signal: AbortSignal; cleanup(): void;}; now function anySignal(signals: AbortSignal[]): {signal: AbortSignal; cleanup(this: void): void;}. npmjs.com - Signature changed
CrossSigningKeys
Was type CrossSigningKeys = Record<CrossSigningKeyType, CrossSigningKeyInfo>; now type CrossSigningKeys = Record<CrossSigningKey, CrossSigningKeyInfo>. npmjs.com
matrix-js-sdk 41.8.0 breaking changes
- Signature changed
ServerCapabilities
Was class ServerCapabilities; now class ServerCapabilities extends CapabilityPoller<Capabilities>. npmjs.com
matrix-js-sdk 41.5.0 breaking changes
- Default changed
Encrypted history sharing is now on by default. Code that relied on it being off must now opt out explicitly. github.com - Signature changed
ClientEventHandlerMap
Was type ClientEventHandlerMap = {[ClientEvent.Sync]: (state: SyncState, prevState: SyncState | null, data?: ISyncStateData) => void; [ClientEvent.Event]: (event: MatrixEvent) => void; [ClientEvent.ToDeviceEvent]: (event: MatrixEvent) =>... npmjs.com
And 5 more in this version.
matrix-js-sdk 41.4.0 breaking changes
- Signature changed
completeAuthorizationCodeGrant
Was const completeAuthorizationCodeGrant: (code: string, state: string) => Promise<{oidcClientSettings: {clientId: string; issuer: string;}; tokenResponse: BearerTokenResponse; homeserverUrl: string; idTokenClaims: IdTokenClaims... npmjs.com - Signature changed
generateOidcAuthorizationUrl
Was const generateOidcAuthorizationUrl: ({metadata, redirectUri, clientId, homeserverUrl, identityServerUrl, nonce, prompt, urlState, loginHint}: {clientId: string; metadata: ValidatedAuthMetadata; homeserverUrl: string... npmjs.com
matrix-js-sdk 41.2.0 breaking changes
- Removed
CryptoApi.shareRoomHistoryWithUser
The method was moved from CryptoApi to CryptoBackend, so code calling it through CryptoApi must switch to CryptoBackend. github.com - Behavior changed
Room history is now shared only if the room's history visibility is set to shared, so history sharing behaves differently for other rooms. github.com
matrix-js-sdk 41.1.0 breaking changes
- Behavior changed
getUrlPreview
getUrlPreview switches to the authenticated v1 media preview endpoint. Code that depends on the previous endpoint's behavior should be checked. github.com
matrix-js-sdk 41.0.0 breaking changes
- Behavior changed
The release lists Matrix Spec v1.13 support under breaking changes but does not name the affected APIs, so review your usage after upgrading. github.com - Signature changed
getHttpUriForMxc
Was function getHttpUriForMxc(baseUrl: string, mxc?: string, width?: number, height?: number, resizeMethod?: string, allowDirectLinks?: boolean, allowRedirects?: boolean, useAuthentication?: boolean): string; now function... npmjs.com
And 5 more in this version.
matrix-js-sdk 40.2.0 breaking changes
- Removed
ISSOFlow.delegated_oidc_compatibility
ISSOFlow.delegated_oidc_compatibility was removed in matrix-js-sdk 40.2.0 npmjs.com - Behavior changed
The SDK no longer sends the deprecated notify event and uses m.rtc.notification instead. Code that relies on the notify event must switch to m.rtc.notification. github.com
And 8 more in this version.
matrix-js-sdk 40.1.0 breaking changes
- Signature changed
SecretStorage.AddSecretStorageKeyOpts.key
Was key: Uint8Array; now key: Uint8Array<ArrayBuffer>. npmjs.com - Signature changed
SecretStorage.calculateKeyCheck
Was function calculateKeyCheck(key: Uint8Array, iv?: string): Promise<AESEncryptedSecretStoragePayload>; now function calculateKeyCheck(key: Uint8Array<ArrayBuffer>, iv?: string): Promise<AESEncryptedSecretStoragePayload>. npmjs.com
And 2 more in this version.
matrix-js-sdk 40.0.0 breaking changes
- Removed
IEventDecryptionResult.untrusted
IEventDecryptionResult.untrusted was removed in matrix-js-sdk 40.0.0 npmjs.com - Behavior changed
MatrixRTC livekit identities are now pseudonymous. Code that relies on the previous identities should be checked and updated. github.com
And 4 more in this version.
matrix-js-sdk 39.4.0 breaking changes
- Signature changed
IContextResponse.end
Was end: string; now end?: string. npmjs.com - Signature changed
IContextResponse.event
Was event: IEventWithRoomId; now event?: IEventWithRoomId. npmjs.com
And 15 more in this version.
matrix-js-sdk 39.2.0 breaking changes
- Signature changed
UnsupportedDelayedEventsEndpointError.clientEndpoint
Was clientEndpoint: "sendDelayedEvent" | "updateDelayedEvent" | "sendDelayedStateEvent" | "getDelayedEvents"; now clientEndpoint: "sendDelayedEvent" | "updateDelayedEvent" | "cancelScheduledDelayedEvent" | "restartScheduledDelayedEvent" |... npmjs.com - Signature changed
UnsupportedDelayedEventsEndpointError.constructor
Was constructor(message: string, clientEndpoint: "sendDelayedEvent" | "updateDelayedEvent" | "sendDelayedStateEvent" | "getDelayedEvents"); now constructor(message: string, clientEndpoint: "sendDelayedEvent" | "updateDelayedEvent" |... npmjs.com
matrix-js-sdk 39.1.1 breaking changes
- Removed
DelayedEventInfo.delayed_events
DelayedEventInfo.delayed_events was removed in matrix-js-sdk 39.1.1 npmjs.com - Signature changed
DelayedEventInfo
Was type DelayedEventInfo = {delayed_events: (DelayedPartialEvent & SendDelayedEventResponse & SendDelayedEventRequestOpts & {running_since: number;})[]; next_batch?: string;}; now type DelayedEventInfo = {scheduled?... npmjs.com
And 1 more in this version.
matrix-js-sdk 39.0.0 breaking changes
- Removed
ParentDelayId
ParentDelayId was removed in matrix-js-sdk 39.0.0 npmjs.com - Removed
SendActionDelayedEventRequestOpts
SendActionDelayedEventRequestOpts was removed in matrix-js-sdk 39.0.0 npmjs.com
And 7 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.