Skip to content

Commit aac7f6d

Browse files
authored
Merge pull request #424 from openai/release-please--branches--master--changes--next--components--openai
release: 4.15.2
2 parents f9a3014 + 65938c3 commit aac7f6d

File tree

6 files changed

+27
-12
lines changed

6 files changed

+27
-12
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.15.1"
2+
".": "4.15.2"
33
}

CHANGELOG.md

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

3+
## 4.15.2 (2023-11-04)
4+
5+
Full Changelog: [v4.15.1...v4.15.2](https://github.com/openai/openai-node/compare/v4.15.1...v4.15.2)
6+
7+
### Documentation
8+
9+
* fix deno.land import ([#423](https://github.com/openai/openai-node/issues/423)) ([e5415a2](https://github.com/openai/openai-node/commit/e5415a29ab447ced8535fafda7928b0a6748c8d1))
10+
311
## 4.15.1 (2023-11-04)
412

513
Full Changelog: [v4.15.0...v4.15.1](https://github.com/openai/openai-node/compare/v4.15.0...v4.15.1)

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ yarn add openai
1818

1919
You can import in Deno via:
2020

21-
<!-- x-release-please-start-version -->
22-
2321
```ts
24-
import OpenAI from 'https://raw.githubusercontent.com/openai/openai-node/v4.15.0-deno/mod.ts';
22+
import OpenAI from 'https://deno.land/x/openai';
2523
```
2624

27-
<!-- x-release-please-end -->
28-
2925
## Usage
3026

3127
The full API of this library can be found in [api.md file](https://github.com/openai/openai-node/blob/master/api.md). The code below shows how to get started using the chat completions API.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openai",
3-
"version": "4.15.1",
3+
"version": "4.15.2",
44
"description": "Client library for the OpenAI API",
55
"author": "OpenAI <[email protected]>",
66
"types": "dist/index.d.ts",

scripts/git-publish-deno.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
set -exuo pipefail
23

34
# This script pushes the contents of the `deno`` directory to the `deno` branch,
45
# and creates a `vx.x.x-deno` tag, so that Deno users can
@@ -10,6 +11,7 @@
1011
# - Set the following environment variables when running this script:
1112
# - DENO_PUSH_REMOTE_URL - the remote url of the separate GitHub repo
1213
# - DENO_PUSH_BRANCH - the branch you want to push to in that repo (probably `main`)
14+
# - DENO_MAIN_BRANCH - the branch you want as the main branch in that repo (probably `main`, sometimes `master`)
1315
# - DENO_PUSH_VERSION - defaults to version in package.json
1416
# - DENO_PUSH_RELEASE_TAG - defaults to v$DENO_PUSH_VERSION-deno
1517

@@ -18,8 +20,6 @@ die () {
1820
exit 1
1921
}
2022

21-
set -exuo pipefail
22-
2323
# Allow caller to set the following environment variables, but provide defaults
2424
# if unset
2525
# : "${FOO:=bar}" sets FOO=bar unless it's set and non-empty
@@ -28,8 +28,15 @@ set -exuo pipefail
2828

2929
: "${DENO_PUSH_VERSION:=$(node -p 'require("./package.json").version')}"
3030
: "${DENO_PUSH_BRANCH:=deno}"
31+
: "${DENO_MAIN_BRANCH:=main}"
3132
: "${DENO_PUSH_REMOTE_URL:=$(git remote get-url origin)}"
32-
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}"
33+
: "${DENO_GIT_USER_NAME:="Stainless Bot"}"
34+
: "${DENO_GIT_USER_NAME:="[email protected]"}"
35+
if [[ $DENO_PUSH_BRANCH = "deno" ]]; then
36+
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION-deno"}"
37+
else
38+
: "${DENO_PUSH_RELEASE_TAG:="v$DENO_PUSH_VERSION"}"
39+
fi
3340

3441
if [ ! -e deno ]; then ./build; fi
3542

@@ -41,7 +48,7 @@ if [ ! -e deno ]; then ./build; fi
4148

4249
cd deno
4350
rm -rf .git
44-
git init
51+
git init -b "$DENO_MAIN_BRANCH"
4552
git remote add origin "$DENO_PUSH_REMOTE_URL"
4653
if git fetch origin "$DENO_PUSH_RELEASE_TAG"; then
4754
die "Tag $DENO_PUSH_RELEASE_TAG already exists"
@@ -56,6 +63,10 @@ else
5663
# the branch doesn't exist on the remote yet
5764
git checkout -b "$DENO_PUSH_BRANCH"
5865
fi
66+
67+
git config user.email "$DENO_GIT_USER_EMAIL"
68+
git config user.name "$DENO_GIT_USER_NAME"
69+
5970
git add .
6071
git commit -m "chore(deno): release $DENO_PUSH_VERSION"
6172
git tag -a "$DENO_PUSH_RELEASE_TAG" -m "release $DENO_PUSH_VERSION"

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '4.15.1'; // x-release-please-version
1+
export const VERSION = '4.15.2'; // x-release-please-version

0 commit comments

Comments
 (0)