Skip to content

Releases: braintrustdata/braintrust-sdk-javascript

braintrust@3.11.0

19 May 13:46
79d04d3

Choose a tag to compare

3.11.0

Minor Changes

  • feat: Add instrumentation for @github/copilot-sdk (#1932)
  • feat: Add @openai/codex-sdk instrumentation (#1945)
  • feat: Add Firebase genkit instrumentation (#1948)
  • feat(vitest): Support projectId in wrapVitest (#1993)
  • feat(mistral): Instrument classification and moderation APIs (#1947)

Patch Changes

  • fix(openrouter): Capture reasoning (#1944)
  • fix(openai): Prevent reading body more than once (#1969)
  • fix(cohere): Wrap v2 subclient (#1943)
  • fix: Prevent duplicate LLM spans when multiple SDK instances are loaded in the same process (#1973)
  • fix(openrouter): Mark callModel parent spans as tasks and avoid double-counting metrics (#2005)
  • deps: Upgrade minimatch from v9 to v10. (#2000)
  • fix(groq): Capture reasoning for groq reasoning models (#1942)
  • fix(google-adk): Fix google adk agent naming (#1950)
  • fix: Cancel body consumption immediately for object store upload (#2001)
  • fix(deps): Upgrade Express to remove vulnerable transitive dependencies (#2002)
  • fix(google-genai): Capture multi-turn message APIs with wrapper (#1946)

@braintrust/vercel-ai-sdk@0.0.6

19 May 13:46
79d04d3

Choose a tag to compare

0.0.6

Patch Changes

  • Update the AI SDK dependency to a patched version and preserve stream adapter compatibility. (#1992)
  • Updated dependencies: braintrust@3.11.0

braintrust@3.10.0

04 May 21:38
ecaee2e

Choose a tag to compare

Minor Changes

  • feat: Add dataset versioning support (#1837)
  • feat: Add @cursor/sdk instrumentation (#1923)
  • feat: Add experiment dataset filters to experiment metadata (#1898)

Patch Changes

  • fix(auto-instrumentation): Skip over file transforms in bundler plugins when id is undefined (#1886)
  • fix: Fix export map for bundler plugins (#1870)
  • feat: Bump google ADK patching range to include new major 1.0.0 (#1885)
  • feat: Add instrumentation for groq-sdk (#1866)
  • fix: Correct the eval file extension shown in CLI directory warnings (#1928)
  • feat: Capture thinking with cohere (#1861)
  • fix: Capture reasoning in mistral (#1863)
  • fix(huggingface): Capture streamed tool calls (#1848)
  • fix(claude-agent-sdk): Nest built-in tools under sub-agents (#1881)

@braintrust/vercel-ai-sdk@0.0.5

04 May 21:38
ecaee2e

Choose a tag to compare

0.0.5

Patch Changes

  • Added toDataStreamResponse() as the preferred response helper for Braintrust streams.
  • Kept toAIStreamResponse() as a deprecated alias for compatibility.
  • Updated the adapter for compatibility with newer Zod versions.

@braintrust/browser@0.0.3

04 May 21:38
ecaee2e

Choose a tag to compare

Published @braintrust/browser@0.0.3.

braintrust@3.9.0

20 Apr 22:25
a3a67b8

Choose a tag to compare

Notable Changes

  • feat: Add instrumentation for @huggingface/inference (#1807)
  • feat: Add cohere-ai instrumentation (#1781)
  • feat: Add reranking instrumentation for AI SDK and Openrouter SDK #1824
  • feat: Instrument Google GenAI embedContent for text (#1821)
  • feat: Instrument Anthropic SDK tool runner (1833)

Other Changes

  • feat: Capture grounding metadata for Google GenAI (#1773)
  • feat: Track server tool use metrics for anthropic SDK (#1772)
  • feat: Add per-input trialCount support to Eval() (#1814)
  • feat(claude-agent-sdk): Improve task lifecycle and lifecycle details (#1777)
  • feat: Add x-bt-use-gateway header to allowed CORS headers (#1836)
  • perf: Remove zod from deepCopyEvent (#1796)
  • fix(auto-instrumentation): Use sync channel for AI SDK CJS streamText/streamObject in v4+ (#1768)
  • fix: Give AI SDK top-level api spans type function (#1769)
  • fix(openai): Collect logprob and refulsals output for streaming APIs (#1774)
  • fix(claude-agent-sdk): Don't drop tool spans for spawning subagents (#1779)
  • fix: Capture anthropic server tool use inputs for streaming APIs (#1776)
  • fix(ai-sdk): Restore prompt cache metrics (#1825)
  • fix(openai-agents): End child spans on trace end (#1813)
  • chore(auto-instrumentation): Upgrade @apm-js-collab/code-transformer to v0.12.0 (#1708)

JavaScript SDK v3.8.0

08 Apr 16:35
1505e09

Choose a tag to compare

Changelog

Features

  • Add @openrouter/agent instrumentation (#1761)
  • Add instrumentation for OpenAI responses.compact() (#1753)
  • Add embedding instrumentation to AI SDK (#1754)
  • Add instrumentation for @mistralai/mistralai (#1730)

Bug Fixes

  • Fix claude agent SDK tool nesting (#1755)
  • Fix AI SDK streaming version handling for v3/v4+/v5 (#1739)
  • Add tracing polyfill to workerd and edge-light runtimes (#1751)
  • Propagate TracingChannel span context in OTEL compat mode (#1724)
  • Allow sending undefined source for remote eval params (#1737)

Package: https://www.npmjs.com/package/braintrust/v/3.8.0

Full Changelog: js-sdk-v3.7.1...js-sdk-v3.8.0

JavaScript SDK v3.7.1

01 Apr 16:23
15a8616

Choose a tag to compare

Changelog

Bug Fixes

  • Preserve all streaming content block types (#1695)
  • Fix wrapOpenAI breaking native private fields of client (#1704)
  • Propagate templateFormat in ScorerBuilder.create() (#1706)
  • Rehydrate remote prompt parameters (#1697)

Other Changes

  • Use diagnostics channels for ai sdk wrapper (#1675)
  • Use diagnostics channel for openrouter wrapper (#1677)
  • Use diagnostics channel for anthropic wrapper (#1679)
  • Use diagnostics channel for claude agent sdk wrapper (#1678)
  • Use diagnostics channel for google gen ai wrapper (#1676)

Package: https://www.npmjs.com/package/braintrust/v/3.7.1

Full Changelog: js-sdk-v3.7.0...js-sdk-v3.7.1

JavaScript SDK v3.7.0

25 Mar 18:57
5480576

Choose a tag to compare

Changelog

Features

  • Add webpack loader for Turbopack support (#1647)

Bug Fixes

  • Align Google GenAI auto traces with wrappers (#1636)
  • Align Claude agent SDK trace parity between auto-instrumentation and wrappers (#1638)
  • Align Anthropic auto-instrumentation with wrappers (#1639)
  • Fully preserve returned promise in tracing channel hook (#1617)

Package: https://www.npmjs.com/package/braintrust/v/3.7.0

Full Changelog: js-sdk-v3.6.0...js-sdk-v3.7.0

JavaScript SDK v3.6.0

23 Mar 12:27
729d7aa

Choose a tag to compare

Changelog

Features

  • Add instrumentation for OpenRouter SDK (#1595)

Bug Fixes

  • APIPromise workaround in bundlers (#1623)

Maintenance

  • Bump version for 3.6.0 (#1630)
  • Add e2e tests for jest-node scenario (#1624)

Other Changes

  • Feat/fix: Keep track of span context for spans started via channel tracing (#1589)
  • Prefer version over environment in JS loaders (#1603)

Package: https://www.npmjs.com/package/braintrust/v/3.6.0

Full Changelog: js-sdk-v3.5.0...js-sdk-v3.6.0