diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6a15549..df0299e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.7.0" + ".": "7.7.1" } diff --git a/.stats.yml b/.stats.yml index 17749e2..290f28d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 81 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-3fc1c86b4a83a16393aaf17d1fb3ac6098d30dd057ba872973b57285a7a3f0d0.yml -openapi_spec_hash: 02a545d217b13399f311e99561f9de1d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-b3852cdd1020811766572923d26a6c95f4a538bf4c7268462b6ba39f34480b3e.yml +openapi_spec_hash: b2e2f2357342e9a6b16a591d0b946e38 config_hash: 0789c3cddc625bb9712b3bded274ab6c diff --git a/CHANGELOG.md b/CHANGELOG.md index a5604f1..de31e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 7.7.1 (2026-02-18) + +Full Changelog: [v7.7.0...v7.7.1](https://github.com/trycourier/courier-node/compare/v7.7.0...v7.7.1) + +### Bug Fixes + +* **api:** remove brand field from ElementalContent ([e3170e5](https://github.com/trycourier/courier-node/commit/e3170e5e77ea9493f563f5f0777b794a2ccc1747)) + + +### Chores + +* **internal/client:** fix form-urlencoded requests ([986e46d](https://github.com/trycourier/courier-node/commit/986e46d7ac7f34b92be59cebd7bc32996553fe60)) +* **internal:** avoid type checking errors with ts-reset ([82eb137](https://github.com/trycourier/courier-node/commit/82eb137b3eaf1732706e20c8a48f502d2af03f39)) + ## 7.7.0 (2026-02-06) Full Changelog: [v7.6.3...v7.7.0](https://github.com/trycourier/courier-node/compare/v7.6.3...v7.7.0) diff --git a/package.json b/package.json index b4c2b0b..b5612f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "7.7.0", + "version": "7.7.1", "description": "The official TypeScript library for the Courier API", "author": "Courier ", "types": "dist/index.d.ts", diff --git a/src/client.ts b/src/client.ts index 5f0770b..f49c62b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -553,7 +553,7 @@ export class Courier { loggerFor(this).info(`${responseInfo} - ${retryMessage}`); const errText = await response.text().catch((err: any) => castToError(err).message); - const errJSON = safeJSON(errText); + const errJSON = safeJSON(errText) as any; const errMessage = errJSON ? undefined : errText; loggerFor(this).debug( @@ -802,6 +802,14 @@ export class Courier { (Symbol.iterator in body && 'next' in body && typeof body.next === 'function')) ) { return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable) }; + } else if ( + typeof body === 'object' && + headers.values.get('content-type') === 'application/x-www-form-urlencoded' + ) { + return { + bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' }, + body: this.stringifyQuery(body as Record), + }; } else { return this.#encoder({ body, headers }); } diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 90e864f..9af97f2 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -123,8 +123,6 @@ export interface ElementalContent { * For example, "2022-01-01" */ version: string; - - brand?: string | null; } /** diff --git a/src/version.ts b/src/version.ts index 9d2fe45..2cae26d 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '7.7.0'; // x-release-please-version +export const VERSION = '7.7.1'; // x-release-please-version diff --git a/tests/api-resources/tenants/templates/templates.test.ts b/tests/api-resources/tenants/templates/templates.test.ts index a07cd73..0050a00 100644 --- a/tests/api-resources/tenants/templates/templates.test.ts +++ b/tests/api-resources/tenants/templates/templates.test.ts @@ -100,7 +100,6 @@ describe('resource templates', () => { }, ], version: 'version', - brand: 'brand', }, channels: { foo: {