From 2f33e2218ccd459a94bfedc3132b4e933a6e4625 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 23:14:36 +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 4845e3a..a192cf5 100644 --- a/src/client.ts +++ b/src/client.ts @@ -607,9 +607,9 @@ export class ModerationAPI { } } - // 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 8dc36f8527e1890bd8316a90a3bc7d596fe73814 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:46:40 +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 f6f5eff..56a833e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,14 +65,18 @@ jobs: run: ./scripts/build - name: Get GitHub OIDC Token - if: github.repository == 'stainless-sdks/moderation-api-typescript' + if: |- + github.repository == 'stainless-sdks/moderation-api-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/moderation-api-typescript' + if: |- + github.repository == 'stainless-sdks/moderation-api-typescript' && + !startsWith(github.ref, 'refs/heads/stl/') env: URL: https://pkg.stainless.com/s AUTH: ${{ steps.github-oidc.outputs.github_token }} From 26d93e75196f31bcdad42cf1a9c4deef12f3c655 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:57:14 +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 a192cf5..532eee6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -297,8 +297,9 @@ export class ModerationAPI { : 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 1b31182beb00ecf6c28eaf5d5e5d252581c3dc01 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 21:57:29 +0000 Subject: [PATCH 4/4] release: 3.10.1 --- .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 0b9e26a..dac16de 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.10.0" + ".": "3.10.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 1776318..9b6e44b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 3.10.1 (2026-03-07) + +Full Changelog: [v3.10.0...v3.10.1](https://github.com/moderation-api/sdk-typescript/compare/v3.10.0...v3.10.1) + +### Bug Fixes + +* **client:** preserve URL params already embedded in path ([26d93e7](https://github.com/moderation-api/sdk-typescript/commit/26d93e75196f31bcdad42cf1a9c4deef12f3c655)) + + +### Chores + +* **ci:** skip uploading artifacts on stainless-internal branches ([8dc36f8](https://github.com/moderation-api/sdk-typescript/commit/8dc36f8527e1890bd8316a90a3bc7d596fe73814)) +* **internal:** codegen related update ([2f33e22](https://github.com/moderation-api/sdk-typescript/commit/2f33e2218ccd459a94bfedc3132b4e933a6e4625)) + ## 3.10.0 (2026-03-03) Full Changelog: [v3.9.1...v3.10.0](https://github.com/moderation-api/sdk-typescript/compare/v3.9.1...v3.10.0) diff --git a/package.json b/package.json index 00ad91a..d925b65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moderation-api/sdk", - "version": "3.10.0", + "version": "3.10.1", "description": "The official TypeScript library for the Moderation API API", "author": "Moderation API ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index fa1001b..26d80c3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '3.10.0'; // x-release-please-version +export const VERSION = '3.10.1'; // x-release-please-version