Skip to content

Commit

Permalink
release: 9.0.0 (#431)
Browse files Browse the repository at this point in the history
* 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 <meorphis@gmail.com>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Stainless Bot <dev+git@stainlessapi.com>
Co-authored-by: Young-Jin Park <youngjinpark20@gmail.com>
Co-authored-by: Darius Cepulis <dcepulis@mux.com>
Co-authored-by: Justin Sanford <justin.h.sanford@gmail.com>
  • Loading branch information
6 people authored Nov 15, 2024
1 parent 5b63e5b commit fe5b7d9
Show file tree
Hide file tree
Showing 95 changed files with 5,657 additions and 2,193 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- master
- next

jobs:
lint:
Expand All @@ -21,11 +22,30 @@ jobs:
with:
node-version: '18'

- name: Install dependencies
run: yarn install
- name: Bootstrap
run: ./scripts/bootstrap

- name: Check types
run: ./scripts/lint

build:
name: build
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Check build
run: ./scripts/build
test:
name: test
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release Doctor
on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
Expand All @@ -17,3 +19,4 @@ jobs:
bash ./bin/check-release-environment
env:
NPM_TOKEN: ${{ secrets.MUX_NPM_TOKEN || secrets.NPM_TOKEN }}

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.prism.log
node_modules
yarn-error.log
codegen.log
Brewfile.lock.json
dist
/deno
dist-deno
/*.tgz
.idea/

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "8.8.0"
".": "9.0.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-b1c7a231d90814e227c4a339a6760d1b05b04b874ffc7763affbad6a2c11d418.yml
configured_endpoints: 88
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5bc9dec57cc47596441c1af33503b43275966e117bb43d2d6c3c5301a1644330.yml
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# Changelog

## 9.0.0 (2024-11-14)

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

### Breaking Changes
* Remove support for Spaces

### Features
* Add support for View Dropped Percentage and `view_dropped` in Mux Data.
* Add support for signing multiple tokens (with various `aud` types) for signed playback policies in a single call.
* 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).
* 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).
* Add support for updating `master_access` settings on live streams.
* Add support for user agent-based Playback Restrictions.
* **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))

### Deprecations
* Deprecate `encoding_tier` in favor of `video_quality` (to support `premium` assets)

### Bug Fixes
* 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))
* 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))
* 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))
* **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))
* **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))
* **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))
* 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))
* **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))
* 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))
* **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))
* package.json & yarn.lock to reduce vulnerabilities ([bd8af62](https://github.com/muxinc/mux-node-sdk/commit/bd8af62afa6bc7fe2fe43969fcfa2b86cf4a6b7e))
* **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))
* remove lingering file ([6014f6f](https://github.com/muxinc/mux-node-sdk/commit/6014f6fecf578a466913fcc1a8a74be901055f88))
* **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))
* **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))
* update casing for "drm" ([#425](https://github.com/muxinc/mux-node-sdk/issues/425)) ([34cf334](https://github.com/muxinc/mux-node-sdk/commit/34cf33429db0f9e76dd16378725a60019f4dbdda))
* **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))
* use relative paths ([#458](https://github.com/muxinc/mux-node-sdk/issues/458)) ([96adde9](https://github.com/muxinc/mux-node-sdk/commit/96adde9d26599001ae82349eaad43f810250bf2c))

### Documentation

* 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))
* add release steps ([2432cf8](https://github.com/muxinc/mux-node-sdk/commit/2432cf824e05031c332ebbfd4ec94c5365e12e0f))
* add upgrade to v8 guide back in ([5837819](https://github.com/muxinc/mux-node-sdk/commit/58378196949b91f8a966eb04c498d5dc24bc851b))
* 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))
* **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))
* **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))
* **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))
* update CONTRIBUTING.md ([#488](https://github.com/muxinc/mux-node-sdk/issues/488)) ([f1bc68d](https://github.com/muxinc/mux-node-sdk/commit/f1bc68d07aaaf7512ab363cc9f2c72755bc5b4c1))

## 8.8.0 (2024-06-14)

Full Changelog: [v8.7.1...v8.8.0](https://github.com/muxinc/mux-node-sdk/compare/v8.7.1...v8.8.0)
Expand Down
54 changes: 27 additions & 27 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ Other package managers may work but are not officially supported for development

To set up the repository, run:

```bash
yarn
yarn build
```sh
$ yarn
$ yarn build
```

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

## Modifying/Adding code

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

## Adding and running examples

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

```bash
```ts
// add an example to examples/<your-example>.ts

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

To install via git:

```bash
npm install git+ssh://git@github.com:muxinc/mux-node-sdk.git
```sh
$ npm install git+ssh://git@github.com:muxinc/mux-node-sdk.git
```

Alternatively, to link a local copy of the repo:

```bash
```sh
# Clone
git clone https://www.github.com/muxinc/mux-node-sdk
cd mux-node-sdk
$ git clone https://www.github.com/muxinc/mux-node-sdk
$ cd mux-node-sdk

# With yarn
yarn link
cd ../my-package
yarn link @mux/mux-node
$ yarn link
$ cd ../my-package
$ yarn link @mux/mux-node

# With pnpm
pnpm link --global
cd ../my-package
pnpm link -—global @mux/mux-node
$ pnpm link --global
$ cd ../my-package
$ pnpm link -—global @mux/mux-node
```

## Running tests

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

```bash
npx prism mock path/to/your/openapi.yml
```sh
$ npx prism mock path/to/your/openapi.yml
```

```bash
yarn run test
```sh
$ yarn run test
```

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

To lint:

```bash
yarn lint
```sh
$ yarn lint
```

To format and fix all lint issues automatically:

```bash
yarn fix
```sh
$ yarn fix
```

## Publishing and releases
Expand Down
Loading

0 comments on commit fe5b7d9

Please sign in to comment.