Skip to content

build(deps): bump uuid and matrix-js-sdk#683

Open
dependabot[bot] wants to merge 4 commits into
developfrom
dependabot-npm_and_yarn-multi-5c230cad76
Open

build(deps): bump uuid and matrix-js-sdk#683
dependabot[bot] wants to merge 4 commits into
developfrom
dependabot-npm_and_yarn-multi-5c230cad76

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 23, 2026

Removes uuid. It's no longer used after updating ancestor dependency matrix-js-sdk. These dependencies need to be updated together.

Removes uuid

Updates matrix-js-sdk from 24.1.0 to 41.6.0

Release notes

Sourced from matrix-js-sdk's releases.

v41.6.0

🐛 Bug Fixes

  • Throw sane error on completeLoginOnNewDevice IdP rejection (#5321). Contributed by @​t3chguy.

v41.6.0-rc.0

🐛 Bug Fixes

  • Throw sane error on completeLoginOnNewDevice IdP rejection (#5321). Contributed by @​t3chguy.

v41.5.0

✨ Features

v41.5.0-rc.0

✨ Features

v41.4.0

✨ Features

  • Handle secret pushing for key backups (#5189). Contributed by @​uhoreg.
  • Add support for m.recent_emoji account data event (#5280). Contributed by @​t3chguy.
  • Adapt LiveKit Identity hash calculation to latest MSC4195 update (#5268). Contributed by @​fkwp.
  • Support the stable prefix for MSC4287 (key backup preference) (#5258). Contributed by @​andybalaam.
  • Handle response_mode=fragment in completeAuthorizationCodeGrant (#5266). Contributed by @​t3chguy.
  • Allow generating OIDC URIs with response_mode=fragment (#5265). Contributed by @​t3chguy.
  • Expose UserVerificationStatus.known flag (#5255). Contributed by @​richvdh.

🐛 Bug Fixes

v41.4.0-rc.0

✨ Features

  • Handle secret pushing for key backups (#5189). Contributed by @​uhoreg.
  • Add support for m.recent_emoji account data event (#5280). Contributed by @​t3chguy.

... (truncated)

Changelog

Sourced from matrix-js-sdk's changelog.

Changes in 41.6.0 (2026-05-26)

🐛 Bug Fixes

  • Throw sane error on completeLoginOnNewDevice IdP rejection (#5321). Contributed by @​t3chguy.

Changes in 41.5.0 (2026-05-12)

✨ Features

Changes in 41.4.0 (2026-04-28)

✨ Features

  • Handle secret pushing for key backups (#5189). Contributed by @​uhoreg.
  • Add support for m.recent_emoji account data event (#5280). Contributed by @​t3chguy.
  • Adapt LiveKit Identity hash calculation to latest MSC4195 update (#5268). Contributed by @​fkwp.
  • Support the stable prefix for MSC4287 (key backup preference) (#5258). Contributed by @​andybalaam.
  • Handle response_mode=fragment in completeAuthorizationCodeGrant (#5266). Contributed by @​t3chguy.
  • Allow generating OIDC URIs with response_mode=fragment (#5265). Contributed by @​t3chguy.
  • Expose UserVerificationStatus.known flag (#5255). Contributed by @​richvdh.

🐛 Bug Fixes

Changes in 41.3.0 (2026-04-07)

🐛 Bug Fixes

  • Rotate the current room key when we see a member leave (#5231). Contributed by @​kaylendog.

Changes in 41.2.0 (2026-03-24)

✨ Features

  • Only share history if room history visibility is shared (#5216). Contributed by @​kaylendog.
  • History sharing: resume key-bundle import on restart (#5214). Contributed by @​richvdh.
  • Move CryptoApi.shareRoomHistoryWithUser to CryptoBackend (#5218). Contributed by @​richvdh.

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for matrix-js-sdk since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 23, 2026
@github-actions github-actions Bot enabled auto-merge May 23, 2026 13:44
Removes [uuid](https://github.com/uuidjs/uuid). It's no longer used after updating ancestor dependency [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk). These dependencies need to be updated together.


Removes `uuid`

Updates `matrix-js-sdk` from 24.1.0 to 41.6.0
- [Release notes](https://github.com/matrix-org/matrix-js-sdk/releases)
- [Changelog](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CHANGELOG.md)
- [Commits](matrix-org/matrix-js-sdk@v24.1.0...v41.6.0)

---
updated-dependencies:
- dependency-name: matrix-js-sdk
  dependency-version: 41.6.0-rc.0
  dependency-type: direct:production
- dependency-name: uuid
  dependency-version:
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot-npm_and_yarn-multi-5c230cad76 branch from f9c1fcf to c584bcb Compare May 27, 2026 22:16
@yoganandaness
Copy link
Copy Markdown
Contributor

@copilot make sure all the checks passes. Analyse the failed checks and fix them

- tsconfig.json: add es2021 to lib for AggregateError (fixes TS2304)
- SynapseService.ts: replace static ESM import with lazy dynamic import()
  using private getMatrix()/getClient() methods; define local IMatrixClient
  interface to avoid import type TS1541/TS1542 errors with module:Node16
- SynapseService.spec.ts: replace jest.requireActual with explicit mock
  values (fixes ESM load failure); add Method/Visibility/EventType/MsgType
  enum values to mock
- jest.unit.config.js: set module:CommonJS + moduleResolution:node for
  ts-jest so dynamic import() compiles as require() that Jest can mock
auto-merge was automatically disabled May 29, 2026 09:08

Head branch was pushed to by a user without write access

- Replace `sdkCache: any` with typed `IMatrixSdk` interface
- Remove redundant `!` non-null assertion from `getClient()`
- Remove unnecessary `as any` cast on `sendEvent` content arg
Copy link
Copy Markdown
Contributor

Copilot AI commented May 29, 2026

@copilot make sure all the checks passes. Analyse the failed checks and fix them

All checks are now fixed. Here's a summary of what was done:

  • tsconfig.json: Added es2021 to lib to resolve AggregateError TS2304 errors from matrix-js-sdk's type definitions.
  • SynapseService.ts: Replaced the static import (incompatible with CJS+ESM-only SDK) with lazy await import('matrix-js-sdk') via private getMatrix()/getClient() helpers. Added a local IMatrixSdk interface to keep type safety without needing import type (which raised TS1541 under module: Node16).
  • SynapseService.spec.ts: Removed static SDK import and replaced jest.requireActual (which would load real ESM at test time) with an explicit mock factory that includes the enum values (Method, Visibility, EventType, MsgType) needed by the service.
  • jest.unit.config.js: Added module: CommonJS + moduleResolution: node to the ts-jest tsconfig override so that await import('matrix-js-sdk') compiles to a require() call that Jest can intercept for mocking.

All 161 tests pass and lint is clean.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the connector’s Matrix/Synapse integration to work with matrix-js-sdk@41.6.0 and removes reliance on the SDK’s exported TS types by switching to a minimal local interface + lazy SDK import.

Changes:

  • Bump matrix-js-sdk from 24.1.0 to 41.6.0 (and corresponding lockfile updates; uuid removed as a transitive dependency).
  • Refactor SynapseService to dynamically import matrix-js-sdk and use locally-defined minimal client/SDK interfaces.
  • Adjust Jest setup/mocks and TS/Jest compilation settings (adds es2021 lib; ts-jest module settings).

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Adds es2021 to the TS lib set.
src/services/synapse/SynapseService.ts Switches to lazy-loading matrix-js-sdk and replaces SDK type imports with minimal local interfaces.
src/services/synapse/SynapseService.spec.ts Updates matrix-js-sdk mocking to match the new dynamic-import usage and exported constants.
jest.unit.config.js Overrides ts-jest module settings to CommonJS/node resolution for tests.
package.json Bumps matrix-js-sdk to 41.6.0.
package-lock.json Lockfile refresh for the new matrix-js-sdk dependency tree (including crypto wasm, retry stack changes, removal of transitive uuid).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

private clientCache: IMatrixClient | undefined;

constructor() {
if (!serverUrl) throw new Error('SYNAPSE_SERVER_NAME is not set');
Comment thread package.json
"kafkajs": "^2.2.4",
"knex": "^3.2.4",
"matrix-js-sdk": "24.1.0",
"matrix-js-sdk": "41.6.0",
@yoganandaness yoganandaness requested a review from Junjiequan May 29, 2026 10:08
@yoganandaness yoganandaness disabled auto-merge May 29, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants