Skip to content

Commit fb228dc

Browse files
authored
Merge pull request #809 from openai/release-please--branches--master--changes--next--components--openai
release: 4.39.1
2 parents 3dabda8 + 3aaff04 commit fb228dc

21 files changed

+98
-85
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.39.0"
2+
".": "4.39.1"
33
}

.stats.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
configured_endpoints: 63
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-0839c14b2b61dad4e830884410cfc3695546682ced009e50583c8bb5c44512d7.yml

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 4.39.1 (2024-04-30)
4+
5+
Full Changelog: [v4.39.0...v4.39.1](https://github.com/openai/openai-node/compare/v4.39.0...v4.39.1)
6+
7+
### Chores
8+
9+
* **internal:** add link to openapi spec ([#810](https://github.com/openai/openai-node/issues/810)) ([61b5b83](https://github.com/openai/openai-node/commit/61b5b83e82dd723e9584232f3b805ed13e58e13d))
10+
* **internal:** fix release please for deno ([#808](https://github.com/openai/openai-node/issues/808)) ([ecc2eae](https://github.com/openai/openai-node/commit/ecc2eaec602eb9fe518f011920d8500e01fde01b))
11+
* **internal:** refactor scripts ([#806](https://github.com/openai/openai-node/issues/806)) ([9283519](https://github.com/openai/openai-node/commit/928351928054feb56f8797587c70f74d06c2737c))
12+
313
## 4.39.0 (2024-04-29)
414

515
Full Changelog: [v4.38.5...v4.39.0](https://github.com/openai/openai-node/compare/v4.38.5...v4.39.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can import in Deno via:
1919
<!-- x-release-please-start-version -->
2020

2121
```ts
22-
import OpenAI from 'https://deno.land/x/[email protected].0/mod.ts';
22+
import OpenAI from 'https://deno.land/x/[email protected].1/mod.ts';
2323
```
2424

2525
<!-- x-release-please-end -->

bin/check-test-server

Lines changed: 0 additions & 50 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "4.39.0",
3+
"version": "4.39.1",
44
"description": "The official TypeScript library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -15,13 +15,13 @@
1515
"private": false,
1616
"scripts": {
1717
"test": "./scripts/test",
18-
"build": "bash ./build",
18+
"build": "./scripts/build",
1919
"prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1",
2020
"prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1",
2121
"format": "prettier --write --cache --cache-strategy metadata . !dist",
22-
"prepare": "if ./scripts/check-is-in-git-install.sh; then npm run build; fi",
22+
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi",
2323
"tsn": "ts-node -r tsconfig-paths/register",
24-
"lint": "eslint --ext ts,js .",
24+
"lint": "./scripts/lint",
2525
"fix": "eslint --fix --ext ts,js ."
2626
},
2727
"dependencies": {

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@
6363
"extra-files": [
6464
"src/version.ts",
6565
"README.md",
66-
"build-deno"
66+
"scripts/build-deno"
6767
]
6868
}

scripts/bootstrap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
cd "$(dirname "$0")/.."
6+
7+
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
8+
9+
$PACKAGE_MANAGER install

build renamed to scripts/build

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
2+
23
set -exuo pipefail
34

4-
node scripts/check-version.cjs
5+
cd "$(dirname "$0")/.."
6+
7+
node scripts/utils/check-version.cjs
58

69
# Build into dist and will publish the package from there,
710
# so that src/resources/foo.ts becomes <package root>/resources/foo.js
@@ -22,7 +25,7 @@ if [ -e "bin/cli" ]; then
2225
fi
2326
# this converts the export map paths for the dist directory
2427
# and does a few other minor things
25-
node scripts/make-dist-package-json.cjs > dist/package.json
28+
node scripts/utils/make-dist-package-json.cjs > dist/package.json
2629

2730
# build to .js/.mjs/.d.ts files
2831
npm exec tsc-multi
@@ -32,22 +35,22 @@ cp src/_shims/auto/*.{d.ts,js,mjs} dist/_shims/auto
3235
# we need to add exports = module.exports = OpenAI Node to index.js;
3336
# No way to get that from index.ts because it would cause compile errors
3437
# when building .mjs
35-
node scripts/fix-index-exports.cjs
38+
node scripts/utils/fix-index-exports.cjs
3639
# with "moduleResolution": "nodenext", if ESM resolves to index.d.ts,
3740
# it'll have TS errors on the default import. But if it resolves to
3841
# index.d.mts the default import will work (even though both files have
3942
# the same export default statement)
4043
cp dist/index.d.ts dist/index.d.mts
4144
cp tsconfig.dist-src.json dist/src/tsconfig.json
4245

43-
node scripts/postprocess-files.cjs
46+
node scripts/utils/postprocess-files.cjs
4447

4548
# make sure that nothing crashes when we require the output CJS or
4649
# import the output ESM
4750
(cd dist && node -e 'require("openai")')
4851
(cd dist && node -e 'import("openai")' --input-type=module)
4952

50-
if command -v deno &> /dev/null && [ -e ./build-deno ]
53+
if command -v deno &> /dev/null && [ -e ./scripts/build-deno ]
5154
then
52-
./build-deno
55+
./scripts/build-deno
5356
fi

build-deno renamed to scripts/build-deno

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -exuo pipefail
44

5+
cd "$(dirname "$0")/.."
6+
57
rm -rf deno; mkdir deno
68
cp -rp src/* deno
79

@@ -14,7 +16,7 @@ This is a build produced from https://github.com/openai/openai-node – please g
1416
Usage:
1517
1618
\`\`\`ts
17-
import OpenAI from "https://deno.land/x/[email protected].0/mod.ts";
19+
import OpenAI from "https://deno.land/x/[email protected].1/mod.ts";
1820
1921
const client = new OpenAI();
2022
\`\`\`
@@ -37,7 +39,7 @@ done
3739
for file in LICENSE CHANGELOG.md; do
3840
if [ -e "${file}" ]; then cp "${file}" deno; fi
3941
done
40-
npm exec ts-node -T -- scripts/denoify.ts
42+
npm exec ts-node -T -- scripts/utils/denoify.ts
4143
deno fmt deno
4244
deno check deno/mod.ts
4345
if [ -e deno_tests ]; then

0 commit comments

Comments
 (0)