media: Replace rtcStats singleton with factory function#832
media: Replace rtcStats singleton with factory function#832havardholvik wants to merge 2 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: aa2e9eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
/canary |
db26008 to
3ae50b3
Compare
|
/canary |
3ae50b3 to
5502b2a
Compare
|
/canary |
1 similar comment
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: pnpm add @whereby.com/assistant-sdk@0.0.0-canary-20251218205351pnpm add @whereby.com/browser-sdk@0.0.0-canary-20251218205351pnpm add @whereby.com/core@0.0.0-canary-20251218205351pnpm add @whereby.com/media@0.0.0-canary-20251218205351pnpm add @whereby.com/react-native-sdk@0.0.0-canary-20251218205351 |
kevinwhereby
left a comment
There was a problem hiding this comment.
Added all the piping to init this in bundles/stats.js and pass it around where required and it all works as expected 🎉
f6fb6f3 to
429aeeb
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: pnpm add @whereby.com/assistant-sdk@0.0.0-canary-20260107113229pnpm add @whereby.com/browser-sdk@0.0.0-canary-20260107113229pnpm add @whereby.com/core@0.0.0-canary-20260107113229pnpm add @whereby.com/media@0.0.0-canary-20260107113229pnpm add @whereby.com/react-native-sdk@0.0.0-canary-20260107113229 |
429aeeb to
d015099
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: pnpm add @whereby.com/assistant-sdk@0.0.0-canary-20260108073026pnpm add @whereby.com/browser-sdk@0.0.0-canary-20260108073026pnpm add @whereby.com/core@0.0.0-canary-20260108073026pnpm add @whereby.com/media@0.0.0-canary-20260108073026pnpm add @whereby.com/react-native-sdk@0.0.0-canary-20260108073026 |
Due to breaking change in media package, this connection needs to be initialized outside the media package itself.
d015099 to
aa2e9eb
Compare
|
/canary |
|
🚀 The canary releases have been published to npm. You can test the releases by installing the newly published versions: pnpm add @whereby.com/assistant-sdk@0.0.0-canary-20260113080148pnpm add @whereby.com/browser-sdk@0.0.0-canary-20260113080148pnpm add @whereby.com/core@0.0.0-canary-20260113080148pnpm add @whereby.com/media@0.0.0-canary-20260113080148pnpm add @whereby.com/react-native-sdk@0.0.0-canary-20260113080148 |
Description
Summary:
Replace singleton rtcStats connection object with factory function for better lifecycle control and testability.
Related Issue:
Testing
Unit tests added.
Checklist
under the terms of the MIT license.