diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6fbbb03d..217ff1a9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.71.1" + ".": "4.71.2" } diff --git a/.stats.yml b/.stats.yml index d1b66331..2262920e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,4 @@ configured_endpoints: 103 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-36a6db97756e8658369c9af3c0ac532ecacb032e5b8f6211094dcb4052943ff3.yml +openapi_spec_hash: 26886fa8e59fa3674320897e3409e540 +config_hash: ec4f1e02d3528e3a93a73e33bca17c2a diff --git a/CHANGELOG.md b/CHANGELOG.md index 60347468..ced65dc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.71.2 (2025-03-27) + +Full Changelog: [v4.71.1...v4.71.2](https://github.com/orbcorp/orb-node/compare/v4.71.1...v4.71.2) + +### Bug Fixes + +* **internal:** work around https://github.com/vercel/next.js/issues/76881 ([#575](https://github.com/orbcorp/orb-node/issues/575)) ([da607f1](https://github.com/orbcorp/orb-node/commit/da607f1208eb798f0802d5fd7dc5aa79feae0910)) + ## 4.71.1 (2025-03-21) Full Changelog: [v4.71.0...v4.71.1](https://github.com/orbcorp/orb-node/compare/v4.71.0...v4.71.1) diff --git a/package.json b/package.json index 39687857..9474a96f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.71.1", + "version": "4.71.2", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/_shims/index-deno.ts b/src/_shims/index-deno.ts index c9717159..1e94a0f6 100644 --- a/src/_shims/index-deno.ts +++ b/src/_shims/index-deno.ts @@ -108,3 +108,5 @@ export declare class FsReadStream extends Readable { const _ReadableStream = ReadableStream; type _ReadableStream = ReadableStream; export { _ReadableStream as ReadableStream }; + +export const init = () => {}; diff --git a/src/_shims/index.d.ts b/src/_shims/index.d.ts index a907b4d0..a0826078 100644 --- a/src/_shims/index.d.ts +++ b/src/_shims/index.d.ts @@ -79,3 +79,5 @@ export function fileFromPath(path: string, options?: FileFromPathOptions): Promi export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise; export function isFsReadStream(value: any): value is FsReadStream; + +export const init: () => void; diff --git a/src/_shims/index.js b/src/_shims/index.js index f804b6bf..c2bab56a 100644 --- a/src/_shims/index.js +++ b/src/_shims/index.js @@ -3,7 +3,9 @@ */ const shims = require('./registry'); const auto = require('orb-billing/_shims/auto/runtime'); -if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +exports.init = () => { + if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +}; for (const property of Object.keys(shims)) { Object.defineProperty(exports, property, { get() { @@ -11,3 +13,5 @@ for (const property of Object.keys(shims)) { }, }); } + +exports.init(); diff --git a/src/_shims/index.mjs b/src/_shims/index.mjs index f1368319..784ad774 100644 --- a/src/_shims/index.mjs +++ b/src/_shims/index.mjs @@ -3,5 +3,9 @@ */ import * as shims from './registry.mjs'; import * as auto from 'orb-billing/_shims/auto/runtime'; -if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +export const init = () => { + if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true }); +}; export * from './registry.mjs'; + +init(); diff --git a/src/core.ts b/src/core.ts index 9d47af11..b564d5fc 100644 --- a/src/core.ts +++ b/src/core.ts @@ -16,7 +16,12 @@ import { type RequestInit, type Response, type HeadersInit, + init, } from './_shims/index'; + +// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881 +init(); + export { type Response }; import { BlobLike, isBlobLike, isMultipartBody } from './uploads'; export { diff --git a/src/version.ts b/src/version.ts index 3474c77c..5463f86b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.71.1'; // x-release-please-version +export const VERSION = '4.71.2'; // x-release-please-version