Skip to content

refactor(webstreams): remove dead code and add WebRTC type extensions#162

Draft
imaTik0 wants to merge 1 commit intofeat/refactor-driver-contextfrom
refactor/webstreams-dead-code-and-types
Draft

refactor(webstreams): remove dead code and add WebRTC type extensions#162
imaTik0 wants to merge 1 commit intofeat/refactor-driver-contextfrom
refactor/webstreams-dead-code-and-types

Conversation

@imaTik0
Copy link
Copy Markdown
Member

@imaTik0 imaTik0 commented Apr 17, 2026

  • Logger: drop LogLevel enum and setLevel/getLevel; use plain number constant
  • Queue: remove 7 unused methods (dequeue, peek, size, isEmpty, clear, toArray, Symbol.iterator); replace boolean processing flag with drainPromise; replace Math.random() IDs with sequential counter; drain() now re-throws on error
  • WebRtcExtensions.ts: add typed interfaces for insertable streams API (EncodedStreams, RTCRtpScriptTransformOptions with optional kind, sender/ receiver with transform, RTCConfigurationWithInsertableStreams, WindowWithRTCRtpScriptTransform, WindowWithWasmHandler)

- Logger: drop LogLevel enum and setLevel/getLevel; use plain number constant
- Queue: remove 7 unused methods (dequeue, peek, size, isEmpty, clear, toArray,
  Symbol.iterator); replace boolean processing flag with drainPromise; replace
  Math.random() IDs with sequential counter; drain() now re-throws on error
- WebRtcExtensions.ts: add typed interfaces for insertable streams API
  (EncodedStreams, RTCRtpScriptTransformOptions with optional kind, sender/
  receiver with transform, RTCConfigurationWithInsertableStreams,
  WindowWithRTCRtpScriptTransform, WindowWithWasmHandler)
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.

1 participant