Skip to content

Releases: muxinc/mux-node-sdk

Add signed URL helpers

11 Jan 19:55
d86a7a5
Compare
Choose a tag to compare

Add helpers for generating signed URLs Mux.JWT.sign (see README for details)

v2.0.0

11 Jan 19:52
c6a4e5c
Compare
Choose a tag to compare

Breaking Changes

  • Nested resource modules are now PascalCase. For example:

    // version 1.x
    Video.assets.create();
    
    // version 2.x
    Video.Assets.create();
  • All requests now return the nested data key directly.

    // version 1.x
    const { data: { data: assets } } = await Video.assets.list();
    
    // version 2.x
    const assets = await Video.Assets.list();

    If you'd like access to the full request object for any reason, you can do so via listening for the response event:

    muxClient.on('response', res => {
      // Response will include everything returned from the API, such as status codes/text, headers, etc
    });

Soft Deprecations

  • remove is deprecated in favor of del. remove will no longer be available in the next major release (3.x).

    // 👎
    const Video.Assets.remove('your-asset-id');
    
    // 👍
    const Video.Assets.del('your-asset-id');

Improvements

  • Added support for the new direct uploads endpoints.

  • The library will default to using the MUX_TOKEN_ID and MUX_TOKEN_SECRET environment variables if a client is initialized without the token id/secret params.

    /* Assuming process.env.MUX_TOKEN_ID and process.env.MUX_TOKEN_SECRET exist and are valid, this works */
    const { Video, Data } = new Mux();

Live Stream Support

11 Sep 23:53
1902034
Compare
Choose a tag to compare

Live Stream Support is now out of Beta.

Live streaming guide: https://docs.mux.com/docs/live-streaming
The API docs can found here: https://docs.mux.com/reference#live-streams

Live Stream Support (Beta) 1.1.0-beta1

27 Aug 23:37
19cdf6c
Compare
Choose a tag to compare
Pre-release

Adding Live Stream Support (Beta)

Live stream support was added in this pull request: #10

This feature is currently in beta and we are investigating a few bugs found with several live stream routes, but we will have a new release once those have been resolved.

Contributors:
@ananth-racherla

1.0.0

27 Jul 20:36
Compare
Choose a tag to compare

1.0.0 - This project is now out of Beta

Bug fixes:

  • Video.assets.deleteAsset has been renamed to Video.assets.remove for naming consistency.
  • Video.assets.list now supports query params.

Node LTS compatibility

04 Jul 19:31
Compare
Choose a tag to compare

The spread operator is unsupported in the current Node LTS version (8) and was removed in this pull request #5

1.0.0-beta.4

21 Jun 17:42
Compare
Choose a tag to compare
1.0.0-beta.4 Pre-release
Pre-release

Changing Node support from >= 8 to >= 8.9.0 due to our use of the spread operator, which is not fully supported until node 8.6.0

8.9.0 (Carbon) is the current LTS version

1.0.0-beta.3

21 Jun 16:55
Compare
Choose a tag to compare
1.0.0-beta.3 Pre-release
Pre-release

Adding support for Node 8 (current LTS version)

Addressed in issue #3

1.0.0-beta.1

01 May 05:36
Compare
Choose a tag to compare
1.0.0-beta.1 Pre-release
Pre-release
Merge branch 'master' of https://github.com/muxinc/mux-node-sdk

1.0.0-beta.0

30 Apr 22:34
Compare
Choose a tag to compare
1.0.0-beta.0 Pre-release
Pre-release

Initial project Beta release.