mastra breaking changes
mastra 1.20.3 (July 28, 2026) is its newest release with breaking changes. The first: Signature changed internal/auth:getToken. Every breaking API change we have recorded in mastra on npm: 13 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.41.0, released December 2, 2026. Source repository
Its 1.0.0-beta.0 release requires Node.js 22.13.0 or later. Node.js end of life dates.
mastra 1.20.3 breaking changes
- Signature changed
internal/auth:getToken
Was function getToken(signal?: AbortSignal): Promise<string>; now function getToken(signal?: AbortSignal, options?: LoginOptions): Promise<string>. npmjs.com
mastra 1.0.0-beta.11 breaking changes
- Signature changed
Agent
Output generics are now plain generics, and Zod types passed as generic arguments must be replaced with the inferred output type. github.com - Signature changed
agent.generate
The generate and stream methods have updated signatures. Update calls that passed Zod types as generic arguments. github.com - Signature changed
getFullOutput
getFullOutput now returns Promise<FullOutput<OUTPUT>>, so code relying on the old return type must be updated. github.com
mastra 1.0.0-beta.7 breaking changes
- Removed
storage.createSpan
Direct storage methods were removed from MastraStorage, so callers must get the domain store through getStore() first. github.com - Removed
storage.getThreadById
Direct storage methods were removed from MastraStorage, so callers must get the domain store through getStore() first. github.com - Renamed
span.agentId
Span identification fields were replaced by entity fields, so code reading span.agentId, span.toolId or span.workflowId must switch to the entity fields. github.com
mastra 1.0.0-beta.6 breaking changes
- Behavior changed
Span data payloads above a size limit are truncated, so code relying on full large payloads in traces may see different data. github.com
mastra 1.0.0-beta.5 breaking changes
- Configuration changed
zod is no longer installed as a dependency, so projects must add zod themselves to their own dependencies. github.com
mastra 1.0.0-beta.0 breaking changes
- Removed
@mastra.observability.init
Importing the init module no longer configures observability; pass a new Observability instance to the Mastra observability option instead. github.com - Renamed
Observability and tracing identifiers were renamed to remove the AI prefix and Tracing became Observability, so code using the old names must be updated. github.com - Behavior changed
The package now requires Node.js 22.13.0 or later, so older Node.js versions must be upgraded before use. github.com
Older versions
1 older version.
Show 1 older version
mastra 0.17.0 breaking changes
- Signature changed
create
Was const create: (args: {projectName?: string; components?: string[]; llmProvider?: LLMProvider; addExample?: boolean; llmApiKey?: string; createVersionTag?: string; timeout?: number; directory?: string; mcpServer?: "windsurf" | "cursor"... npmjs.com
Related packages
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.