From 4549f6e148d525bf189113c50c840484e6718d62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 06:45:18 +0000 Subject: [PATCH 1/4] chore(internal): codegen related update --- src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 62602fd..a5623b2 100644 --- a/src/client.ts +++ b/src/client.ts @@ -674,9 +674,9 @@ export class Courier { } } - // If the API asks us to wait a certain amount of time (and it's a reasonable amount), - // just do what it says, but otherwise calculate a default - if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) { + // If the API asks us to wait a certain amount of time, just do what it + // says, but otherwise calculate a default + if (timeoutMillis === undefined) { const maxRetries = options.maxRetries ?? this.maxRetries; timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries); } From 982eea2623aed2b3f0657ddab135b5528361164e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:53:30 +0000 Subject: [PATCH 2/4] chore(ci): skip uploading artifacts on stainless-internal branches --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ddf061..729a942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,14 +55,18 @@ jobs: run: ./scripts/build - name: Get GitHub OIDC Token - if: github.repository == 'stainless-sdks/courier-typescript' + if: |- + github.repository == 'stainless-sdks/courier-typescript' && + !startsWith(github.ref, 'refs/heads/stl/') id: github-oidc uses: actions/github-script@v8 with: script: core.setOutput('github_token', await core.getIDToken()); - name: Upload tarball - if: github.repository == 'stainless-sdks/courier-typescript' + if: |- + github.repository == 'stainless-sdks/courier-typescript' && + !startsWith(github.ref, 'refs/heads/stl/') env: URL: https://pkg.stainless.com/s AUTH: ${{ steps.github-oidc.outputs.github_token }} From 4a5307f2571ffebd68ee7fb92f776887cbb2f801 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 17:00:21 +0000 Subject: [PATCH 3/4] fix(client): preserve URL params already embedded in path --- src/client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index a5623b2..50ab20f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -364,8 +364,9 @@ export class Courier { : new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path)); const defaultQuery = this.defaultQuery(); - if (!isEmptyObj(defaultQuery)) { - query = { ...defaultQuery, ...query }; + const pathQuery = Object.fromEntries(url.searchParams); + if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) { + query = { ...pathQuery, ...defaultQuery, ...query }; } if (typeof query === 'object' && query && !Array.isArray(query)) { From 395144cb9a0fc36045aedb8f83895e0bfd12c342 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 17:03:53 +0000 Subject: [PATCH 4/4] release: 7.7.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index df0299e..3066f52 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.7.1" + ".": "7.7.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 91ea515..0171c24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 7.7.2 (2026-03-07) + +Full Changelog: [v7.7.1...v7.7.2](https://github.com/trycourier/courier-node/compare/v7.7.1...v7.7.2) + +### Bug Fixes + +* **client:** preserve URL params already embedded in path ([4a5307f](https://github.com/trycourier/courier-node/commit/4a5307f2571ffebd68ee7fb92f776887cbb2f801)) + + +### Chores + +* **ci:** skip uploading artifacts on stainless-internal branches ([982eea2](https://github.com/trycourier/courier-node/commit/982eea2623aed2b3f0657ddab135b5528361164e)) +* **internal:** codegen related update ([4549f6e](https://github.com/trycourier/courier-node/commit/4549f6e148d525bf189113c50c840484e6718d62)) + ## 7.7.1 (2026-03-03) Full Changelog: [v7.7.0...v7.7.1](https://github.com/trycourier/courier-node/compare/v7.7.0...v7.7.1) diff --git a/package.json b/package.json index b5612f3..6fe817f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "7.7.1", + "version": "7.7.2", "description": "The official TypeScript library for the Courier API", "author": "Courier ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 2cae26d..2f769f5 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '7.7.1'; // x-release-please-version +export const VERSION = '7.7.2'; // x-release-please-version