Releases: muxinc/mux-node-sdk
Add signed URL helpers
Add helpers for generating signed URLs Mux.JWT.sign
(see README for details)
v2.0.0
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 ofdel
.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
andMUX_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
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
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
1.0.0 - This project is now out of Beta
Bug fixes:
Video.assets.deleteAsset
has been renamed toVideo.assets.remove
for naming consistency.Video.assets.list
now supports query params.
Node LTS compatibility
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
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
Adding support for Node 8 (current LTS version)
Addressed in issue #3
1.0.0-beta.1
Merge branch 'master' of https://github.com/muxinc/mux-node-sdk
1.0.0-beta.0
Initial project Beta release.