Skip to content

0.13.0

Compare
Choose a tag to compare
@james-criscuolo james-criscuolo released this 31 Jan 19:04
· 803 commits to master since this release

This release converts the entire library to TypeScript, but attempts to do so with extremely little change to our public-facing API.

Changes

  • Breaking Change: ws_uri is now wsUri when passing wsServers with weights to the Web Transport.
  • Breaking Change: All options arguments now require camelCase variables instead of underscore_variables. In your code, look for status_code (now statusCode), reason_phrase (reasonPhrase), and most arguments passed within a params property (less common).
  • The library is now fully typed and written in TypeScript, and uses the types in the types folder when possible.
  • The library is now written with ES Modules instead of IIFE.
  • our EventEmitter wrapper has been removed. It's been deprecated for several versions. Use the EventEmitter from events instead.
  • React SessionDescriptionHandler updated to use MediaDevices.getUserMedia instead of getUserMedia.
  • Most internal use of underscored_variables has been converted to camelCase.
  • Internal: NameAddrHeader.parse is now Grammar.nameAddrHeaderParse
  • Internal URI.parse is now Grammar.URIParse

Known Issue: We've grown in size slightly, 25kb more when minified. This is due to an issue with ts-pegjs, which we have an issue and pull request open with to resolve.