Releases: braintrustdata/braintrust-sdk-javascript
Releases · braintrustdata/braintrust-sdk-javascript
[email protected]
3.11.0
Minor Changes
- feat: Add instrumentation for
@github/copilot-sdk(#1932) - feat: Add
@openai/codex-sdkinstrumentation (#1945) - feat: Add Firebase
genkitinstrumentation (#1948) - feat(vitest): Support
projectIdinwrapVitest(#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/[email protected]
0.0.6
Patch Changes
- Update the AI SDK dependency to a patched version and preserve stream adapter compatibility. (#1992)
- Updated dependencies: [email protected]
[email protected]
Minor Changes
- feat: Add dataset versioning support (#1837)
- feat: Add
@cursor/sdkinstrumentation (#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/[email protected]
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/[email protected]
Published @braintrust/[email protected].
[email protected]
Notable Changes
- feat: Add instrumentation for
@huggingface/inference(#1807) - feat: Add
cohere-aiinstrumentation (#1781) - feat: Add reranking instrumentation for AI SDK and Openrouter SDK #1824
- feat: Instrument Google GenAI
embedContentfor 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
trialCountsupport toEval()(#1814) - feat(claude-agent-sdk): Improve task lifecycle and lifecycle details (#1777)
- feat: Add
x-bt-use-gatewayheader to allowed CORS headers (#1836) - perf: Remove
zodfromdeepCopyEvent(#1796) - fix(auto-instrumentation): Use sync channel for AI SDK CJS
streamText/streamObjectin v4+ (#1768) - fix: Give AI SDK top-level api spans type function (#1769)
- fix(openai): Collect
logprobandrefulsalsoutput 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-transformerto v0.12.0 (#1708)
JavaScript SDK v3.8.0
Changelog
Features
- Add
@openrouter/agentinstrumentation (#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
workerdandedge-lightruntimes (#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
Changelog
Bug Fixes
- Preserve all streaming content block types (#1695)
- Fix
wrapOpenAIbreaking 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
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
Changelog
Features
- Add instrumentation for OpenRouter SDK (#1595)
Bug Fixes
- APIPromise workaround in bundlers (#1623)
Maintenance
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