Releases: braintrustdata/braintrust-sdk-javascript
Releases · braintrustdata/braintrust-sdk-javascript
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
JavaScript SDK v3.5.0
Changelog
Features
- Support Agent tool call tracing for AI SDK v5/v6 auto instrumentation (#1575)
- Attach saved parameters to experiments (#1550)
- Allow associating created prompts with environments (#1489)
Bug Fixes
- Resolve edge AsyncLocalStorage from runtime builtins (#1611)
- Re-throw any queue errors that occurred (#1583)
- Make param types that are forwarded backwards compatible with older open ai SDKs (#1602)
- Preserve .withResponse() on embeddings and moderations create (#1587)
- Make sure params get passed through for compiled prompt (#1558)
- Flush pass in evaluator state if it exists (#1581)
- Record tools in metadata for AI SDK and Google gen ai (#1570)
- Make AI SDK Agent span nodes use use type
function(#1568)
Other Changes
- Handle arrays of images when building prompts (#1247)
Package: https://www.npmjs.com/package/braintrust/v/3.5.0
Full Changelog: js-sdk-v3.4.0...js-sdk-v3.5.0
JavaScript SDK v3.4.0
Changelog
Features
- Add model parameter support (#1504)
- Add internal logger (#1526)
- Allow setting tags for all function types (#1533)
- Allow setting tags via
prompts.create()(#1531) - Add sandbox registration and types (#1494)
- Add node test runner integration (#1481)
Bug Fixes
- Fix auto-instrumentation by preserving return semantics from
tracePromiseand adding isomorphic interface for diagnostics channels (#1501) - Fix _internal_btql.limit and _internal_btql.cursor being silently overwritten (#1497)
Other Changes
- Update BTQL AST (#1385)
- Use diagnostic channels for OpenAI SDK wrapper (#1499)
- Add duplicate_treatment to btql ast in submodules (#1484)
Package: https://www.npmjs.com/package/braintrust/v/3.4.0
Full Changelog: js-sdk-v3.3.0...js-sdk-v3.4.0
js-sdk-v3.3.0
js-sdk-v3.2.0
Changelog
- vitest evals (#1232)
- meta: Remove Python related code from this repo (#1403)
- Auto-instrumentation for TypeScript (#1302)
- add typespec updates for sandboxes (#1392)
Full Changelog: js-sdk-v3.1.0...js-sdk-v3.2.0