---
title: "mastra 1.20.3 Breaking Changes on npm | Since.dev"
description: "What each mastra release removed, renamed or changed: 13 breaking changes in 7 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/mastra
last_updated: 2026-12-04
---

# 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

Latest version `1.41.0`, released December 2, 2026. [Source repository](https://github.com/mastra-ai/mastra)

Its 1.0.0-beta.0 release requires Node.js 22.13.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.17.0](#v-0-17-0) to [1.20.3](#v-1-20-3): 12 breaking changes in 6 versions.

## mastra 1.20.3 breaking changes

mastra 1.20.3, released July 28, 2026: 1 breaking change.

- **Signature changed** `internal/auth:getToken`  

Was function getToken(signal?: AbortSignal): Promise\<string>; now function getToken(signal?: AbortSignal, options?: LoginOptions): Promise\<string>. [npmjs.com](https://www.npmjs.com/package/mastra/v/1.20.3)

## mastra 1.0.0-beta.11 breaking changes

mastra 1.0.0-beta.11, released January 20, 2026: 3 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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **Signature changed** `agent.generate`  

The generate and stream methods have updated signatures. Update calls that passed Zod types as generic arguments. [github.com](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **Signature changed** `getFullOutput`  

getFullOutput now returns Promise\<FullOutput\<OUTPUT>>, so code relying on the old return type must be updated. [github.com](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)

## mastra 1.0.0-beta.7 breaking changes

mastra 1.0.0-beta.7, released January 20, 2026: 3 breaking changes.

- **Removed** `storage.createSpan`  

Direct storage methods were removed from MastraStorage, so callers must get the domain store through getStore() first. [github.com](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **Removed** `storage.getThreadById`  

Direct storage methods were removed from MastraStorage, so callers must get the domain store through getStore() first. [github.com](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)

## mastra 1.0.0-beta.6 breaking changes

mastra 1.0.0-beta.6, released January 20, 2026: 1 breaking change.

- **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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)

## mastra 1.0.0-beta.5 breaking changes

mastra 1.0.0-beta.5, released January 20, 2026: 1 breaking change.

- **Configuration changed**  

zod is no longer installed as a dependency, so projects must add zod themselves to their own dependencies. [github.com](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)

## mastra 1.0.0-beta.0 breaking changes

mastra 1.0.0-beta.0, released January 20, 2026: 3 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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)
- **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](https://github.com/mastra-ai/mastra/blob/mastra@1.0.0/observability/mastra/CHANGELOG.md)

## Older versions

1 older version.

### mastra 0.17.0 breaking changes

mastra 0.17.0, released October 16, 2025: 1 breaking change.

- **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](https://www.npmjs.com/package/mastra/v/0.17.0)

## Related packages

- [@mastra/core](https://since.dev/packages/npm/@mastra/core.md)
- [@mastra/server](https://since.dev/packages/npm/@mastra/server.md)
- [@mastra/deployer](https://since.dev/packages/npm/@mastra/deployer.md)
- [@mastra/mcp](https://since.dev/packages/npm/@mastra/mcp.md)
- [@mastra/libsql](https://since.dev/packages/npm/@mastra/libsql.md)
- [@mastra/memory](https://since.dev/packages/npm/@mastra/memory.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
