Skip to content

Commit

Permalink
Merge pull request #56 from AssemblyAI/E07417BDFEA3614F5967B1520F8B2F61
Browse files Browse the repository at this point in the history
Sync from internal repo (2024/06/10)
  • Loading branch information
Swimburger authored Jun 10, 2024
2 parents 99736e3 + 02878a6 commit fe04165
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [4.4.6]

- Fix Rollup exports so \_\_SDK_VERSION\_\_ is properly replaced with the version of the SDK.

## [4.4.5]

- Add new `PiiPolicy` enum values
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": "assemblyai",
"version": "4.4.5",
"version": "4.4.6",
"description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
"engines": {
"node": ">=18"
Expand Down
25 changes: 20 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ module.exports = [
},
{
input: "src/exports/index.ts",
plugins: [ts({ compilerOptions: { customConditions: ["node"] } })],
plugins: [
replacePlugin,
ts({ compilerOptions: { customConditions: ["node"] } }),
],
external: ["fs", "stream", "stream/web", "ws"],
output: [
{
Expand All @@ -86,7 +89,10 @@ module.exports = [
},
{
input: "src/exports/index.ts",
plugins: [ts({ compilerOptions: { customConditions: ["deno"] } })],
plugins: [
replacePlugin,
ts({ compilerOptions: { customConditions: ["deno"] } }),
],
external: ["ws"],
output: [
{
Expand All @@ -98,7 +104,10 @@ module.exports = [
},
{
input: "src/exports/index.ts",
plugins: [ts({ compilerOptions: { customConditions: ["bun"] } })],
plugins: [
replacePlugin,
ts({ compilerOptions: { customConditions: ["bun"] } }),
],
external: ["ws"],
output: [
{
Expand All @@ -111,7 +120,10 @@ module.exports = [
// Browser ESM build
{
input: "src/exports/index.ts",
plugins: [ts({ compilerOptions: { customConditions: ["browser"] } })],
plugins: [
replacePlugin,
ts({ compilerOptions: { customConditions: ["browser"] } }),
],
output: [
{
file: `./dist/browser.mjs`,
Expand All @@ -122,7 +134,10 @@ module.exports = [
},
{
input: "src/exports/streaming.ts",
plugins: [ts({ compilerOptions: { customConditions: ["browser"] } })],
plugins: [
replacePlugin,
ts({ compilerOptions: { customConditions: ["browser"] } }),
],
output: [
{
file: `./dist/streaming.browser.mjs`,
Expand Down

0 comments on commit fe04165

Please sign in to comment.