v3.0.0 beta (Typescript 🎉)
Pre-release
Pre-release
·
365 commits
to master
since this release
- Drop Node 8 support (this is no longer LTS and it is not recommended to use Node 8 in production)
- Added types for Typescript support
- Remove previously deprecated remove method (use del instead)
- Remove erroneous requirement to pass in
viewer_idparam when getting a list of views - Change API response format for all
Mux.Dataresponses (return the full response)
Breaking Changes
-
Drop Node 8 support
-
Resuts for the
Dataclass will no longer return the nesteddatakey. They will return the full responseconst Mux = require('@mux/mux-node'); const { Data } = new Mux(accessToken, secret); // version 2.x const dimensions = await Data.RealTime.dimensions() // version 3.x const { data: dimensions, timeframe, total_row_count } = await Data.RealTime.dimensions()
Note this change only affects Data. If you are using Video the response format is unchanged.
If you are already using Node 10+, and you are not using Data then there are no breaking changes.