File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 3.0.0
4+
5+ - Drop Node 8 support (this is no longer LTS and it is not recommended to use Node 8 in production)
6+ - Added types for Typescript support
7+ - Remove previously deprecated remove method ([ use del instead] ( https://github.com/muxinc/mux-node-sdk/blob/master/CHANGELOG.md#soft-deprecations ) )
8+ - Remove erroneous requirement to pass in ` viewer_id ` param when getting a list of views
9+ - Change API response format for all ` Mux.Data ` responses (return the full response)
10+
11+ ### Breaking Changes
12+
13+ - Drop Node 8 support
14+
15+ - Resuts for the ` Data ` class will no longer return the nested ` data ` key. They will return the full response
16+
17+ ``` javascript
18+ const Mux = require (' @mux/mux-node' );
19+ const { Data } = new Mux (accessToken, secret);
20+
21+ // version 2.x
22+ const dimensions = await Data .RealTime .dimensions ()
23+
24+
25+ // version 3.x
26+ const { data: dimensions , timeframe , total_row_count } = await Data .RealTime .dimensions ()
27+ ```
28+
29+ ** Note** this change only affects ` Data ` . If you are using ` Video ` the response format is unchanged.
30+
31+ If you are already using Node 10+, and you are not using ` Data ` then there are no breaking changes.
32+
33+
334## 2.8.0
435
536- Add asset mp4-support endpoint (view [ docs] ( https://docs.mux.com/reference#update-mp4-support ) for usage)
Original file line number Diff line number Diff line change 11{
22 "name" : " @mux/mux-node" ,
3- "version" : " 2.8 .0" ,
3+ "version" : " 3.0.0-beta .0" ,
44 "description" : " Mux API wrapper" ,
55 "keywords" : [
66 " mux" ,
You can’t perform that action at this time.
0 commit comments