braintrust breaking changes
Updated December 4, 2026
On this page
Latest version 4.0.0, released November 30, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 2.2.2 to 3.44.0: 715 breaking changes in 29 versions.
- From 2.0.2 to 3.44.0: 735 breaking changes in 33 versions.
braintrust 3.44.0 breaking changes
- Behavior changed
The bundled minimatch dependency moved from v10 to v11, which may change glob matching behavior for code relying on it indirectly. github.com - Signature changed
BraintrustLangChainCallbackHandler.handleLLMNewToken
Was handleLLMNewToken(_token: string, _idx: {prompt: number; completion: number;}, runId: string, _parentRunId?: string, _tags?: string[]): Promise<void>; now handleLLMNewToken(_token: string, _idx: {prompt: number; completion: number;}... npmjs.com - Signature changed
LangChainCallbackHandlerOptions
Was type LangChainCallbackHandlerOptions<IsAsyncFlush extends boolean> = {debug: boolean; excludeMetadataProps: RegExp; logger?: Logger<IsAsyncFlush> | Span; parent?: Span | (() => Span);}; now type... npmjs.com
braintrust 3.42.0 breaking changes
- Default changed
MCP tool and prompt content is now traced by default instead of opt-in. Users who do not want this content recorded must turn capture off themselves. github.com
braintrust 3.40.0 breaking changes
- Behavior changed
Log rows in long-lived Node processes now wait up to 1s before flushing, so code that exits on signals or process.exit() must call flush() first or rows may be lost. The delay can be set with BRAINTRUST_FLUSH_DELAY_MS. github.com - Signature changed
util:spanTypeAttributeValues
Was const spanTypeAttributeValues: readonly ["llm", "score", "function", "eval", "task", "tool", "automation", "facet", "preprocessor", "classifier", "review"]; now const spanTypeAttributeValues: readonly ["llm", "score", "function"... npmjs.com
braintrust 3.38.0 breaking changes
- Removed
esbuild:EsbuildPluginOptions.instrumentations
EsbuildPluginOptions.instrumentations was removed in braintrust 3.38.0 npmjs.com - Removed
esbuild:InstrumentationConfig
InstrumentationConfig was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BasePlugin.subscribe
BasePlugin.subscribe was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BasePlugin.subscribeToChannel
BasePlugin.subscribeToChannel was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BasePlugin.subscribeToStreamingChannel
BasePlugin.subscribeToStreamingChannel was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BasePlugin.subscribeToSyncStreamChannel
BasePlugin.subscribeToSyncStreamChannel was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BraintrustPlugin.subscribe
BraintrustPlugin.subscribe was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BraintrustPlugin.subscribeToChannel
BraintrustPlugin.subscribeToChannel was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BraintrustPlugin.subscribeToStreamingChannel
BraintrustPlugin.subscribeToStreamingChannel was removed in braintrust 3.38.0 npmjs.com - Removed
instrumentation:BraintrustPlugin.subscribeToSyncStreamChannel
BraintrustPlugin.subscribeToSyncStreamChannel was removed in braintrust 3.38.0 npmjs.com
And 6 more in this version. Sign up to see every change
braintrust 3.37.0 breaking changes
- Behavior changed
When an eval times out or its signal aborts, it stops scheduling new trials and waits for running tasks and scorers to settle before rejecting, instead of rejecting immediately. Code that depends on the earlier immediate rejection should... github.com
braintrust 3.36.0 breaking changes
- Signature changed
browser:evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com - Signature changed
browser:evaluatorDefinitionsSchema
Was const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">... npmjs.com - Signature changed
browser:promptDefinitionSchema
Was const promptDefinitionSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{prompt: z.ZodString;}, "strip", z.ZodTypeAny, {prompt: string;}, {prompt: string;}>, z.ZodObject<{messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{content... npmjs.com - Signature changed
browser:promptDefinitionWithToolsSchema
Was const promptDefinitionWithToolsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{prompt: z.ZodString;}, "strip", z.ZodTypeAny, {prompt: string;}, {prompt: string;}>, z.ZodObject<{messages... npmjs.com - Signature changed
CodeFunction.parameters
Was readonly parameters?: z.ZodSchema<Input>; now readonly parameters?: ZodSchema<Input>. npmjs.com - Signature changed
CodeFunction.returns
Was readonly returns?: z.ZodSchema<Output>; now readonly returns?: ZodSchema<Output>. npmjs.com - Signature changed
CodeOpts
Was type CodeOpts<Params, Returns, Fn extends GenericFunction<Params, Returns>> = Partial<BaseFnOpts> & {handler: Fn; metadata?: Record<string, unknown>;} & Schema<Params, Returns>; now type CodeOpts<Params, Returns, Fn extends... npmjs.com - Signature changed
CodeOpts.parameters
Was parameters: z.ZodSchema<Input>; now parameters?: ZodSchema<Params>. npmjs.com - Signature changed
CodeOpts.returns
Was returns: z.ZodSchema<Output>; now returns?: ZodSchema<Returns>. npmjs.com - Signature changed
CreateProjectOpts
Was type CreateProjectOpts = NameOrId; now type CreateProjectOpts = {name: string; projectGroupName?: string;} | {id: string;}. npmjs.com
And 8 more in this version. Sign up to see every change
Older versions
28 older versions, each with its first changes. Sign up to see every change
Show 28 older versions
braintrust 3.33.0 breaking changes
- Removed
BatchScorer
BatchScorer was removed in braintrust 3.33.0 npmjs.com - Removed
BatchTask
BatchTask was removed in braintrust 3.33.0 npmjs.com
And 15 more in this version.
braintrust 3.32.0 breaking changes
- Signature changed
browser:evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com - Signature changed
browser:evaluatorDefinitionsSchema
Was const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">... npmjs.com
And 8 more in this version.
braintrust 3.29.0 breaking changes
- Removed
CurrentSpanStore.enterWith
CurrentSpanStore.enterWith was removed in braintrust 3.29.0 npmjs.com - Signature changed
browser:evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com
And 6 more in this version.
braintrust 3.28.0 breaking changes
- Signature changed
AttachmentReference
Was const AttachmentReference: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{type: z.ZodLiteral<"braintrust_attachment">; filename: z.ZodString; content_type: z.ZodString; key: z.ZodString;}, "strip", z.ZodTypeAny, {type... npmjs.com - Signature changed
evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com
And 1 more in this version.
braintrust 3.26.0 breaking changes
- Removed
esbuild:EsbuildPluginOptions.debug
EsbuildPluginOptions.debug was removed in braintrust 3.26.0 npmjs.com - Removed
rollup:RollupPluginOptions.debug
RollupPluginOptions.debug was removed in braintrust 3.26.0 npmjs.com
And 18 more in this version.
braintrust 3.24.0 breaking changes
- Signature changed
InitLoggerOptions
Was type InitLoggerOptions<IsAsyncFlush> = FullLoginOptions & {projectName?: string; projectId?: string; setCurrent?: boolean; state?: BraintrustState; orgProjectMetadata?: OrgProjectMetadata;} & AsyncFlushArg<IsAsyncFlush>; now type... npmjs.com - Signature changed
vite:vitePlugin
Was const vitePlugin: (options: LegacyBundlerPluginOptions) => VitePlugin<any> | VitePlugin<any>[]; now const vitePlugin: (options: LegacyBundlerPluginOptions) => any. npmjs.com
braintrust 3.22.0 breaking changes
- Signature changed
browser:evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com - Signature changed
browser:evaluatorDefinitionsSchema
Was const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{parameters: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">... npmjs.com
And 9 more in this version.
braintrust 3.21.0 breaking changes
- Signature changed
_exportsForTestingOnly
Was const _exportsForTestingOnly: {extractAttachments: typeof extractAttachments; deepCopyEvent: typeof deepCopyEvent; useTestBackgroundLogger: typeof useTestBackgroundLogger; clearTestBackgroundLogger: typeof clearTestBackgroundLogger... npmjs.com - Signature changed
AttachmentReference
Was const AttachmentReference: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{type: z.ZodLiteral<"braintrust_attachment">; filename: z.ZodString; content_type: z.ZodString; key: z.ZodString;}, "strip", z.ZodTypeAny, {type... npmjs.com
And 25 more in this version.
braintrust 3.19.0 breaking changes
- Signature changed
braintrustFlueObserver
Was const braintrustFlueObserver: FlueObserver; now const braintrustFlueObserver: BraintrustFlueObserver. npmjs.com
braintrust 3.18.0 breaking changes
- Signature changed
EvalCase
Was type EvalCase<Input, Expected, Metadata> = {input: Input; tags?: string[]; id?: string; _xact_id?: TransactionId; created?: string | null; upsert_id?: string; trialCount?: number;} & (Expected extends void ? object : {expected... npmjs.com - Signature changed
evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString... npmjs.com
And 1 more in this version.
braintrust 3.15.0 breaking changes
- Removed
default.wrapFlueContext
wrapFlueContext was removed in braintrust 3.15.0 npmjs.com - Removed
default.wrapFlueSession
wrapFlueSession was removed in braintrust 3.15.0 npmjs.com
And 2 more in this version.
braintrust 3.13.0 breaking changes
- Signature changed
CachedSpanFetcher.getSpans
Was getSpans({spanType}?: {spanType?: string[];}): Promise<SpanData[]>; now getSpans({spanType, includeScorers}?: {spanType?: string[]; includeScorers?: boolean;}): Promise<SpanData[]>. npmjs.com - Signature changed
Dataset.insert
Was insert({input, expected, metadata, tags, id, output}: {readonly input?: unknown; readonly expected?: unknown; readonly tags?: string[]; readonly metadata?: Record<string, unknown>; readonly id?: string; readonly output?: unknown;})... npmjs.com
And 13 more in this version.
braintrust 3.12.0 breaking changes
- Removed
instrumentation:BraintrustPluginConfig.integrations.aisdk
BraintrustPluginConfig.integrations.aisdk was removed in braintrust 3.12.0 npmjs.com - Removed
instrumentation:BraintrustPluginConfig.integrations.anthropic
BraintrustPluginConfig.integrations.anthropic was removed in braintrust 3.12.0 npmjs.com
And 50 more in this version.
braintrust 3.11.0 breaking changes
- Signature changed
default
Was namespace exports; now namespace exports$1. npmjs.com - Signature changed
default._exportsForTestingOnly
Was const exports__exportsForTestingOnly: typeof _exportsForTestingOnly; now const exports$1__exportsForTestingOnly: typeof _exportsForTestingOnly. npmjs.com
And 235 more in this version.
braintrust 3.10.0 breaking changes
- Signature changed
Dataset.constructor
Was constructor(state: BraintrustState, lazyMetadata: LazyValue<ProjectDatasetMetadata>, pinnedVersion?: string, legacy?: IsLegacyDataset, _internal_btql?: Record<string, unknown>); now constructor(state: BraintrustState, lazyMetadata... npmjs.com - Signature changed
InitDatasetOptions
Was type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {dataset?: string; description?: string; version?: string; projectId?: string; metadata?: Record<string, unknown>; state?: BraintrustState; _internal_btql?... npmjs.com
And 3 more in this version.
braintrust 3.9.0 breaking changes
- Signature changed
EvalCase
Was type EvalCase<Input, Expected, Metadata> = {input: Input; tags?: string[]; id?: string; _xact_id?: TransactionId; created?: string | null; upsert_id?: string;} & (Expected extends void ? object : {expected: Expected;}) & (Metadata... npmjs.com - Signature changed
EvalResult
Was type EvalResult<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalCase<Input, Expected, Metadata> & {output: Output; scores: Record<string, number | null>; error: unknown; origin?... npmjs.com
And 7 more in this version.
braintrust 3.8.0 breaking changes
- Signature changed
evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString... npmjs.com - Signature changed
evaluatorDefinitionsSchema
Was const evaluatorDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{parameters: z.ZodOptional<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties... npmjs.com
And 2 more in this version.
braintrust 3.6.0 breaking changes
- Signature changed
instrumentation:BraintrustPluginConfig.integrations
Was integrations?: {openai?: boolean; anthropic?: boolean; vercel?: boolean; aisdk?: boolean; google?: boolean; googleGenAI?: boolean; claudeAgentSDK?: boolean;}; now integrations?: {openai?: boolean; anthropic?: boolean; vercel?: boolean... npmjs.com - Signature changed
InstrumentationConfig.integrations
Was integrations?: {openai?: boolean; anthropic?: boolean; vercel?: boolean; aisdk?: boolean; google?: boolean; claudeAgentSDK?: boolean;}; now integrations?: {openai?: boolean; anthropic?: boolean; vercel?: boolean; aisdk?: boolean... npmjs.com
braintrust 3.5.0 breaking changes
- Signature changed
CompiledPromptParams
Was type CompiledPromptParams = Omit<NonNullable<PromptDataType["options"]>["params"], "use_cache"> & {model: NonNullable<NonNullable<PromptDataType["options"]>["model"]>;}; now type CompiledPromptParams =... npmjs.com - Signature changed
default
Was namespace _exports; now namespace exports. npmjs.com
And 222 more in this version.
braintrust 3.4.0 breaking changes
- Signature changed
_exportsForTestingOnly
Was const _exportsForTestingOnly: {extractAttachments: typeof extractAttachments; deepCopyEvent: typeof deepCopyEvent; useTestBackgroundLogger: typeof useTestBackgroundLogger; clearTestBackgroundLogger: typeof clearTestBackgroundLogger... npmjs.com - Signature changed
evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString... npmjs.com
And 7 more in this version.
braintrust 3.2.0 breaking changes
- Signature changed
braintrustStreamChunkSchema
Was const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"text_delta">; data: z.ZodString;}, "strip", z.ZodTypeAny, {type: "text_delta"; data: string;}, {type: "text_delta"; data: string;}>, z.ZodObject<{type... npmjs.com - Signature changed
evaluatorDefinitionSchema
Was const evaluatorDefinitionSchema: z.ZodObject<{parameters: z.ZodOptional<z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"braintrust.parameters">; schema: z.ZodObject<{type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString... npmjs.com
And 1 more in this version.
braintrust 3.1.0 breaking changes
- Signature changed
_exportsForTestingOnly
Was const _exportsForTestingOnly: {extractAttachments: typeof extractAttachments; deepCopyEvent: typeof deepCopyEvent; useTestBackgroundLogger: typeof useTestBackgroundLogger; clearTestBackgroundLogger: typeof clearTestBackgroundLogger... npmjs.com - Signature changed
InitOptions
Was type InitOptions<IsOpen extends boolean> = FullLoginOptions & {experiment?: string; description?: string; dataset?: AnyDataset | DatasetRef; update?: boolean; baseExperiment?: string; isPublic?: boolean; metadata?: Record<string... npmjs.com
braintrust 3.0.0 breaking changes
- Signature changed
_exportsForTestingOnly
Was const _exportsForTestingOnly: {extractAttachments: typeof extractAttachments; deepCopyEvent: typeof deepCopyEvent; useTestBackgroundLogger: typeof useTestBackgroundLogger; clearTestBackgroundLogger: typeof clearTestBackgroundLogger... npmjs.com - Signature changed
ExperimentLogFullArgs.origin
Was origin: z.infer<typeof ObjectReference$1>; now origin: z.infer<typeof ObjectReference>. npmjs.com
And 4 more in this version.
braintrust 2.2.2 breaking changes
- Signature changed
updateSpan
Was function updateSpan({exported, state, ...event}: {exported: string;} & Omit<Partial<ExperimentEvent>, "id"> & OptionalStateArg): void; now function updateSpan({exported, state, ...event}: {exported: string;} &... npmjs.com
braintrust 2.2.1 breaking changes
- Signature changed
braintrustStreamChunkSchema
Was const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"text_delta">; data: z.ZodString;}, "strip", z.ZodTypeAny, {type: "text_delta"; data: string;}, {type: "text_delta"; data: string;}>, z.ZodObject<{type... npmjs.com - Signature changed
Evaluator.parameters
Was parameters?: Parameters; now parameters?: Parameters | RemoteEvalParameters<boolean, boolean, InferParameters<Parameters>> | Promise<RemoteEvalParameters<boolean, boolean, InferParameters<Parameters>>>. npmjs.com
And 7 more in this version.
braintrust 2.2.0 breaking changes
- Signature changed
runEvaluator
Was function runEvaluator(experiment: Experiment | null, evaluator: EvaluatorDef<any, any, any, any, any>, progressReporter: ProgressReporter, filters: Filter[], stream: ((data: SSEProgressEventDataType) => void) | undefined, parameters?... npmjs.com
braintrust 2.1.0 breaking changes
- Signature changed
braintrustStreamChunkSchema
Was const braintrustStreamChunkSchema: z.ZodUnion<[z.ZodObject<{type: z.ZodLiteral<"text_delta">; data: z.ZodString;}, "strip", z.ZodTypeAny, {type: "text_delta"; data: string;}, {type: "text_delta"; data: string;}>, z.ZodObject<{type... npmjs.com - Signature changed
EvalScorerArgs
Was type EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata = DefaultMetadataType> = EvalCase<Input, Expected, Metadata> & {output: Output;}; now type EvalScorerArgs<Input, Output, Expected, Metadata extends BaseMetadata... npmjs.com
And 7 more in this version.
braintrust 2.0.2 breaking changes
- Removed
InvokeFunctionArgs.context
InvokeFunctionArgs.context was removed in braintrust 2.0.2 npmjs.com - Signature changed
AttachmentReference
Was const AttachmentReference: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{type: z.ZodLiteral<"braintrust_attachment">; filename: z.ZodString; content_type: z.ZodString; key: z.ZodString;}, "strip", z.ZodTypeAny, {type... npmjs.com
And 4 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.