diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fd68703c5..1c21a9343 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.20.0" + ".": "4.20.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e1282079..331e2bd37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 4.20.1 (2023-11-24) + +Full Changelog: [v4.20.0...v4.20.1](https://github.com/openai/openai-node/compare/v4.20.0...v4.20.1) + +### Chores + +* **internal:** remove file import and conditionally run prepare ([#533](https://github.com/openai/openai-node/issues/533)) ([48cb729](https://github.com/openai/openai-node/commit/48cb729bfc484ce3d04273be417b307a0d20644f)) + + +### Documentation + +* **readme:** fix typo and add examples link ([#529](https://github.com/openai/openai-node/issues/529)) ([cf959b1](https://github.com/openai/openai-node/commit/cf959b17db0a4f8dd7eb59add333c4a461b02459)) + ## 4.20.0 (2023-11-22) Full Changelog: [v4.19.1...v4.20.0](https://github.com/openai/openai-node/compare/v4.19.1...v4.20.0) diff --git a/README.md b/README.md index 5c318b169..4c5c6666a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You can import in Deno via: ```ts -import OpenAI from 'https://deno.land/x/openai@v4.20.0/mod.ts'; +import OpenAI from 'https://deno.land/x/openai@v4.20.1/mod.ts'; ``` diff --git a/build-deno b/build-deno index 4d09c455a..610d47c27 100755 --- a/build-deno +++ b/build-deno @@ -14,7 +14,7 @@ This is a build produced from https://github.com/openai/openai-node – please g Usage: \`\`\`ts -import OpenAI from "https://deno.land/x/openai@v4.20.0/mod.ts"; +import OpenAI from "https://deno.land/x/openai@v4.20.1/mod.ts"; const client = new OpenAI(); \`\`\` diff --git a/package.json b/package.json index c36545437..2e8317c67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openai", - "version": "4.20.0", + "version": "4.20.1", "description": "The official TypeScript library for the OpenAI API", "author": "OpenAI ", "types": "dist/index.d.ts", @@ -15,7 +15,7 @@ "prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1", "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1", "format": "prettier --write --cache --cache-strategy metadata . !dist", - "prepare": "npm run build", + "prepare": "if [ $(basename $(dirname $PWD)) = 'node_modules' ]; then npm run build; fi", "tsn": "ts-node -r tsconfig-paths/register", "lint": "eslint --ext ts,js .", "fix": "eslint --fix --ext ts,js ." @@ -39,7 +39,6 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-unused-imports": "^2.0.0", "jest": "^29.4.0", - "openai": "file:.", "prettier": "rattrayalex/prettier#postfix-ternaries", "ts-jest": "^29.1.0", "ts-morph": "^19.0.0", @@ -56,6 +55,10 @@ "./shims/web.js", "./shims/web.mjs" ], + "imports": { + "openai": ".", + "openai/*": "./src/*" + }, "exports": { "./_shims/auto/*": { "deno": { diff --git a/src/version.ts b/src/version.ts index 2963d8825..fb0af904c 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.20.0'; // x-release-please-version +export const VERSION = '4.20.1'; // x-release-please-version diff --git a/yarn.lock b/yarn.lock index 6c1f3ddbb..4ddf947ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3062,19 +3062,6 @@ onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" -"openai@file:.": - version "4.19.1" - dependencies: - "@types/node" "^18.11.18" - "@types/node-fetch" "^2.6.4" - abort-controller "^3.0.0" - agentkeepalive "^4.2.1" - digest-fetch "^1.3.0" - form-data-encoder "1.7.2" - formdata-node "^4.3.2" - node-fetch "^2.6.7" - web-streams-polyfill "^3.2.1" - optionator@^0.9.3: version "0.9.3" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64"