From be8e18ba4c6a16e7b6413c77246f83230e0b8fc2 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:52:10 +0100 Subject: [PATCH 1/2] fix: import web-streams-polyfill without overriding globals (#385) --- src/_shims/node-runtime.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_shims/node-runtime.ts b/src/_shims/node-runtime.ts index cc16e8542..7d24b7077 100644 --- a/src/_shims/node-runtime.ts +++ b/src/_shims/node-runtime.ts @@ -13,7 +13,9 @@ import { Readable } from 'node:stream'; import { type RequestOptions } from '../core'; import { MultipartBody } from './MultipartBody'; import { type Shims } from './registry'; -import { ReadableStream } from 'web-streams-polyfill'; + +// @ts-ignore (this package does not have proper export maps for this export) +import { ReadableStream } from 'web-streams-polyfill/dist/ponyfill.es2018.js'; type FileFromPathOptions = Omit; From b61cdb0ead90d949eeb56c24e44e7b57c18e87ba Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:52:29 +0100 Subject: [PATCH 2/2] release: 4.12.4 --- .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 b0b1b578b..a9e8de513 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.12.3" + ".": "4.12.4" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 85790a768..71d1f75d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.12.4 (2023-10-17) + +Full Changelog: [v4.12.3...v4.12.4](https://github.com/openai/openai-node/compare/v4.12.3...v4.12.4) + +### Bug Fixes + +* import web-streams-polyfill without overriding globals ([#385](https://github.com/openai/openai-node/issues/385)) ([be8e18b](https://github.com/openai/openai-node/commit/be8e18ba4c6a16e7b6413c77246f83230e0b8fc2)) + ## 4.12.3 (2023-10-16) Full Changelog: [v4.12.2...v4.12.3](https://github.com/openai/openai-node/compare/v4.12.2...v4.12.3) diff --git a/package.json b/package.json index 2fd8e7018..98531f013 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.12.3", + "version": "4.12.4", "description": "Client library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 65031c96f..d02576568 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.12.3'; // x-release-please-version +export const VERSION = '4.12.4'; // x-release-please-version