From 45926d2db2f0f1a1fd69b9f8125b75cc3270935a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:47:41 -0400 Subject: [PATCH] release: 0.0.6 (#31) * chore(internal): codegen related update (#30) * release: 0.0.6 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/index.ts | 13 ------------- src/version.ts | 2 +- 5 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 45ca42f..b68e780 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.5" + ".": "0.0.6" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc45a4..0056843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.0.6 (2024-08-07) + +Full Changelog: [v0.0.5...v0.0.6](https://github.com/plastic-labs/honcho-node/compare/v0.0.5...v0.0.6) + +### Chores + +* **internal:** codegen related update ([#30](https://github.com/plastic-labs/honcho-node/issues/30)) ([42b6a61](https://github.com/plastic-labs/honcho-node/commit/42b6a616180b26771390f681c2c3d68c8c60ac50)) + ## 0.0.5 (2024-08-01) Full Changelog: [v0.0.4...v0.0.5](https://github.com/plastic-labs/honcho-node/compare/v0.0.4...v0.0.5) diff --git a/package.json b/package.json index 981d315..ab0d088 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "honcho-ai", - "version": "0.0.5", + "version": "0.0.6", "description": "The official TypeScript library for the Honcho API", "author": "Honcho ", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 3e6c217..8786a0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -150,19 +150,6 @@ export class Honcho extends Core.APIClient { }; } - protected override validateHeaders(headers: Core.Headers, customHeaders: Core.Headers) { - if (this.apiKey && headers['authorization']) { - return; - } - if (customHeaders['authorization'] === null) { - return; - } - - throw new Error( - 'Could not resolve authentication method. Expected the apiKey to be set. Or for the "Authorization" headers to be explicitly omitted', - ); - } - protected override authHeaders(opts: Core.FinalRequestOptions): Core.Headers { if (this.apiKey == null) { return {}; diff --git a/src/version.ts b/src/version.ts index 2922e88..889bbf1 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.5'; // x-release-please-version +export const VERSION = '0.0.6'; // x-release-please-version