Skip to content

Commit fe5b7d9

Browse files
stainless-app[bot]meorphisStainless Botyjp20decepulis
authored
release: 9.0.0 (#431)
* feat(api): remove sunsetted spaces webhooks * chore: rebuild project due to codegen change (#432) * feat(api): OpenAPI spec update via Stainless API (#433) * feat(api): OpenAPI spec update via Stainless API (#434) * chore(internal): minor reformatting (#435) * feat(api): manual updates (#436) * chore: gitignore test server logs (#437) * chore: rebuild project due to codegen change (#439) * chore(api): remove Spaces (#440) * feat(api): generate webhook types (#441) * feat(api): make webhooks a standalone api (#442) * chore: rebuild project due to codegen change (#444) * chore: rebuild project due to codegen change (#447) * feat(api): OpenAPI spec update via Stainless API (#448) * chore: rebuild project due to codegen change (#449) * chore: rebuild project due to codegen change (#450) * chore: rebuild project due to codegen change (#452) * chore: rebuild project due to codegen change (#454) * chore: rebuild project due to codegen change (#455) * chore: rebuild project due to codegen change (#456) * chore(tests): update prism version (#457) * fix: use relative paths (#458) * feat(api): OpenAPI spec update via Stainless API (#459) * fix(compat): remove ReadableStream polyfill redundant since node v16 (#460) Note that this breaks streaming in Node v14, which has been unsupported since v4.0.0 of this library. * chore(docs): fix incorrect client var names (#461) * chore(internal): add constant for default timeout (#463) * chore(ci): correctly tag pre-release npm packages (#464) * chore: rebuild project due to codegen change (#465) * chore: force eslint to use non flat config (#466) * chore(ci): minor changes (#467) * chore(ci): bump prism mock server version (#468) * chore(examples): minor formatting changes (#469) * chore: rebuild project due to codegen change (#470) * [video] video_quality as a replacement for encoding_tier (#303) (#472) * Draft changes * detabbify * Address Phil's review comments * chore(ci): check for build errors (#473) * chore: run tsc as part of lint script (#474) * chore: replace encoding tiers with video quality levels (#475) * chore(ci): install deps via ./script/bootstrap (#476) * fix(client): correct File construction from node-fetch Responses (#478) * chore(internal): dependency updates (#479) * chore(internal): minor bump qs version (#480) * chore: revert jose removal * fix(uploads): avoid making redundant memory copies (#483) * fix file permissions * chore(internal): codegen related update (#484) * chore(internal): codegen related update (#485) * fix(errors): pass message through to APIConnectionError (#486) * chore: better object fallback behaviour for casting errors (#487) * docs: update CONTRIBUTING.md (#488) * chore(internal): add dev dependency (#489) * chore(internal): fix some types (#491) * fix(types): remove leftover polyfill usage (#492) * feat(client): send retry count header (#493) * chore(internal): codegen related update (#494) * feat(api): api update (#495) * feat(api): api update (#497) * feat(api): api update (#500) * feat(api): api update (#501) * feat(api): api update (#502) * chore: rebuild project due to codegen change (#507) * chore: rebuild project due to codegen change (#508) * feat(api): api update (#509) * feat(api): api update (#510) * chore: rebuild project due to codegen change (#511) * chore: rebuild project due to codegen change (#513) * chore: rebuild project due to codegen change (#514) * chore: rebuild project due to codegen change (#515) * Generate multiple tokens with one `signPlaybackId` call (#499) * Generate multiple tokens with one `signPlaybackId` call * Add missing DataTypeClaim * wait, I thought of a better signature * Revert "wait, I thought of a better signature" This reverts commit 5fdefba. * fix: ensure config for signPlaybackId can be optional (#516) * chore: rebuild project due to codegen change (#517) * chore: rebuild project due to codegen change (#518) * release: 9.0.0 * update changelog --------- Co-authored-by: meorphis <[email protected]> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Stainless Bot <[email protected]> Co-authored-by: Young-Jin Park <[email protected]> Co-authored-by: Darius Cepulis <[email protected]> Co-authored-by: Justin Sanford <[email protected]>
1 parent 5b63e5b commit fe5b7d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+5657
-2193
lines changed

.github/workflows/ci.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- master
9+
- next
910

1011
jobs:
1112
lint:
@@ -21,11 +22,30 @@ jobs:
2122
with:
2223
node-version: '18'
2324

24-
- name: Install dependencies
25-
run: yarn install
25+
- name: Bootstrap
26+
run: ./scripts/bootstrap
2627

2728
- name: Check types
2829
run: ./scripts/lint
30+
31+
build:
32+
name: build
33+
runs-on: ubuntu-latest
34+
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Set up Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '18'
43+
44+
- name: Bootstrap
45+
run: ./scripts/bootstrap
46+
47+
- name: Check build
48+
run: ./scripts/build
2949
test:
3050
name: test
3151
runs-on: ubuntu-latest

.github/workflows/release-doctor.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release Doctor
22
on:
33
pull_request:
4+
branches:
5+
- master
46
workflow_dispatch:
57

68
jobs:
@@ -17,3 +19,4 @@ jobs:
1719
bash ./bin/check-release-environment
1820
env:
1921
NPM_TOKEN: ${{ secrets.MUX_NPM_TOKEN || secrets.NPM_TOKEN }}
22+

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
.prism.log
12
node_modules
23
yarn-error.log
34
codegen.log
45
Brewfile.lock.json
56
dist
6-
/deno
7+
dist-deno
78
/*.tgz
89
.idea/
910

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "8.8.0"
2+
".": "9.0.0"
33
}

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-b1c7a231d90814e227c4a339a6760d1b05b04b874ffc7763affbad6a2c11d418.yml
1+
configured_endpoints: 88
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5bc9dec57cc47596441c1af33503b43275966e117bb43d2d6c3c5301a1644330.yml

CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# Changelog
22

3+
## 9.0.0 (2024-11-14)
4+
5+
Full Changelog: [v8.8.0...v9.0.0](https://github.com/muxinc/mux-node-sdk/compare/v8.8.0...v9.0.0)
6+
7+
### Breaking Changes
8+
* Remove support for Spaces
9+
10+
### Features
11+
* Add support for View Dropped Percentage and `view_dropped` in Mux Data.
12+
* Add support for signing multiple tokens (with various `aud` types) for signed playback policies in a single call.
13+
* Add support for `premium` assets in Mux Video. [Read more here](https://www.mux.com/blog/one-size-does-not-fit-all-introducing-premium-video-quality-for-mux-video).
14+
* Add full support for DRM for Mux Video. [Read more here](https://www.mux.com/blog/introducing-drm-the-latest-tool-in-protecting-your-content-on-mux).
15+
* Add support for updating `master_access` settings on live streams.
16+
* Add support for user agent-based Playback Restrictions.
17+
* **client:** send retry count header ([#493](https://github.com/muxinc/mux-node-sdk/issues/493)) ([f202eef](https://github.com/muxinc/mux-node-sdk/commit/f202eef237847862097850bb4387452df762bce6))
18+
19+
### Deprecations
20+
* Deprecate `encoding_tier` in favor of `video_quality` (to support `premium` assets)
21+
22+
### Bug Fixes
23+
* add missing types for encoding tier, generated subtitles settings and multi-track audio ([#319](https://github.com/muxinc/mux-node-sdk/issues/319)) ([16d20ad](https://github.com/muxinc/mux-node-sdk/commit/16d20ad310a6dbff4b4cf5fbce17a4cea72e2b4c))
24+
* add resolution_tier and max_resolution_tier ([#314](https://github.com/muxinc/mux-node-sdk/issues/314)) ([ff1586b](https://github.com/muxinc/mux-node-sdk/commit/ff1586b4503ab943c0c0682c2f4d15705ca7248b))
25+
* allow git imports for pnpm ([#412](https://github.com/muxinc/mux-node-sdk/issues/412)) ([d7f6e32](https://github.com/muxinc/mux-node-sdk/commit/d7f6e32c8e7affa18fbd2e0aa7d78e744c868f11))
26+
* **client:** correct File construction from node-fetch Responses ([#478](https://github.com/muxinc/mux-node-sdk/issues/478)) ([37cc57c](https://github.com/muxinc/mux-node-sdk/commit/37cc57c0c0fea5228529be15cfcbb3691f23f65f))
27+
* **client:** correctly send deno version header ([#356](https://github.com/muxinc/mux-node-sdk/issues/356)) ([3b59a43](https://github.com/muxinc/mux-node-sdk/commit/3b59a434662af71d04e9bc123d89e23919663fb7))
28+
* **compat:** remove ReadableStream polyfill redundant since node v16 ([#460](https://github.com/muxinc/mux-node-sdk/issues/460)) ([66b4d45](https://github.com/muxinc/mux-node-sdk/commit/66b4d45a42f4324cdfda08b9675a47cdc648ecb5))
29+
* correct response type for generate subtitles ([#385](https://github.com/muxinc/mux-node-sdk/issues/385)) ([5b05c0c](https://github.com/muxinc/mux-node-sdk/commit/5b05c0cb86913bd98b8f504cfdb1b900ea85efae))
30+
* **errors:** pass message through to APIConnectionError ([#486](https://github.com/muxinc/mux-node-sdk/issues/486)) ([56485cc](https://github.com/muxinc/mux-node-sdk/commit/56485ccaf60112ec0802afcea1f9700443c47da5))
31+
* handle process.env being undefined in debug func ([#354](https://github.com/muxinc/mux-node-sdk/issues/354)) ([e90a964](https://github.com/muxinc/mux-node-sdk/commit/e90a9646f4c1f729861c4e46d1c77ec2eb8846e4))
32+
* **internal:** make toFile use input file's options ([#350](https://github.com/muxinc/mux-node-sdk/issues/350)) ([0f8c319](https://github.com/muxinc/mux-node-sdk/commit/0f8c319611c939abf31559d5338dacc2026e18ae))
33+
* package.json & yarn.lock to reduce vulnerabilities ([bd8af62](https://github.com/muxinc/mux-node-sdk/commit/bd8af62afa6bc7fe2fe43969fcfa2b86cf4a6b7e))
34+
* **package:** revert recent client file change ([#394](https://github.com/muxinc/mux-node-sdk/issues/394)) ([f520093](https://github.com/muxinc/mux-node-sdk/commit/f52009351aa21640d0aadb53d2e182a0d1da001f))
35+
* remove lingering file ([6014f6f](https://github.com/muxinc/mux-node-sdk/commit/6014f6fecf578a466913fcc1a8a74be901055f88))
36+
* **shims:** export JWT shims for bun ([#369](https://github.com/muxinc/mux-node-sdk/issues/369)) ([84833ab](https://github.com/muxinc/mux-node-sdk/commit/84833ab802b3b1c7aeee4e58af63ddcc4b35f9f1))
37+
* **types:** remove leftover polyfill usage ([#492](https://github.com/muxinc/mux-node-sdk/issues/492)) ([6d7f768](https://github.com/muxinc/mux-node-sdk/commit/6d7f76858dccefc61e31096209b7979d45614406))
38+
* update casing for "drm" ([#425](https://github.com/muxinc/mux-node-sdk/issues/425)) ([34cf334](https://github.com/muxinc/mux-node-sdk/commit/34cf33429db0f9e76dd16378725a60019f4dbdda))
39+
* **uploads:** avoid making redundant memory copies ([#483](https://github.com/muxinc/mux-node-sdk/issues/483)) ([f24c5bd](https://github.com/muxinc/mux-node-sdk/commit/f24c5bd629c947335ca57ca7fd7b3559cd5c5d6c))
40+
* use relative paths ([#458](https://github.com/muxinc/mux-node-sdk/issues/458)) ([96adde9](https://github.com/muxinc/mux-node-sdk/commit/96adde9d26599001ae82349eaad43f810250bf2c))
41+
42+
### Documentation
43+
44+
* add jwt helpers, webhooks, and version upgrade content back to readme ([#342](https://github.com/muxinc/mux-node-sdk/issues/342)) ([f339b9e](https://github.com/muxinc/mux-node-sdk/commit/f339b9e542e4d74055a14b84a7d2c68741f34101))
45+
* add release steps ([2432cf8](https://github.com/muxinc/mux-node-sdk/commit/2432cf824e05031c332ebbfd4ec94c5365e12e0f))
46+
* add upgrade to v8 guide back in ([5837819](https://github.com/muxinc/mux-node-sdk/commit/58378196949b91f8a966eb04c498d5dc24bc851b))
47+
* fix typo in CONTRIBUTING.md ([#347](https://github.com/muxinc/mux-node-sdk/issues/347)) ([59af6cd](https://github.com/muxinc/mux-node-sdk/commit/59af6cdbdea2084effec55dd6ae30fbf80cff0ec))
48+
* **readme:** add bundle size badge ([#409](https://github.com/muxinc/mux-node-sdk/issues/409)) ([ce5c0d7](https://github.com/muxinc/mux-node-sdk/commit/ce5c0d73d52790d6986ec9276c8f6d39fb6c3523))
49+
* **readme:** consistent use of sentence case in headings ([#351](https://github.com/muxinc/mux-node-sdk/issues/351)) ([fc5fdbf](https://github.com/muxinc/mux-node-sdk/commit/fc5fdbf56f66fa5dd01018d0f62be9f50978588f))
50+
* **readme:** document how to make undocumented requests ([#353](https://github.com/muxinc/mux-node-sdk/issues/353)) ([abdba1e](https://github.com/muxinc/mux-node-sdk/commit/abdba1e3aaee117d8dedfa0faf1281cdcce66549))
51+
* update CONTRIBUTING.md ([#488](https://github.com/muxinc/mux-node-sdk/issues/488)) ([f1bc68d](https://github.com/muxinc/mux-node-sdk/commit/f1bc68d07aaaf7512ab363cc9f2c72755bc5b4c1))
52+
353
## 8.8.0 (2024-06-14)
454

555
Full Changelog: [v8.7.1...v8.8.0](https://github.com/muxinc/mux-node-sdk/compare/v8.7.1...v8.8.0)

CONTRIBUTING.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ Other package managers may work but are not officially supported for development
55

66
To set up the repository, run:
77

8-
```bash
9-
yarn
10-
yarn build
8+
```sh
9+
$ yarn
10+
$ yarn build
1111
```
1212

1313
This will install all the required dependencies and build output files to `dist/`.
1414

1515
## Modifying/Adding code
1616

17-
Most of the SDK is generated code, and any modified code will be overridden on the next generation. The
18-
`src/lib/` and `examples/` directories are exceptions and will never be overridden.
17+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
18+
result in merge conflicts between manual patches and changes from the generator. The generator will never
19+
modify the contents of the `src/lib/` and `examples/` directories.
1920

2021
## Adding and running examples
2122

22-
All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or
23-
added to.
23+
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
2424

25-
```bash
25+
```ts
2626
// add an example to examples/<your-example>.ts
2727

2828
#!/usr/bin/env -S npm run tsn -T
@@ -41,38 +41,38 @@ If you’d like to use the repository from source, you can either install from g
4141

4242
To install via git:
4343

44-
```bash
45-
npm install git+ssh://[email protected]:muxinc/mux-node-sdk.git
44+
```sh
45+
$ npm install git+ssh://[email protected]:muxinc/mux-node-sdk.git
4646
```
4747

4848
Alternatively, to link a local copy of the repo:
4949

50-
```bash
50+
```sh
5151
# Clone
52-
git clone https://www.github.com/muxinc/mux-node-sdk
53-
cd mux-node-sdk
52+
$ git clone https://www.github.com/muxinc/mux-node-sdk
53+
$ cd mux-node-sdk
5454

5555
# With yarn
56-
yarn link
57-
cd ../my-package
58-
yarn link @mux/mux-node
56+
$ yarn link
57+
$ cd ../my-package
58+
$ yarn link @mux/mux-node
5959

6060
# With pnpm
61-
pnpm link --global
62-
cd ../my-package
63-
pnpm link -—global @mux/mux-node
61+
$ pnpm link --global
62+
$ cd ../my-package
63+
$ pnpm link -—global @mux/mux-node
6464
```
6565

6666
## Running tests
6767

6868
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
6969

70-
```bash
71-
npx prism mock path/to/your/openapi.yml
70+
```sh
71+
$ npx prism mock path/to/your/openapi.yml
7272
```
7373

74-
```bash
75-
yarn run test
74+
```sh
75+
$ yarn run test
7676
```
7777

7878
## Linting and formatting
@@ -82,14 +82,14 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and
8282

8383
To lint:
8484

85-
```bash
86-
yarn lint
85+
```sh
86+
$ yarn lint
8787
```
8888

8989
To format and fix all lint issues automatically:
9090

91-
```bash
92-
yarn fix
91+
```sh
92+
$ yarn fix
9393
```
9494

9595
## Publishing and releases

0 commit comments

Comments
 (0)