From c367adb02f70772b47d7e6e2f0bcf5e7fc1b905f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 30 Jul 2025 00:52:52 +0000 Subject: [PATCH 1/5] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5c1470b..fbe1e82 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 19 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-5e4716f7fce42bbcecc7ecb699c1c467ae778d74d558f7a260d531e2af1a7f30.yml -openapi_spec_hash: f545dcef9001b00c2604e3dcc6a12f7a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml +openapi_spec_hash: 73b92bd5503ab6c64dc26da31cca36e2 config_hash: 65328ff206b8c0168c915914506d9dba From 9da92475e2a744e9f3714a83887ffba5c24559ee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 30 Jul 2025 04:24:15 +0000 Subject: [PATCH 2/5] chore(internal): remove redundant imports config --- package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package.json b/package.json index 0c720ea..1c279fd 100644 --- a/package.json +++ b/package.json @@ -46,10 +46,6 @@ "typescript": "5.8.3", "typescript-eslint": "8.31.1" }, - "imports": { - "@onkernel/sdk": ".", - "@onkernel/sdk/*": "./src/*" - }, "exports": { ".": { "import": "./dist/index.mjs", From 743b24161f294e289a6fe17537d02b8fe35f7b06 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 19:16:03 +0000 Subject: [PATCH 3/5] feat(api): lower default timeout to 5s --- .stats.yml | 2 +- README.md | 4 ++-- src/client.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index fbe1e82..c8304ed 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 19 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml openapi_spec_hash: 73b92bd5503ab6c64dc26da31cca36e2 -config_hash: 65328ff206b8c0168c915914506d9dba +config_hash: aafe2b8c43d82d9838c8b77cdd59189f diff --git a/README.md b/README.md index 98f3d75..77aef20 100644 --- a/README.md +++ b/README.md @@ -149,13 +149,13 @@ await client.browsers.create({ persistence: { id: 'browser-for-user-1234' } }, { ### Timeouts -Requests time out after 1 minute by default. You can configure this with a `timeout` option: +Requests time out after 5 seconds by default. You can configure this with a `timeout` option: ```ts // Configure the default for all requests: const client = new Kernel({ - timeout: 20 * 1000, // 20 seconds (default is 1 minute) + timeout: 20 * 1000, // 20 seconds (default is 5 seconds) }); // Override per-request: diff --git a/src/client.ts b/src/client.ts index 89509db..d3ef75c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -175,7 +175,7 @@ export class Kernel { * @param {string | undefined} [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined] * @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. * @param {string} [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API. - * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. + * @param {number} [opts.timeout=5 seconds] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls. * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request. @@ -207,7 +207,7 @@ export class Kernel { } this.baseURL = options.baseURL || environments[options.environment || 'production']; - this.timeout = options.timeout ?? Kernel.DEFAULT_TIMEOUT /* 1 minute */; + this.timeout = options.timeout ?? Kernel.DEFAULT_TIMEOUT /* 5 seconds */; this.logger = options.logger ?? console; const defaultLogLevel = 'warn'; // Set default logLevel early so that we can log a warning in parseLogLevel. @@ -761,7 +761,7 @@ export class Kernel { } static Kernel = this; - static DEFAULT_TIMEOUT = 60000; // 1 minute + static DEFAULT_TIMEOUT = 5000; // 5 seconds static KernelError = Errors.KernelError; static APIError = Errors.APIError; From d3412699e03073534c66912c0ccd607248655202 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 19:25:58 +0000 Subject: [PATCH 4/5] feat(api): manual updates --- .stats.yml | 2 +- README.md | 4 ++-- src/client.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8304ed..fbe1e82 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 19 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9f2d347a4bcb03aed092ba4495aac090c3d988e9a99af091ee35c09994adad8b.yml openapi_spec_hash: 73b92bd5503ab6c64dc26da31cca36e2 -config_hash: aafe2b8c43d82d9838c8b77cdd59189f +config_hash: 65328ff206b8c0168c915914506d9dba diff --git a/README.md b/README.md index 77aef20..98f3d75 100644 --- a/README.md +++ b/README.md @@ -149,13 +149,13 @@ await client.browsers.create({ persistence: { id: 'browser-for-user-1234' } }, { ### Timeouts -Requests time out after 5 seconds by default. You can configure this with a `timeout` option: +Requests time out after 1 minute by default. You can configure this with a `timeout` option: ```ts // Configure the default for all requests: const client = new Kernel({ - timeout: 20 * 1000, // 20 seconds (default is 5 seconds) + timeout: 20 * 1000, // 20 seconds (default is 1 minute) }); // Override per-request: diff --git a/src/client.ts b/src/client.ts index d3ef75c..89509db 100644 --- a/src/client.ts +++ b/src/client.ts @@ -175,7 +175,7 @@ export class Kernel { * @param {string | undefined} [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined] * @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. * @param {string} [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API. - * @param {number} [opts.timeout=5 seconds] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. + * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls. * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request. @@ -207,7 +207,7 @@ export class Kernel { } this.baseURL = options.baseURL || environments[options.environment || 'production']; - this.timeout = options.timeout ?? Kernel.DEFAULT_TIMEOUT /* 5 seconds */; + this.timeout = options.timeout ?? Kernel.DEFAULT_TIMEOUT /* 1 minute */; this.logger = options.logger ?? console; const defaultLogLevel = 'warn'; // Set default logLevel early so that we can log a warning in parseLogLevel. @@ -761,7 +761,7 @@ export class Kernel { } static Kernel = this; - static DEFAULT_TIMEOUT = 5000; // 5 seconds + static DEFAULT_TIMEOUT = 60000; // 1 minute static KernelError = Errors.KernelError; static APIError = Errors.APIError; From 1474392dfc589d5c0ced460b7615e5e65b76c390 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 1 Aug 2025 19:26:15 +0000 Subject: [PATCH 5/5] release: 0.8.3 --- .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 2e1c40e..2a248c7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.8.2" + ".": "0.8.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index e6d1265..96c0acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.8.3 (2025-08-01) + +Full Changelog: [v0.8.2...v0.8.3](https://github.com/onkernel/kernel-node-sdk/compare/v0.8.2...v0.8.3) + +### Features + +* **api:** lower default timeout to 5s ([743b241](https://github.com/onkernel/kernel-node-sdk/commit/743b24161f294e289a6fe17537d02b8fe35f7b06)) +* **api:** manual updates ([d341269](https://github.com/onkernel/kernel-node-sdk/commit/d3412699e03073534c66912c0ccd607248655202)) + + +### Chores + +* **internal:** remove redundant imports config ([9da9247](https://github.com/onkernel/kernel-node-sdk/commit/9da92475e2a744e9f3714a83887ffba5c24559ee)) + ## 0.8.2 (2025-07-23) Full Changelog: [v0.8.0...v0.8.2](https://github.com/onkernel/kernel-node-sdk/compare/v0.8.0...v0.8.2) diff --git a/package.json b/package.json index 1c279fd..9c6fda5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.8.2", + "version": "0.8.3", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 72b24dd..c8e7320 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.8.2'; // x-release-please-version +export const VERSION = '0.8.3'; // x-release-please-version