Skip to content

Merging in missing trunk code#1

Open
Andrew Lighterink (alighterink) wants to merge 434 commits intonetsapiens:v3from
versatica:v3
Open

Merging in missing trunk code#1
Andrew Lighterink (alighterink) wants to merge 434 commits intonetsapiens:v3from
versatica:v3

Conversation

@alighterink
Copy link
Copy Markdown
Collaborator

@alighterink Andrew Lighterink (alighterink) commented Sep 12, 2025

Summary by CodeRabbit

  • Breaking Changes

    • Large public API and type reorganization; many legacy runtime/handler surfaces removed — migration required.
  • New Features

    • TypeScript-first APIs with generics for appData/observers, richer media/type typings, async device detection, and explicit package exports.
  • CI / Tests

    • New GitHub Actions CI matrix and Jest configuration added.
  • Documentation

    • README revamped with TypeScript examples, badges, and sponsor/social links.
  • Style / Tooling

    • EditorConfig and Prettier added; package manifest and build/tooling scripts modernized.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@package.json`:
- Around line 94-97: package.json declares Jest "^30.2.0" while ts-jest is
"^29.4.6", causing a major-version mismatch; fix by aligning the two: either set
"jest" to a 29.x series to match "ts-jest" (e.g., downgrade jest to ^29) or
update "ts-jest" to a 30.x release if one exists and supports TypeScript 5.9,
then run your package manager to update lockfiles and re-run tests to verify;
locate these entries in package.json ("jest" and "ts-jest") to make the change.
- Around line 34-36: The package exports for "./enhancedEvents" use the wrong
condition key "ortc" which prevents TypeScript from resolving the declaration;
update the export condition in the package.json entry for "./enhancedEvents" by
replacing the "ortc" condition with "types" so that the declaration
"./lib/enhancedEvents.d.ts" is exposed when consumers request types, keeping the
existing "default": "./lib/enhancedEvents.js" mapping intact.

- Fixes #141
- This PR replaces PR #359 but it's basically a copy&paste of it with some minimal cosmetic changes. So absolutely all credits to @6uliver.
- Now we generate different RTP capabilities for sending and receiving and the only change in the public API is that `device.rtpCapabilities` getter is now deprecated and instead the app should use `device.recvRtpCapabilities` and `device.sendRtpCapabilities`.
# Details

- Fixes #369
- In receive transports, munge local SDP answer to set desired max SCTP message size (obtained from the mediasoup `Transport`'s SCTP parameters).
# Details

- In a send `Transport` it returns the maximum DataChannel message size that it can send.
- In a receive `Transport` it returns the maximum DataChannel message size that it can receive.
- Note that it can return `undefined` (if DataChannels is not enabled).
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.