Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.71.1"
".": "4.72.0"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.72.0 (2024-11-12)

Full Changelog: [v4.71.1...v4.72.0](https://github.com/openai/openai-node/compare/v4.71.1...v4.72.0)

### Features

* add back deno runtime testing without type checks ([1626cf5](https://github.com/openai/openai-node/commit/1626cf57e94706e1fc8b2f9ff4f173fe486d5150))


### Chores

* **ecosystem-tests:** bump wrangler version ([#1178](https://github.com/openai/openai-node/issues/1178)) ([4dfb0c6](https://github.com/openai/openai-node/commit/4dfb0c6aa7c4530665bc7d6beebcd04aa1490e27))

## 4.71.1 (2024-11-06)

Full Changelog: [v4.71.0...v4.71.1](https://github.com/openai/openai-node/compare/v4.71.0...v4.71.1)
Expand Down
18 changes: 8 additions & 10 deletions ecosystem-tests/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,14 @@ const projectRunners = {
await run('bun', ['test']);
}
},
// Temporarily comment this out until we can test with JSR transformations end-to-end.
// deno: async () => {
// // we don't need to explicitly install the package here
// // because our deno setup relies on `rootDir/deno` to exist
// // which is an artifact produced from our build process
// await run('deno', ['task', 'install']);
// await run('deno', ['task', 'check']);

// if (state.live) await run('deno', ['task', 'test']);
// },
deno: async () => {
// we don't need to explicitly install the package here
// because our deno setup relies on `rootDir/dist-deno` to exist
// which is an artifact produced from our build process
await run('deno', ['task', 'install', '--unstable-sloppy-imports']);

if (state.live) await run('deno', ['task', 'test']);
},
};

let projectNames = Object.keys(projectRunners) as Array<keyof typeof projectRunners>;
Expand Down
7 changes: 3 additions & 4 deletions ecosystem-tests/deno/deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"tasks": {
"install": "deno install --node-modules-dir main_test.ts -f",
"check": "deno lint && deno check main_test.ts",
"test": "deno test --allow-env --allow-net --allow-read --node-modules-dir"
"test": "deno test --allow-env --allow-net --allow-read --node-modules-dir --unstable-sloppy-imports --no-check"
},
"imports": {
"openai": "../../deno/mod.ts",
"openai/": "../../deno/"
"openai": "../../dist-deno/index.ts",
"openai/": "../../dist-deno/"
}
}
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openai/openai",
"version": "4.71.1",
"version": "4.72.0",
"exports": "./index.ts",
"publish": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openai",
"version": "4.71.1",
"version": "4.72.0",
"description": "The official TypeScript library for the OpenAI API",
"author": "OpenAI <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
18 changes: 13 additions & 5 deletions scripts/build-deno
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ cd "$(dirname "$0")/.."
rm -rf dist-deno; mkdir dist-deno
cp -rp src/* jsr.json dist-deno

rm -rf dist-deno/shims

rm dist-deno/_shims/node*.{js,mjs,ts}
rm dist-deno/_shims/manual*.{js,mjs,ts}
rm dist-deno/_shims/index.{d.ts,js,mjs}
for file in dist-deno/_shims/*-deno.ts; do
mv -- "$file" "${file%-deno.ts}.ts"
done

rm dist-deno/_shims/auto/*-node.ts
for dir in dist-deno/_shims dist-deno/_shims/auto; do
rm "${dir}"/*.{d.ts,js,mjs}
for file in "${dir}"/*-deno.ts; do
mv -- "$file" "${file%-deno.ts}.ts"
done
rm dist-deno/_shims/auto/*.{d.ts,js,mjs}
for file in dist-deno/_shims/auto/*-deno.ts; do
mv -- "$file" "${file%-deno.ts}.ts"
done

for file in README.md LICENSE CHANGELOG.md; do
if [ -e "${file}" ]; then cp "${file}" dist-deno; fi
done
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.71.1'; // x-release-please-version
export const VERSION = '4.72.0'; // x-release-please-version