Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose extras namespace #1464

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### NEXT

- Expose `extras` namespace which exports `EnhancedEventEmitter` and `enhancedOnce()` for now ([PR #1464](https://github.com/versatica/mediasoup/pull/1464)).

### 3.15.0

- Node: Add TypeScript interfaces for all exported classes ([PR #1463](https://github.com/versatica/mediasoup/pull/1463)).
Expand Down
2 changes: 1 addition & 1 deletion node/src/RtpObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export abstract class RtpObserverImpl<
// Observer instance.
readonly #observer: Observer;

constructor(
protected constructor(
{
internal,
channel,
Expand Down
2 changes: 1 addition & 1 deletion node/src/Transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export abstract class TransportImpl<
// Observer instance.
readonly #observer: Observer;

constructor(
protected constructor(
{
internal,
data,
Expand Down
1 change: 1 addition & 0 deletions node/src/extras.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { EnhancedEventEmitter, enhancedOnce } from './enhancedEvents';
5 changes: 5 additions & 0 deletions node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,8 @@ export function getSupportedRtpCapabilities(): RtpCapabilities {
* Expose parseScalabilityMode() function.
*/
export { parseScalabilityMode } from './scalabilityModesUtils';

/**
* Expose extras module.
*/
export * as extras from './extras';
Loading