diff --git a/.changeset/anthropic-thinking-tokens-metric.md b/.changeset/anthropic-thinking-tokens-metric.md deleted file mode 100644 index b16538632..000000000 --- a/.changeset/anthropic-thinking-tokens-metric.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -fix(anthropic): Record thinking tokens as metric diff --git a/.changeset/bright-images-generate.md b/.changeset/bright-images-generate.md deleted file mode 100644 index f444e4aa7..000000000 --- a/.changeset/bright-images-generate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -feat: Instrument Vercel AI SDK image generation diff --git a/.changeset/deepseek-harness-plugin.md b/.changeset/deepseek-harness-plugin.md deleted file mode 100644 index 2934f7a7f..000000000 --- a/.changeset/deepseek-harness-plugin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@braintrust/deepseek-harness": major ---- - -feat: Add DeepSeek Harness plugin diff --git a/.changeset/deprecate-legacy-integrations.md b/.changeset/deprecate-legacy-integrations.md deleted file mode 100644 index 87eab68ff..000000000 --- a/.changeset/deprecate-legacy-integrations.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@braintrust/langchain-js": patch -"@braintrust/openai-agents": patch -"@braintrust/vercel-ai-sdk": patch ---- - -ref: Deprecate `@braintrust/openai-agents`, `@braintrust/langchain-js`, and `@braintrust/vercel-ai-sdk` diff --git a/.changeset/eval-auto-instrumentation.md b/.changeset/eval-auto-instrumentation.md deleted file mode 100644 index ac1d867a1..000000000 --- a/.changeset/eval-auto-instrumentation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": minor ---- - -feat: Apply auto instrumentation with eval command diff --git a/.changeset/eve-instrumentation-hooks.md b/.changeset/eve-instrumentation-hooks.md deleted file mode 100644 index 5211c2ebd..000000000 --- a/.changeset/eve-instrumentation-hooks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": minor ---- - -feat: Use new eve instrumentation hooks diff --git a/.changeset/fix-wrap-traced-no-trace-io.md b/.changeset/fix-wrap-traced-no-trace-io.md deleted file mode 100644 index c61185996..000000000 --- a/.changeset/fix-wrap-traced-no-trace-io.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -fix: Don't ignore `noTraceIO` for `wrapTraced` around plain functions diff --git a/.changeset/langchain-reasoning-tokens-metric.md b/.changeset/langchain-reasoning-tokens-metric.md deleted file mode 100644 index 67b703aed..000000000 --- a/.changeset/langchain-reasoning-tokens-metric.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -fix(langchain): Record reasoning tokens as metric diff --git a/.changeset/openai-streaming-choices.md b/.changeset/openai-streaming-choices.md deleted file mode 100644 index 51a5aaa71..000000000 --- a/.changeset/openai-streaming-choices.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -fix: Preserve all OpenAI streaming chat choices in instrumentation output diff --git a/.changeset/promote-packages-to-v1.md b/.changeset/promote-packages-to-v1.md deleted file mode 100644 index 64fea6f3f..000000000 --- a/.changeset/promote-packages-to-v1.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@braintrust/browser": major -"@braintrust/deepseek-harness": major -"@braintrust/otel": major -"@braintrust/templates-nunjucks-js": major -"@braintrust/temporal": major ---- - -Promote these packages to version 1. There are no breaking changes in this release. diff --git a/.changeset/remove-enter-with.md b/.changeset/remove-enter-with.md deleted file mode 100644 index d661de675..000000000 --- a/.changeset/remove-enter-with.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -ref: Remove `AsyncLocalStorage.enterWith()` usage diff --git a/.changeset/support-dataset-id.md b/.changeset/support-dataset-id.md deleted file mode 100644 index 60748aeaa..000000000 --- a/.changeset/support-dataset-id.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": minor ---- - -feat: Support `datasetId` in `initDataset()` diff --git a/.changeset/use-api-key-in-load-prompt.md b/.changeset/use-api-key-in-load-prompt.md deleted file mode 100644 index e7b82373c..000000000 --- a/.changeset/use-api-key-in-load-prompt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"braintrust": patch ---- - -feat: Use `apiKey` arg in `loadPrompt` diff --git a/integrations/browser-js/CHANGELOG.md b/integrations/browser-js/CHANGELOG.md index 8d03c4bf5..b8861bdd9 100644 --- a/integrations/browser-js/CHANGELOG.md +++ b/integrations/browser-js/CHANGELOG.md @@ -1,5 +1,13 @@ # @braintrust/browser +## 1.0.0 + +This release promotes `@braintrust/browser` to semver major version 1.0.0. There are no breaking changes in this release. + +### Patch Changes + +- Updated dependencies: braintrust@3.29.0 + ## 0.0.2-rc.4 ### Patch Changes diff --git a/integrations/browser-js/package.json b/integrations/browser-js/package.json index 62ff4c925..e74dc1c1b 100644 --- a/integrations/browser-js/package.json +++ b/integrations/browser-js/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/browser", - "version": "0.0.3", + "version": "1.0.0", "description": "Braintrust SDK for browser environments with AsyncLocalStorage polyfill", "type": "module", "module": "./dist/index.js", diff --git a/integrations/deepseek-harness/CHANGELOG.md b/integrations/deepseek-harness/CHANGELOG.md new file mode 100644 index 000000000..0cf575868 --- /dev/null +++ b/integrations/deepseek-harness/CHANGELOG.md @@ -0,0 +1,11 @@ +# @braintrust/deepseek-harness + +## 1.0.0 + +### Major Changes + +- feat: Add DeepSeek Harness plugin (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2370) + +### Patch Changes + +- Updated dependencies: braintrust@3.29.0 diff --git a/integrations/deepseek-harness/package.json b/integrations/deepseek-harness/package.json index 1038e5283..03ca09617 100644 --- a/integrations/deepseek-harness/package.json +++ b/integrations/deepseek-harness/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/deepseek-harness", - "version": "0.1.0", + "version": "1.0.0", "description": "Braintrust tracing plugin for DeepSeek Harness", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/langchain-js/CHANGELOG.md b/integrations/langchain-js/CHANGELOG.md index ae09b37ae..2ab7af78b 100644 --- a/integrations/langchain-js/CHANGELOG.md +++ b/integrations/langchain-js/CHANGELOG.md @@ -1,5 +1,21 @@ # @braintrust/langchain-js +## 0.2.5 + +- `@braintrust/langchain-js` is now deprecated. This release marks the last release for this package. (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2383) +- Updated dependencies: braintrust@3.29.0 + +### Migration + +To migrate, install `braintrust` and import `BraintrustLangChainCallbackHandler` +from `braintrust` instead. See the +[LangChain integration guide](https://www.braintrust.dev/docs/integrations/sdk-integrations/langchain) +for setup examples. For application-wide instrumentation, use the Braintrust +runtime hook described in the +[auto-instrumentation guide](https://www.braintrust.dev/docs/instrument/trace-llm-calls#auto-instrumentation). +`setGlobalHandler` has no direct replacement; use automatic instrumentation or +pass the callback handler explicitly. + ## 0.2.4 ### Patch Changes diff --git a/integrations/langchain-js/package.json b/integrations/langchain-js/package.json index 64787e6c7..36e1b88f1 100644 --- a/integrations/langchain-js/package.json +++ b/integrations/langchain-js/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/langchain-js", - "version": "0.2.4", + "version": "0.2.5", "description": "SDK for integrating Braintrust with LangChain.js", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/openai-agents-js/CHANGELOG.md b/integrations/openai-agents-js/CHANGELOG.md index 4fdd749f6..39db538e6 100644 --- a/integrations/openai-agents-js/CHANGELOG.md +++ b/integrations/openai-agents-js/CHANGELOG.md @@ -1,5 +1,17 @@ # @braintrust/openai-agents +## 0.1.6 + +- `@braintrust/openai-agents` is now deprecated. This release marks the last release for this package. (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2383) +- Updated dependencies: braintrust@3.29.0 + +### Migration + +To migrate, install `braintrust` and import `OpenAIAgentsTraceProcessor` from +`braintrust/instrumentation` instead. See the +[OpenAI Agents SDK integration guide](https://www.braintrust.dev/docs/integrations/agent-frameworks/openai-agents-sdk) +for setup examples. + ## 0.1.5 ### Patch Changes diff --git a/integrations/openai-agents-js/package.json b/integrations/openai-agents-js/package.json index 7d4251dc6..f9f57ea10 100644 --- a/integrations/openai-agents-js/package.json +++ b/integrations/openai-agents-js/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/openai-agents", - "version": "0.1.5", + "version": "0.1.6", "description": "SDK for integrating Braintrust with OpenAI Agents", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/otel-js/CHANGELOG.md b/integrations/otel-js/CHANGELOG.md index 3080f5278..328cebea0 100644 --- a/integrations/otel-js/CHANGELOG.md +++ b/integrations/otel-js/CHANGELOG.md @@ -1,5 +1,13 @@ # @braintrust/otel +## 1.0.0 + +This release promotes `@braintrust/otel` to semver major version 1.0.0. There are no breaking changes in this release. + +### Patch Changes + +- Updated dependencies: braintrust@3.29.0 + ## 0.3.0 ### Minor Changes diff --git a/integrations/otel-js/package.json b/integrations/otel-js/package.json index fbe53966a..157c4e983 100644 --- a/integrations/otel-js/package.json +++ b/integrations/otel-js/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/otel", - "version": "0.3.0", + "version": "1.0.0", "description": "SDK for integrating Braintrust with OpenTelemetry", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/templates-nunjucks/CHANGELOG.md b/integrations/templates-nunjucks/CHANGELOG.md index b5c38bb9c..2fa35ee42 100644 --- a/integrations/templates-nunjucks/CHANGELOG.md +++ b/integrations/templates-nunjucks/CHANGELOG.md @@ -1,5 +1,13 @@ # @braintrust/templates-nunjucks-js +## 1.0.0 + +This release promotes `@braintrust/templates-nunjucks-js` to semver major version 1.0.0. There are no breaking changes in this release. + +### Patch Changes + +- Updated dependencies: braintrust@3.29.0 + ## 0.0.1 ### Patch Changes diff --git a/integrations/templates-nunjucks/package.json b/integrations/templates-nunjucks/package.json index 2ca0c8a91..c0d03a4ac 100644 --- a/integrations/templates-nunjucks/package.json +++ b/integrations/templates-nunjucks/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/templates-nunjucks-js", - "version": "0.0.1", + "version": "1.0.0", "description": "Nunjucks templating support for the Braintrust JS SDK", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/temporal-js/CHANGELOG.md b/integrations/temporal-js/CHANGELOG.md index cb69d9890..f645afd4e 100644 --- a/integrations/temporal-js/CHANGELOG.md +++ b/integrations/temporal-js/CHANGELOG.md @@ -1,5 +1,13 @@ # @braintrust/temporal +## 1.0.0 + +This release promotes `@braintrust/temporal` to semver major version 1.0.0. There are no breaking changes in this release. + +### Patch Changes + +- Updated dependencies: braintrust@3.29.0 + ## 0.1.1 ### Patch Changes diff --git a/integrations/temporal-js/package.json b/integrations/temporal-js/package.json index c1189021f..a303c5dfc 100644 --- a/integrations/temporal-js/package.json +++ b/integrations/temporal-js/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/temporal", - "version": "0.1.1", + "version": "1.0.0", "description": "SDK for integrating Braintrust with Temporal", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/integrations/vercel-ai-sdk/CHANGELOG.md b/integrations/vercel-ai-sdk/CHANGELOG.md index 0fd29d01e..131233302 100644 --- a/integrations/vercel-ai-sdk/CHANGELOG.md +++ b/integrations/vercel-ai-sdk/CHANGELOG.md @@ -1,5 +1,24 @@ # @braintrust/vercel-ai-sdk +## 0.0.7 + +- `@braintrust/vercel-ai-sdk` is now deprecated. This release marks the last release for this package. (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2383) +- Updated dependencies: braintrust@3.29.0 + +### Migration + +To migrate manual instrumentation, install `braintrust` and use `wrapAISDK` +from `braintrust` as described in the +[Vercel AI SDK integration guide](https://www.braintrust.dev/docs/integrations/sdk-integrations/vercel). +Automatic AI SDK instrumentation is also available through the Braintrust +runtime hook and supported bundler integrations; see the +[auto-instrumentation guide](https://www.braintrust.dev/docs/instrument/trace-llm-calls#auto-instrumentation) +for setup instructions. The legacy `BraintrustAdapter` stream conversion +helpers have no direct replacement; migrate those usages to `BraintrustStream` +from `braintrust`, documented in the +[TypeScript SDK reference](https://www.braintrust.dev/docs/reference/libs/nodejs), +and the current AI SDK stream response APIs. + ## 0.0.6 ### Patch Changes diff --git a/integrations/vercel-ai-sdk/package.json b/integrations/vercel-ai-sdk/package.json index 561a9069b..dcc0f2bf0 100644 --- a/integrations/vercel-ai-sdk/package.json +++ b/integrations/vercel-ai-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@braintrust/vercel-ai-sdk", - "version": "0.0.6", + "version": "0.0.7", "description": "SDK for integrating Braintrust with Vercel AI SDK", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/js/CHANGELOG.md b/js/CHANGELOG.md index 3f76ffdc1..e5aee0a27 100644 --- a/js/CHANGELOG.md +++ b/js/CHANGELOG.md @@ -1,5 +1,23 @@ # braintrust +## 3.29.0 + +### Minor Changes + +- feat: Apply auto instrumentation with eval command (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2360) +- feat: Use new eve instrumentation hooks (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2373) +- feat: Support `datasetId` in `initDataset()` (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2398) + +### Patch Changes + +- fix(anthropic): Record thinking tokens as metric Thanks @dylanpulver! (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2382) +- feat: Instrument Vercel AI SDK image generation Thanks @laithmunir9! (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2402) +- fix: Don't ignore `noTraceIO` for `wrapTraced` around plain functions (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2376) +- fix(langchain): Record reasoning tokens as metric Thanks @dylanpulver! (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2393) +- fix: Preserve all OpenAI streaming chat choices in instrumentation output Thanks @jstar0! (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2387) +- ref: Remove `AsyncLocalStorage.enterWith()` usage (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2401) +- feat: Use `apiKey` arg in `loadPrompt` (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2375) + ## 3.28.0 ### Minor Changes diff --git a/js/package.json b/js/package.json index b2622c387..2ba4f210e 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "braintrust", - "version": "3.28.0", + "version": "3.29.0", "description": "SDK for integrating Braintrust", "repository": { "type": "git",