From 40981f1fc6afde6f3d9de094540e42f6222d2fdc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:00:49 +0000 Subject: [PATCH 1/2] chore(internal): remove unnecessary getRequestClient function (#44) --- src/core.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/core.ts b/src/core.ts index e108059..42a575e 100644 --- a/src/core.ts +++ b/src/core.ts @@ -523,19 +523,13 @@ export abstract class APIClient { const timeout = setTimeout(() => controller.abort(), ms); return ( - this.getRequestClient() - // use undefined this binding; fetch errors if bound to something else in browser/cloudflare - .fetch.call(undefined, url, { signal: controller.signal as any, ...options }) - .finally(() => { - clearTimeout(timeout); - }) + // use undefined this binding; fetch errors if bound to something else in browser/cloudflare + this.fetch.call(undefined, url, { signal: controller.signal as any, ...options }).finally(() => { + clearTimeout(timeout); + }) ); } - protected getRequestClient(): RequestClient { - return { fetch: this.fetch }; - } - private shouldRetry(response: Response): boolean { // Note this is not a standard header. const shouldRetryHeader = response.headers.get('x-should-retry'); From 622d61b742e330877f5462432821bb73f3f42f78 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:01:06 +0000 Subject: [PATCH 2/2] release: 1.4.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4918b25..efe9bfb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.1" + ".": "1.4.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index dfdd033..ff08a0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.4.2 (2024-12-10) + +Full Changelog: [v1.4.1...v1.4.2](https://github.com/runwayml/sdk-node/compare/v1.4.1...v1.4.2) + +### Chores + +* **internal:** remove unnecessary getRequestClient function ([#44](https://github.com/runwayml/sdk-node/issues/44)) ([40981f1](https://github.com/runwayml/sdk-node/commit/40981f1fc6afde6f3d9de094540e42f6222d2fdc)) + ## 1.4.1 (2024-12-05) Full Changelog: [v1.4.0...v1.4.1](https://github.com/runwayml/sdk-node/compare/v1.4.0...v1.4.1) diff --git a/package.json b/package.json index 4ca0c93..561cb72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@runwayml/sdk", - "version": "1.4.1", + "version": "1.4.2", "description": "The official TypeScript library for the RunwayML API", "author": "RunwayML ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 45b0c3a..d6069dc 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.4.1'; // x-release-please-version +export const VERSION = '1.4.2'; // x-release-please-version