Skip to content

Commit

Permalink
Remove deprecated jsdoc field as it was misleading (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago-Souto authored Jul 12, 2024
1 parent 2feefa2 commit 5784247
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/millicast-sdk/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ declare module '@millicast/sdk' {
*
* - A connection path that you can get from {@link Director} module or from your own implementation.
* @constructor
* @deprecated {String} streamName - Millicast stream name. Note that this field is now deprecated and no longer used internally. It will be removed in a future version.
* @param {String} streamName - Deprecated: Millicast stream name to connect to. Use tokenGenerator instead. This field will be removed in a future version.
* @param {TokenGeneratorCallback} tokenGenerator - Callback function executed when a new token is needed.
* @param {Boolean} [autoReconnect=true] - Enable auto reconnect to stream.
*/
Expand Down Expand Up @@ -1362,7 +1362,7 @@ declare module '@millicast/sdk' {
*
* - A connection path that you can get from {@link Director} module or from your own implementation.
* @constructor
* @deprecated {String} streamName - Millicast stream name to connect to. Note that this field is now deprecated and no longer used internally. It will be removed in a future version
* @param {String} streamName - Deprecated: Millicast stream name to connect to. Use tokenGenerator instead. This field will be removed in a future version.
* @param {TokenGeneratorCallback} tokenGenerator - Callback function executed when a new token is needed.
* @param {HTMLMediaElement} [mediaElement=null] - Target HTML media element to mount stream.
* @param {Boolean} [autoReconnect=true] - Enable auto reconnect to stream.
Expand Down
3 changes: 1 addition & 2 deletions packages/millicast-sdk/src/utils/BaseWebRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ const baseInterval = 1000
* @classdesc Base class for common actions about peer connection and reconnect mechanism for Publishers and Viewer instances.
*
* @constructor
* @deprecated streamName is no longer used, use tokenGenerator
* @param {String} streamName - Deprecated: Millicast existing stream name.
* @param {String} streamName - Deprecated: Millicast existing stream name. Use tokenGenerator instead.
* @param {tokenGeneratorCallback} tokenGenerator - Callback function executed when a new token is needed.
* @param {Object} loggerInstance - Logger instance from the extended classes.
* @param {Boolean} autoReconnect - Enable auto reconnect.
Expand Down

0 comments on commit 5784247

Please sign in to comment.