From 783ea250cc5d7087f55dcd51744cdba53db2885b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:29:06 +0000 Subject: [PATCH 1/2] feat: support setting headers via env --- src/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/index.ts b/src/index.ts index 9f2b53c7..26242a52 100644 --- a/src/index.ts +++ b/src/index.ts @@ -338,6 +338,18 @@ export class Orb extends Core.APIClient { fetch: options.fetch, }); + const customHeadersEnv = Core.readEnv('ORB_CUSTOM_HEADERS'); + if (customHeadersEnv) { + const parsed: Record = {}; + for (const line of customHeadersEnv.split('\n')) { + const colon = line.indexOf(':'); + if (colon >= 0) { + parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim(); + } + } + options.defaultHeaders = { ...parsed, ...options.defaultHeaders }; + } + this._options = options; this.idempotencyHeader = 'Idempotency-Key'; From aff7c27615094108f97a0004a3f9fd4010777e90 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:30:57 +0000 Subject: [PATCH 2/2] release: 5.55.0 --- .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 fcc666eb..51f0408d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.54.0" + ".": "5.55.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index e5ddabdf..d0632631 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.55.0 (2026-04-27) + +Full Changelog: [v5.54.0...v5.55.0](https://github.com/orbcorp/orb-node/compare/v5.54.0...v5.55.0) + +### Features + +* support setting headers via env ([783ea25](https://github.com/orbcorp/orb-node/commit/783ea250cc5d7087f55dcd51744cdba53db2885b)) + ## 5.54.0 (2026-04-26) Full Changelog: [v5.53.0...v5.54.0](https://github.com/orbcorp/orb-node/compare/v5.53.0...v5.54.0) diff --git a/package.json b/package.json index 5639379f..8adfad79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.54.0", + "version": "5.55.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 7345a1b1..9afce48b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.54.0'; // x-release-please-version +export const VERSION = '5.55.0'; // x-release-please-version