Skip to content

fix(sfu): build against mediasoup 3.20 type API#26

Merged
billyribeiro-ux merged 1 commit into
mainfrom
claude/update-dependencies-stack-docs-nffxp
Jun 9, 2026
Merged

fix(sfu): build against mediasoup 3.20 type API#26
billyribeiro-ux merged 1 commit into
mainfrom
claude/update-dependencies-stack-docs-nffxp

Conversation

@billyribeiro-ux

Copy link
Copy Markdown
Owner

Summary

The new smoke-test workflow did its job on the first run — it caught that the SFU does not compile against the mediasoup version bumped in the Jun-2026 dependency update. npm install (native build) succeeded on the runner; the tsc step failed with 4 type errors.

mediasoup ^3.20.2 breaking changes, now fixed:

  • SctpCapabilities removed from the public types → dropped the import and the param type.
  • numSctpStreams removed from WebRtcTransportOptionscreateTransport now takes a plain enableSctp boolean (derived from whether the client advertised SCTP capabilities); the transport just sets enableSctp.
  • DtlsParameters.role is now optional (string | undefined) → made the WHIP SDP helper's role param optional to match (it already falls back to actpass).

Verified locally with npm run buildtsc exit 0.

This unblocks the smoke-test workflow, which will now proceed past the SFU build to actually boot Redis + coturn + SFU and run the health/auth/port assertions.

https://claude.ai/code/session_01AMiTSxG8rB8FU8QgJ3Fnhs


Generated by Claude Code

The Jun-2026 dependency bump moved the SFU to mediasoup ^3.20.2, whose type
surface changed and broke `tsc` (caught by the new smoke-test workflow):

- `SctpCapabilities` is no longer exported — drop the import and the param type.
- `WebRtcTransportOptions` dropped `numSctpStreams`; a transport now just sets
  `enableSctp`. createTransport takes a plain `enableSctp` boolean (derived from
  whether the client advertised SCTP capabilities).
- `DtlsParameters.role` is now optional (string | undefined); make the WHIP SDP
  helper's role param optional to match (it already falls back to 'actpass').

Verified locally with `npm run build` (tsc exit 0).

https://claude.ai/code/session_01AMiTSxG8rB8FU8QgJ3Fnhs
@billyribeiro-ux billyribeiro-ux merged commit 433494e into main Jun 9, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants