0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
Commit graph

224 commits

Author SHA1 Message Date
shreyas-mastra
8d4abc4f88
chore(deps): Vanta 2026-11-12 — raise undici to 8.12.4 / 7.30.2 (#30205) 2026-11-12 07:20:12 -08:00
Diego Antunes
0ffdba0471
feat(templates): Add personal assistant template (#29886) 2026-11-11 08:23:18 -08:00
shreyas-mastra
2b475075a5
chore(deps): Vanta 2026-11-11 fixes (effect, fast-xml-parser, react-router-dom, @whatwg-node/fetch) (#30061) 2026-11-11 08:19:18 -08:00
mastra-platform[bot]
3cb6caba91
chore(templates): tighten Factory template .env.example comments (#28749) 2026-11-10 21:24:55 -08:00
shreyas-mastra
8a301f6d66
chore(deps): force minimatch 11 and glob 14 for Vanta findings (#29916) 2026-11-10 12:57:20 -08:00
shreyas-mastra
f477d017b5
chore(deps): refresh teams.apps and template lockfiles for Vanta findings (#29770)
Lockfile-only refresh for open Vanta / Dependabot findings on mastra. No
package.json, override, or resolution changes.

| Package | Lockfile | From → To | Finding |
|---|---|---|---|
| `@microsoft/teams.apps` (via `@chat-adapter/teams`) | `pnpm-lock.yaml`
| 2.1.1 → 2.2.0, so `@azure/msal-node` 5.6.0 → 7.x | CVE-2026-109461
(High), Dependabot #3241 |
| ws | template-mongodb-bedrock-agent | 8.21.0 → 8.22.1 |
AIKIDO-2026-138234 (High) |
| protobufjs | template-mongodb-bedrock-agent | 7.6.5 → 7.6.6 |
AIKIDO-2026-115254 |
| yaml | template-mongodb-bedrock-agent | 2.9.0 → 2.9.1 |
AIKIDO-2026-683761 |
| jose | template-mongodb-bedrock-agent | 6.2.3 → 6.2.15 |
AIKIDO-2026-584205 |
| graphql-yoga / `@graphql-yoga/plugin-defer-stream` |
template-genui-data-explorer | 5.24.1 / 3.24.1 → 5.24.6 / 3.24.6, which
drops nested `@graphql-tools/utils` 11.2.2 | Dependabot #3439, #3441
(High) |

`@chat-adapter/teams` already allows `@microsoft/teams.apps ^2.0.14`,
and 2.2.0 is the first release that depends on `@azure/msal-node
^7.1.1`. Every version here is more than a day old.

Empty changeset: no published package manifest changes.

Refs SEC-242, SEC-271

Checked locally: `pnpm install --frozen-lockfile`, plus `@mastra/teams`
build, typecheck, and tests. The mongodb template passes `npm ci` and
`npm run build`, and the genui template passes `npm install` and `npm
run typecheck`. The genui lockfile already fails `npm ci` on main
(`@whatwg-node/fetch` override drift). This PR doesn't change that.

## 2026-11-10 update (same PR)

Merged `origin/main` (3882ad93f7, no rebase or force-push), then
a13f188b1b:

| Package | Lockfile | From → To | Finding |
|---|---|---|---|
| `@hono/node-server` | template-mongodb-bedrock-agent | 1.19.18 → 2.1.6
(new top-level override, matching the genui and customer-refund
templates) | GHSA-rmxm-3fg6-px4f, Dependabot #3437 |
| chat | template-mongodb-bedrock-agent | 4.33.0 → 4.44.0 (new override;
`@mastra/core` 1.50.1 allows `^4.29.0`) | AIKIDO-2026-742388 / -571219 |
| katex | template-genui-data-explorer | 4 nested 0.16.47 copies
removed, so everything resolves to 0.18.2 | GHSA-238p-pmpm-9mq7,
Dependabot #3440 |

npm was ignoring the genui template's existing `katex@<0.18.2` override,
so it now uses a plain `katex` key at the same 0.18.2 floor. No other
overrides changed. The changeset has been reworded in plain language
(CodeRabbit).

Checked locally: root `pnpm install --frozen-lockfile --lockfile-only`
passes. For the mongodb template, `npm ci`, `patch-package`, `npm run
build` and `npm test` (8 passed, 6 skipped) all pass. The genui template
passes `npm install` (lockfile unchanged), `npm run typecheck` and `npm
run test:unit` (13 passed).

#29622 has no diff now: everything in it landed through #29453.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5
This PR updates dependency versions used by the Teams adapter and two
templates to address reported security findings. It also changes
template dependency overrides so the lockfiles install the intended
versions.

## Changes
- Updated the Teams packages in `pnpm-lock.yaml` from 2.1.1 to 2.2.0.
This moves `@azure/msal-node` from 5.6.0 to 7.1.2.
- Updated dependencies in the MongoDB Bedrock and GenUI template
lockfiles, including the reported `ws`, `jose`, `yaml`, `protobufjs`,
and GraphQL Yoga packages.
- Changed the GenUI template’s `katex` override and the MongoDB
template’s `@hono/node-server` and `chat` overrides.
- Added a changeset note. No published package changes are stated in the
note.

## Verification
The PR objectives report successful install, build, typecheck, and test
checks for the affected packages and templates. Completed check results
on the current head: not available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-10 10:29:35 -05:00
mastra-platform[bot]
61878201e9
chore(templates): make template-agent-harness AGENTS.md concise and warn about outdated training data (#29834) 2026-11-09 16:29:40 -07:00
Justin Levine
b22ffc39a7
feat(templates): read the model from AGENT_MODEL in Browser Agent (#29748)
## Description

Browser Agent now reads its chat model from `AGENT_MODEL` and falls back
to `mastra/openai/gpt-5-mini`, so nothing changes until Mastra Platform
sets it. This lets Platform's template form offer a model choice
(PLTFRM-3312). Web search now uses the Gateway web search tool from
docs-expert instead of OpenAI's provider tool, so it works on any model
and the agent's instructions stay true.

## Related issue(s)

Linear PLTFRM-3316

## Type of change

- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Verified: `mastra build` passes and `tsc` is clean against the published
packages.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## ELI5
The Browser Agent can now use a model selected with `AGENT_MODEL`. If
the setting is empty, it uses `mastra/openai/gpt-5-mini`. The agent’s
web-search tool uses the Mastra Gateway, regardless of the selected
agent model.

## Changes
- Added `AGENT_MODEL` and example model IDs to `.env.example`.
- Updated the Browser Agent to trim `AGENT_MODEL` and use the default
model when the setting is empty.
- Added a Gateway-backed `webSearchTool` that returns an answer and
deduplicated source URLs.
- Removed `@ai-sdk/openai` from the template dependencies.

## Validation
- Build and test results: not available.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mastra-platform[bot] <mastra-platform[bot]@users.noreply.github.com>
Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-11-09 18:02:27 +00:00
Justin Levine
db417615a8
feat(templates): use Mastra Connect in the company knowledge template (#29745)
## Description

The company knowledge template now reads Linear and Notion through the
project's Mastra Connect connections instead of `LINEAR_API_KEY` and
`NOTION_API_KEY`. That way, deploying it from Mastra Platform no longer
asks for provider keys. The chat model comes from `AGENT_MODEL` and
defaults to the current Gateway model, so Platform can set it per
project later. Web search uses the Gateway web search tool from
docs-expert, so it works on any model. When a project has more than one
Linear or Notion account connected, indexing covers each one.

```diff
- mcp.ts: MCPClient for mcp.linear.app + @notionhq/notion-mcp-server, keyed by env vars
+ connect.ts: tools({ providers: ['linear', 'notion'] }) when MASTRA_PLATFORM_ACCESS_TOKEN + MASTRA_PROJECT_ID are set
- index-knowledge: raw Linear GraphQL + Notion REST with API keys
+ index-knowledge: linear_list_issues, notion_search_pages, notion_get_page_as_markdown via Connect, per connection
- openai.tools.webSearch (OpenAI models only)
+ tools/web-search.ts (Gateway, any model)
```

## Related issue(s)

Linear PLTFRM-3311. After merge, the template's Platform settings drop
the three env vars and list Linear and Notion as integrations.

## Type of change

- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Verified: `mastra build` passes and `tsc` is clean against the published
packages. Not run against real Linear and Notion connections yet.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

The template now gets Linear and Notion data through connections in a
Mastra project, instead of asking users for separate service keys. It
also uses Mastra Gateway for web searches and lets users choose the
agent’s model.

## Changes

- Added Mastra Connect tools for Linear and Notion. They load when
platform credentials and a project ID are configured.
- Updated indexing to fetch Linear issues and Notion pages through those
connections.
- Added a Gateway-backed web search tool and an optional `AGENT_MODEL`
setting. The default agent model is `mastra/openai/gpt-5.4`.
- Updated setup documentation and dependencies. Removed the previous MCP
configuration and direct-service API key setup.

## Tests

Build and test results: not available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mastra-platform[bot] <mastra-platform[bot]@users.noreply.github.com>
Co-authored-by: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-11-09 18:02:19 +00:00
Justin Levine
76387b0c10
feat(templates): read the model from AGENT_MODEL in Personal Agent (#29749)
## Description

Personal Agent now reads its chat model from `AGENT_MODEL` and falls
back to `mastra/openai/gpt-5.4`, so nothing changes until Mastra
Platform sets it. This lets Platform's template form offer a model
choice (PLTFRM-3312).

## Related issue(s)

Linear PLTFRM-3317

## Type of change

- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Verified: `mastra build` passes against the published packages. `tsc` is
clean.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## ELI5

The Personal Agent can now use a model selected through the
`AGENT_MODEL` setting. If the setting is empty or unset, the agent uses
`mastra/openai/gpt-5.4`.

## Changes

- Read and trim `AGENT_MODEL` when the agent starts, then use it as the
agent model.
- Document `AGENT_MODEL` and example model IDs in `.env.example`.

## Checks

Build and type-check results: not available. No tests were added.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-09 18:02:10 +00:00
Justin Levine
afc9479bdf
feat(templates): read the model from AGENT_MODEL in Claw Assistant (#29747)
## Description

Claw Assistant now reads its chat model from `AGENT_MODEL` and falls
back to `mastra/openai/gpt-5.4`, so nothing changes until Mastra
Platform sets it. This lets Platform's template form offer a model
choice (PLTFRM-3312). Web search now uses the Gateway web search tool
from docs-expert instead of OpenAI's provider tool, so it works on any
model and the agent's instructions stay true.

## Related issue(s)

Linear PLTFRM-3315

## Type of change

- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Verified: `mastra build` passes and `tsc` is clean against the published
packages.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## ELI5

Claw Assistant can now use the model named in `AGENT_MODEL`; if the
variable is empty or missing, it uses `mastra/openai/gpt-5.4`. Web
search uses a separate Gateway tool, so it does not depend on the
selected chat model.

## Changes

- Documented `AGENT_MODEL` in `.env.example` and the README, including
example model IDs and the default.
- Added a Gateway web-search tool that sends searches through
`openai/gpt-5-mini` with `openrouter:web_search` and returns an answer
with deduplicated citations.
- Replaced the OpenAI SDK web-search tool with the Gateway tool and
removed the `@ai-sdk/openai` dependency.

## Checks

- Build and test results: not available.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-09 18:02:00 +00:00
Justin Levine
5b8c65005c
feat(templates): read the model from AGENT_MODEL in Docs Expert (#29746)
## Description

Docs Expert now reads its chat model from `AGENT_MODEL` and falls back
to `mastra/openai/gpt-5-mini`, so nothing changes until Mastra Platform
sets it. This lets Platform's template form offer a model choice
(PLTFRM-3312).

## Related issue(s)

Linear PLTFRM-3314

## Type of change

- [x] New feature (non-breaking change that adds functionality)

## Checklist

- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

Verified: `mastra build` passes against the published packages. `tsc` is
clean.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

The Docs Expert template can now use a model chosen through
`AGENT_MODEL`. If the setting is missing or contains only whitespace, it
uses `mastra/openai/gpt-5-mini`.

## Changes

- Added `AGENT_MODEL` to the template’s `.env.example`, with example
model IDs and the default.
- Updated `docsExpert` to use the trimmed `AGENT_MODEL` value or the
default.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-09 18:01:54 +00:00
shreyas-mastra
94e5e0dbf2
chore(deps): security refresh for templates, examples and integration tests (Vanta) (#29453)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Dependency updates

Refs SEC-256, SEC-261, SEC-262, SEC-263

**2026-11-09:** merged `origin/main` into this branch with a merge
commit (no rebase, no force-push). `main` already raised `better-auth`
to `^1.7.18` (with its own changeset), so this branch now takes main's
version and floors. The old 1.7.16 changeset is removed, and no
`better-auth` change is left in this PR.

| Package | Where | From → To | Advisory |
|---|---|---|---|
| chat | `template-genui-data-explorer`,
`template-customer-refund-agent` lockfiles (via `@mastra/core`) | 4.41.1
/ 4.39.0 → 4.44.0 | AIKIDO-2026-571219 (2026-11-09) |
| `@hono/node-server` | `template-customer-refund-agent/client-demo-ui`
direct pin | 2.1.5 → 2.1.6 (matches the template's existing 2.1.6
override) | GHSA-jpvv-r467-5p4w and related (2026-11-09) |
| next | GenUI template, memory integration tests | 16.4.2/16.4.4 →
16.4.5 | Next.js advisories through 16.4.4 |
| fastify | otel-bridge agent-hub | 5.12.6 → 5.12.8 | AIKIDO through
5.12.7 |
| shell-quote / proxy-addr / image-size / `@hono/node-server` | MongoDB
Bedrock template lockfiles | refreshed (1.12.0 / 2.0.8 / 2.0.4 / 2.1.6)
| CVE-2026-102422, CVE-2026-90711, CVE-2025-71329/71330, CVE-2026-118663
|
| @opentelemetry/auto-instrumentations-node | MongoDB Bedrock template |
^0.60.0 → ^0.75.0 | CVE-2026-44902 |

Empty changeset (`vanta-2026-11-09-template-chat-4-44.md`), because this
PR now changes only templates, examples, and integration tests. No
published package changes. All versions used were published more than a
day ago. No overrides were removed or lowered.

Deferred (major-only or no fixed release): extract-zip@2.0.1 (no fix),
deepmerge 4.3.1 (no fix), picomatch 4.0.7 (no fix), zod 3.25.76 (fix in
4.x), `@ai-sdk/provider-utils` 2.2.8/3.0.x (fix in 4.0.20+, AI SDK v4/v5
compat lines), ai 4.3.19/5.0.210 (fix in 5.0.52 / 6.0.170),
`@azure/msal-node@5.6.0` (7.1.0), minimatch 9/10 (11.0.1), glob
10.5.0/13.0.6 (14.0.2; 13.0.7 is not listed as patched), openai 6.49.0
(7.5.0), `@bufbuild/protobuf@1.10.1` (2.12.1), got 15.1.0 (16.0.0),
`@apidevtools/json-schema-ref-parser@11.9.3` (15.5.1), undici 6.29.1
(7.30.1), nanoid 3.3.20 (5.1.16).
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-e7dae54a-e16d-5b3a-ae5d-99ce740a451f?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-e7dae54a-e16d-5b3a-ae5d-99ce740a451f&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR updates several third-party packages to newer versions. The
updates include authentication fixes and security-related dependency
updates.

## Changes

- Updated `better-auth` to `1.7.16` in the workspace, authentication
package, and agent example. Added a patch changeset for
`@mastra/auth-better-auth` describing session and verification fixes.
- Updated `next` to `16.4.5` in the memory integration tests and GenUI
data explorer template.
- Updated `fastify` to `5.12.8` in the OpenTelemetry bridge example.
- Updated OpenTelemetry instrumentation and `zod` in the MongoDB Bedrock
agent template. Added scoped `@ai-sdk/provider-utils` overrides and a
`compression` override.
- Updated the related pnpm and npm lockfiles.

## Validation

Build and test results: not available.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: shreyas-mastra <shreyas-mastra@users.noreply.github.com>
2026-11-09 11:54:58 -05:00
Diego Antunes
1657c2f82a
feat(templates): add MongoDB and AWS Bedrock agent template (#29408)
## Description

Adds `template-mongodb-bedrock-agent`, an official Mastra template
developed by a Mastra team member in collaboration with partners.

The template provides a documentation assistant using MongoDB Atlas for
vector search and conversation storage, Amazon Bedrock for Claude
responses and Titan embeddings, and Amazon Bedrock AgentCore for
deployment. Includes document ingestion, Docker and CDK configuration,
setup documentation, and a patch for the Bedrock provider.

Validation completed: repository formatting checks with `oxfmt`,
TypeScript builds for the agent and CDK project, and the existing CDK
synthesis test. Live MongoDB/Bedrock ingestion and AgentCore deployment
were not rerun for this import.

## Related issue(s)

There is no linked issue because this template is a new feature
developed as an official Mastra template in collaboration with partners.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update

## Checklist

- [ ] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR adds a ready-to-use assistant that answers questions about
Mastra documentation. It stores documents and conversation history in
MongoDB, uses Amazon Bedrock to find and write answers, and includes
files to deploy the assistant to AgentCore.

## What changed

- Added an official template with setup, customization, and deployment
instructions.
- Added a script that fetches Mastra documentation, creates embeddings,
and stores searchable chunks in MongoDB Atlas. After a successful run,
it removes outdated chunks from the Mastra documentation corpus.
- Added a search tool and documentation agent that use Bedrock models
and MongoDB-backed conversation memory.
- Added an AgentCore HTTP entrypoint with health checks, request
validation, upload limits, and memory scoped to the platform-provided
user and session.
- Added MongoDB configuration that uses `MONGODB_URI` locally or
retrieves the URI from AWS Secrets Manager when deployed.
- Added Docker and CDK deployment configuration, tests, and a patch for
the Amazon Bedrock provider.
- Pinned the AgentCore CLI to `0.31.1`.

## Validation

The author reports that `oxfmt`, TypeScript builds for the agent and CDK
project, and the CDK synthesis test completed. The author did not rerun
live MongoDB/Bedrock ingestion or AgentCore deployment for this import.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alex Booker <booker@booker.codes>
2026-11-04 12:38:28 -08:00
shreyas-mastra
b6dd5da728
chore(deps): bump @google-cloud/spanner, better-auth and follow-redirects (#29052) 2026-11-04 07:59:04 -08:00
shreyas-mastra
f0ad164646
chore(security): Vanta 2026-11-02 - @hono/node-server 2.1.6 (MCP SDK/templates), graphql-scalars 2.0.1, raw-body 4, jose 6 (overrides) (#29199) 2026-11-04 07:58:48 -08:00
Dane - AI (Mastra)
3bdb4ec5f4
chore(deps): update build tools (major) (#29026)
> [!NOTE]
> This PR body was truncated due to platform limits.

This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [@vitest/coverage-v8](https://vitest.dev/guide/coverage)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8))
| pnpm.catalog.default | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/4.1.12/5.0.5)
| `5.1.0` |
| [@vitest/mocker@>=2.1.0
<4.1.12](https://redirect.github.com/vitest-dev/vitest/tree/main/packages/mocker)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/mocker))
| pnpm-workspace.overrides | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fmocker@>=2.1.0
<4.1.12/4.1.12/5.0.5) | `5.1.0` |
| [@vitest/ui](https://vitest.dev/guide/ui)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/ui))
| pnpm.catalog.default | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fui/4.1.12/5.0.5) |
`5.1.0` |
| [dotenv](https://redirect.github.com/motdotla/dotenv) |
devDependencies | major | [`^17.4.2` →
`^18.0.9`](https://renovatebot.com/diffs/npm/dotenv/17.4.2/18.0.9) | |
| [dotenv](https://redirect.github.com/motdotla/dotenv) |
devDependencies | major | [`17.4.2` →
`18.0.9`](https://renovatebot.com/diffs/npm/dotenv/17.4.2/18.0.9) | |
| [vitest](https://vitest.dev)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| devDependencies | major | [`^4.1.12` →
`^5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) |
`5.1.0` |
| [vitest](https://vitest.dev)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| pnpm.catalog.default | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) |
`5.1.0` |
| [vitest](https://vitest.dev)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| devDependencies | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/vitest/4.1.12/5.0.5) |
`5.1.0` |
| [vitest@>=2.1.0 <4.1.12](https://vitest.dev)
([source](https://redirect.github.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| pnpm-workspace.overrides | major | [`4.1.12` →
`5.0.5`](https://renovatebot.com/diffs/npm/vitest@>=2.1.0
<4.1.12/4.1.12/5.0.5) | `5.1.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/9505) for more information.

---

### Release Notes

<details>
<summary>vitest-dev/vitest (@&#8203;vitest/coverage-v8)</summary>

###
[`v5.0.5`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.5)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5)

#####    🐞 Bug Fixes

- Keep vite default `fs.deny` with api token file  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11578](https://redirect.github.com/vitest-dev/vitest/issues/11578)
[<samp>(28dc1)</samp>](28dc1edfb)
- Handle quoted file names in `--changed`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11583](https://redirect.github.com/vitest-dev/vitest/issues/11583)
[<samp>(14921)</samp>](14921e962)
- Add `data` to the `import.meta.hot` stub  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11590](https://redirect.github.com/vitest-dev/vitest/issues/11590)
[<samp>(3a828)</samp>](3a8289ac3)
- Set `skip` in `skipIf`, ignore `undefined` options  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11591](https://redirect.github.com/vitest-dev/vitest/issues/11591)
[<samp>(d523a)</samp>](d523a15f2)
- Skip builtin loading in async leak detector  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11598](https://redirect.github.com/vitest-dev/vitest/issues/11598)
[<samp>(fe86a)</samp>](fe86a64c6)
- Keep the import frame in native loader errors  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11599](https://redirect.github.com/vitest-dev/vitest/issues/11599)
[<samp>(9697b)</samp>](9697b3894)
- Run hook cleanups when a later hook fails  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11605](https://redirect.github.com/vitest-dev/vitest/issues/11605)
[<samp>(6c5a4)</samp>](6c5a44720)
- Release mocks of finished test files  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11607](https://redirect.github.com/vitest-dev/vitest/issues/11607)
[<samp>(e9c3d)</samp>](e9c3d72f0)
- Abort all running tests on cancel  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11606](https://redirect.github.com/vitest-dev/vitest/issues/11606)
[<samp>(6621a)</samp>](6621a72d6)
- **browser**:
- Ignore synthetic pagehide events  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11582](https://redirect.github.com/vitest-dev/vitest/issues/11582)
[<samp>(ca081)</samp>](ca0813584)
- Run plugin buildStart on server creation  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11593](https://redirect.github.com/vitest-dev/vitest/issues/11593)
[<samp>(ea611)</samp>](ea611e44c)
- Drop late connections of closed sessions  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11600](https://redirect.github.com/vitest-dev/vitest/issues/11600)
[<samp>(f161e)</samp>](f161e6df2)
- Wait 30s for the browser to close  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11601](https://redirect.github.com/vitest-dev/vitest/issues/11601)
[<samp>(6498b)</samp>](6498b666a)
- Run global setup once with instances  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11596](https://redirect.github.com/vitest-dev/vitest/issues/11596)
[<samp>(8dd67)</samp>](8dd67c262)
- **reporter**:
- End reason `&#&#8203;39;failed&#&#8203;39;` on worker crash  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11568](https://redirect.github.com/vitest-dev/vitest/issues/11568)
[<samp>(6ae8e)</samp>](6ae8e89ff)

#####     [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5)

###
[`v5.0.4`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.4)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.3...v5.0.4)

#####    🚀 Features

- **experimental**:
- Tag cache directories with CACHEDIR.TAG  -  by
[@&#8203;lifeiscontent](https://redirect.github.com/lifeiscontent) in
[#&#8203;11461](https://redirect.github.com/vitest-dev/vitest/issues/11461)
[<samp>(a8ea3)</samp>](a8ea3c8fd)
- Support `test.ui.theme` option  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11499](https://redirect.github.com/vitest-dev/vitest/issues/11499)
[<samp>(1da66)</samp>](1da66405d)
- Highlight selector multiple matches in trace view  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11489](https://redirect.github.com/vitest-dev/vitest/issues/11489)
[<samp>(5abba)</samp>](5abba1e1b)
- Print how many tests were affected and a total when running
`--changed`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11424](https://redirect.github.com/vitest-dev/vitest/issues/11424)
[<samp>(a2336)</samp>](a23368585)
- Add an option to cache dependencies instead of statically parsing them
 -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11515](https://redirect.github.com/vitest-dev/vitest/issues/11515)
[<samp>(c0601)</samp>](c06012ac8)
- Add fit and zoom controls to trace viewer  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11490](https://redirect.github.com/vitest-dev/vitest/issues/11490)
[<samp>(f5dd9)</samp>](f5dd99ed0)

#####    🐞 Bug Fixes

- Fail the run on git and location filter errors  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11430](https://redirect.github.com/vitest-dev/vitest/issues/11430)
[<samp>(30d03)</samp>](30d0304d2)
- Enable fsModuleCache by default  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11435](https://redirect.github.com/vitest-dev/vitest/issues/11435)
[<samp>(ad208)</samp>](ad208cc29)
- Track project files and mocks with --changed  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11432](https://redirect.github.com/vitest-dev/vitest/issues/11432)
[<samp>(b0f2b)</samp>](b0f2b3bb9)
- Refactor caching, fix `:` in project and change the shape of `results`
cache  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11453](https://redirect.github.com/vitest-dev/vitest/issues/11453)
[<samp>(9673c)</samp>](9673c49a4)
- Keep full `$` string values when `taskTitleValueFormatTruncate` is 0
 -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Hiroshi Ogawa** and **Claude Opus 5.5** in
[#&#8203;11485](https://redirect.github.com/vitest-dev/vitest/issues/11485)
[<samp>(4f7e1)</samp>](4f7e1799b)
- Resolve node builtins in client environments  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11417](https://redirect.github.com/vitest-dev/vitest/issues/11417)
[<samp>(56b31)</samp>](56b319ac6)
- Fix module graph builtin externals after
[#&#8203;11421](https://redirect.github.com/vitest-dev/vitest/issues/11421)
 -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Hiroshi Ogawa** and **Claude Opus 5.5** in
[#&#8203;11491](https://redirect.github.com/vitest-dev/vitest/issues/11491)
and
[#&#8203;11421](https://redirect.github.com/vitest-dev/vitest/issues/11421)
[<samp>(008e1)</samp>](008e184cb)
- Wrap module mocks during in-source testing  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11505](https://redirect.github.com/vitest-dev/vitest/issues/11505)
[<samp>(36d19)</samp>](36d19cb00)
- Handle line endings in snapshot  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11522](https://redirect.github.com/vitest-dev/vitest/issues/11522)
[<samp>(4c468)</samp>](4c468aa40)
- Respect root in projects  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11521](https://redirect.github.com/vitest-dev/vitest/issues/11521)
[<samp>(26642)</samp>](26642f793)
- Resolve mocks in directories with spaces  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11539](https://redirect.github.com/vitest-dev/vitest/issues/11539)
[<samp>(caaef)</samp>](caaef9416)
- **api**:
- Publish the api token atomically  -  by
[@&#8203;umairnawaz333](https://redirect.github.com/umairnawaz333) in
[#&#8203;11323](https://redirect.github.com/vitest-dev/vitest/issues/11323)
[<samp>(6f990)</samp>](6f990fef1)
- **browser**:
- Close the mock route interception race  -  by
[@&#8203;cplieger](https://redirect.github.com/cplieger) and
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;8339](https://redirect.github.com/vitest-dev/vitest/issues/8339)
and
[#&#8203;11083](https://redirect.github.com/vitest-dev/vitest/issues/11083)
[<samp>(d6620)</samp>](d6620fae6)
- Allow toHaveTextContent without arguments  -  by
[@&#8203;nomadical](https://redirect.github.com/nomadical) in
[#&#8203;11425](https://redirect.github.com/vitest-dev/vitest/issues/11425)
[<samp>(8ebcf)</samp>](8ebcf5f8a)
- Apply API options without browser config  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10852](https://redirect.github.com/vitest-dev/vitest/issues/10852)
[<samp>(ad055)</samp>](ad055837b)
- Preserve undefined command arguments  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11497](https://redirect.github.com/vitest-dev/vitest/issues/11497)
[<samp>(1576d)</samp>](1576d3d89)
- Wait for setup mocks before importing a test file  -  by
[@&#8203;kasperpeulen](https://redirect.github.com/kasperpeulen) in
[#&#8203;11520](https://redirect.github.com/vitest-dev/vitest/issues/11520)
[<samp>(b61d1)</samp>](b61d1ced3)
- Avoid extra scroll outside the iframe  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11523](https://redirect.github.com/vitest-dev/vitest/issues/11523)
[<samp>(662e8)</samp>](662e8a363)
- Run browser instances as workers  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11525](https://redirect.github.com/vitest-dev/vitest/issues/11525)
[<samp>(bf04b)</samp>](bf04b9ccc)
- ⚠️ This can degrade performance if you have a custom `maxWorkers`
setting. Previously, it was applied incorrectly and could lead to Vitest
using too many resources. For example, a lower number would still open
too many browsers. Fixing it means Vitest opens less instances by
default now.
- Open one cdp session per tester  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11542](https://redirect.github.com/vitest-dev/vitest/issues/11542)
[<samp>(69e63)</samp>](69e6369f6)
- Clean up unmocked and pending mocks  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11537](https://redirect.github.com/vitest-dev/vitest/issues/11537)
[<samp>(5c955)</samp>](5c9552173)
- **coverage**:
- V8 browser memory leak between test files  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11466](https://redirect.github.com/vitest-dev/vitest/issues/11466)
[<samp>(2297d)</samp>](2297d93a8)
- `allowExternal` fails to include uncovered files  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11513](https://redirect.github.com/vitest-dev/vitest/issues/11513)
[<samp>(4ef00)</samp>](4ef000a93)
- Filenames containing brackets incorrectly showing as uncovered  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11531](https://redirect.github.com/vitest-dev/vitest/issues/11531)
[<samp>(0fa80)</samp>](0fa80f53c)
- Istanbul coverage wrong when module transform warmups  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11529](https://redirect.github.com/vitest-dev/vitest/issues/11529)
[<samp>(9f61d)</samp>](9f61dcca2)
- **deps**:
- Update all non-major dependencies  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11167](https://redirect.github.com/vitest-dev/vitest/issues/11167)
[<samp>(c74e0)</samp>](c74e099a9)
- **expect**:
- Fix `Map` and `Set` deep equality in some assertions  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11402](https://redirect.github.com/vitest-dev/vitest/issues/11402)
[<samp>(b4e79)</samp>](b4e79fd7a)
- Check value in chai-style returned  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11500](https://redirect.github.com/vitest-dev/vitest/issues/11500)
[<samp>(1aca0)</samp>](1aca02a21)
- **mocker**:
- Fix native loader mocking edge cases  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11540](https://redirect.github.com/vitest-dev/vitest/issues/11540)
[<samp>(cd423)</samp>](cd423ba04)
- **pretty-format**:
- Support boxed symbols  -  by
[@&#8203;lehni](https://redirect.github.com/lehni) in
[#&#8203;11445](https://redirect.github.com/vitest-dev/vitest/issues/11445)
and
[#&#8203;11446](https://redirect.github.com/vitest-dev/vitest/issues/11446)
[<samp>(eba44)</samp>](eba44926e)
- **reporters**:
- Junit to strip ANSI sequences from all XML attributes  -  by
[@&#8203;meganemura](https://redirect.github.com/meganemura) and
**Claude Opus 5.5** in
[#&#8203;11407](https://redirect.github.com/vitest-dev/vitest/issues/11407)
[<samp>(e1a73)</samp>](e1a731470)
- **runner**:
- Don't cache failed fixture setups  -  by
[@&#8203;hamed-bavar](https://redirect.github.com/hamed-bavar) in
[#&#8203;11237](https://redirect.github.com/vitest-dev/vitest/issues/11237)
and
[#&#8203;11238](https://redirect.github.com/vitest-dev/vitest/issues/11238)
[<samp>(4ee66)</samp>](4ee66c021)
- **typecheck**:
- Use typescript pool in toTestSpecification  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11451](https://redirect.github.com/vitest-dev/vitest/issues/11451)
[<samp>(5f273)</samp>](5f2739e74)
- **ui**:
- Remove duplicate browser-open call opening two tabs  -  by
[@&#8203;feastyr69](https://redirect.github.com/feastyr69) in
[#&#8203;11356](https://redirect.github.com/vitest-dev/vitest/issues/11356)
and
[#&#8203;11358](https://redirect.github.com/vitest-dev/vitest/issues/11358)
[<samp>(d7e13)</samp>](d7e1315c1)
- Simplify explorer filtering + fix nested tests when search matches a
suite  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Hiroshi Ogawa**, **Codex** and **Claude Opus 5.5** in
[#&#8203;11262](https://redirect.github.com/vitest-dev/vitest/issues/11262)
[<samp>(a627b)</samp>](a627be498)
- Store module graph once per environment  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11421](https://redirect.github.com/vitest-dev/vitest/issues/11421)
[<samp>(af903)</samp>](af903c65e)
- Mount index.html handler on the ui base path  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11517](https://redirect.github.com/vitest-dev/vitest/issues/11517)
[<samp>(1bc24)</samp>](1bc2495c7)
- Center split pane resize handle  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Claude Opus 5.5** in
[#&#8203;11506](https://redirect.github.com/vitest-dev/vitest/issues/11506)
[<samp>(e658b)</samp>](e658b9b6a)
- **vm**:
- Bind `this` to `module.exports`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11504](https://redirect.github.com/vitest-dev/vitest/issues/11504)
[<samp>(b618a)</samp>](b618afd5c)

#####    🏎 Performance

- Reuse fsModuleCache when filtering by source  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11428](https://redirect.github.com/vitest-dev/vitest/issues/11428)
[<samp>(7ebd9)</samp>](7ebd95fdd)
- **spy**: Reset only mocks that were called or reconfigured  -  by
[@&#8203;johan-gorter](https://redirect.github.com/johan-gorter) and
**Claude Opus 5.5** in
[#&#8203;11197](https://redirect.github.com/vitest-dev/vitest/issues/11197)
[<samp>(28ef9)</samp>](28ef93df2)

#####     [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.3...v5.0.4)

###
[`v5.0.3`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.3)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3)

#####    🐞 Bug Fixes

- Isolate `result.status` between `repeats` runs  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Codex (GPT-6)** in
[#&#8203;11218](https://redirect.github.com/vitest-dev/vitest/issues/11218)
[<samp>(5dbeb)</samp>](5dbebe9e3)
- Don't print an interceptor warning in browser mode  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11377](https://redirect.github.com/vitest-dev/vitest/issues/11377)
[<samp>(15cc0)</samp>](15cc006aa)
- Don't retry when `test.fails` expectedly failed  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Codex (GPT-6)** in
[#&#8203;11219](https://redirect.github.com/vitest-dev/vitest/issues/11219)
[<samp>(b2458)</samp>](b24585f08)
- Scope cache key generators to projects  -  by
[@&#8203;ecoyoung](https://redirect.github.com/ecoyoung) in
[#&#8203;11281](https://redirect.github.com/vitest-dev/vitest/issues/11281)
and
[#&#8203;11301](https://redirect.github.com/vitest-dev/vitest/issues/11301)
[<samp>(92ba7)</samp>](92ba7fc1d)
- **browser**:
- Delay server `listen` until tests start running  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11366](https://redirect.github.com/vitest-dev/vitest/issues/11366)
[<samp>(7d8ed)</samp>](7d8ed3e9b)
- Check mock path boundaries  -  by
[@&#8203;saryn17](https://redirect.github.com/saryn17), **Ryosei Sato**
and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11361](https://redirect.github.com/vitest-dev/vitest/issues/11361)
and
[#&#8203;11362](https://redirect.github.com/vitest-dev/vitest/issues/11362)
[<samp>(1c388)</samp>](1c3888bce)
- Keep config of browser-consumed environments  -  by
[@&#8203;kasperpeulen](https://redirect.github.com/kasperpeulen) and
**Claude** in
[#&#8203;11378](https://redirect.github.com/vitest-dev/vitest/issues/11378)
[<samp>(aafc0)</samp>](aafc0996f)
- Ignore page crash while cancelling  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11386](https://redirect.github.com/vitest-dev/vitest/issues/11386)
[<samp>(7c367)</samp>](7c36748fa)
- `toMatchScreenshot` uses wrong reference on retried tests  -  by
[@&#8203;macarie](https://redirect.github.com/macarie) in
[#&#8203;11393](https://redirect.github.com/vitest-dev/vitest/issues/11393)
[<samp>(c22ab)</samp>](c22aba992)
- **cache**:
- Revalidate imports of cached modules  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11381](https://redirect.github.com/vitest-dev/vitest/issues/11381)
[<samp>(38f98)</samp>](38f98855f)
- **deps**:
- Pin `why-is-node-running` to `3.2.1` to avoid users running into
`ERR_PNPM_TRUST_DOWNGRADE`  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11403](https://redirect.github.com/vitest-dev/vitest/issues/11403)
[<samp>(f6c9a)</samp>](f6c9a4977)
- **expect**:
- Pass current equality testers to `expect.extend` asymmetric matchers
 -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Hiroshi Ogawa** and **Claude** in
[#&#8203;11401](https://redirect.github.com/vitest-dev/vitest/issues/11401)
[<samp>(3e794)</samp>](3e794a96b)
- **jsdom**:
- Support Blob on jsdom 30.1  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11379](https://redirect.github.com/vitest-dev/vitest/issues/11379)
[<samp>(6c49b)</samp>](6c49b7197)
- **pool**:
- Preserve unique pool ids when `groupOrder` is set  -  by
[@&#8203;mtorp](https://redirect.github.com/mtorp) in
[#&#8203;11392](https://redirect.github.com/vitest-dev/vitest/issues/11392)
[<samp>(50312)</samp>](50312ebb4)
- **ui**:
- Split-pane handle overlapping iframe  -  by
[@&#8203;macarie](https://redirect.github.com/macarie) in
[#&#8203;11221](https://redirect.github.com/vitest-dev/vitest/issues/11221)
[<samp>(f91db)</samp>](f91db0dfd)
- **vitest**:
- Remove root temp dir on close  -  by
[@&#8203;abhinav-phi](https://redirect.github.com/abhinav-phi) in
[#&#8203;11248](https://redirect.github.com/vitest-dev/vitest/issues/11248)
[<samp>(7c711)</samp>](7c7119cf7)
- **vm**:
- Do not optimize deps from index.html  -  by
[@&#8203;ezefernandezyf](https://redirect.github.com/ezefernandezyf),
**Hiroshi Ogawa** and **Codex (GPT-6)** in
[#&#8203;11329](https://redirect.github.com/vitest-dev/vitest/issues/11329)
and
[#&#8203;11360](https://redirect.github.com/vitest-dev/vitest/issues/11360)
[<samp>(caf28)</samp>](caf2887de)
- Don't reuse scripts across vite environments  -  by
[@&#8203;MO2k4](https://redirect.github.com/MO2k4), **Martin Oehlert**
and **Claude** in
[#&#8203;11395](https://redirect.github.com/vitest-dev/vitest/issues/11395)
[<samp>(346d3)</samp>](346d3896b)

#####     [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3)

###
[`v5.0.2`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.2)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2)

#####    🐞 Bug Fixes

- Bind `process` in case global is overwritten  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11343](https://redirect.github.com/vitest-dev/vitest/issues/11343)
[<samp>(0b792)</samp>](0b79231ad)
- **detect-async-leaks**:
- Ignore `process.stdio` handles  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11333](https://redirect.github.com/vitest-dev/vitest/issues/11333)
[<samp>(0fd6b)</samp>](0fd6b9790)
- **expect**:
- Fix `toMatchObject` with asymmetric matchers  -  by
[@&#8203;ShreeBohara](https://redirect.github.com/ShreeBohara), **Claude
Opus 5**, [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Hiroshi Ogawa** and **Codex (GPT-5)** in
[#&#8203;11100](https://redirect.github.com/vitest-dev/vitest/issues/11100)
[<samp>(42523)</samp>](42523289e)
- **jsdom**:
- Fix `Request` with `Blob` body on jsdom 28+  -  by
[@&#8203;harshit-d3v](https://redirect.github.com/harshit-d3v) in
[#&#8203;11295](https://redirect.github.com/vitest-dev/vitest/issues/11295)
[<samp>(d1c3e)</samp>](d1c3ecc93)
- **reporter**:
- `agent` to respect `--silent`  -  by
[@&#8203;Raj4478](https://redirect.github.com/Raj4478) and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11271](https://redirect.github.com/vitest-dev/vitest/issues/11271)
[<samp>(5b95e)</samp>](5b95efb6d)
- **reporters**:
- Handle concurrent `createReport` calls  -  by
[@&#8203;7rulnik](https://redirect.github.com/7rulnik) in
[#&#8203;11278](https://redirect.github.com/vitest-dev/vitest/issues/11278)
[<samp>(e8e55)</samp>](e8e556ff7)
- `hanging-process` to use ESM entrypoint  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;11316](https://redirect.github.com/vitest-dev/vitest/issues/11316)
[<samp>(4e91e)</samp>](4e91e5668)
- **spy**:
- Fix stack overflow when spying `Set.prototype.add`  -  by
[@&#8203;fengmk2](https://redirect.github.com/fengmk2) in
[#&#8203;11299](https://redirect.github.com/vitest-dev/vitest/issues/11299)
[<samp>(a0a93)</samp>](a0a939653)
- **ui**:
- Persist authentication cookie beyond current browser session  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **OpenCode (gpt-5.6-sol)** in
[#&#8203;11066](https://redirect.github.com/vitest-dev/vitest/issues/11066)
[<samp>(f8819)</samp>](f88195e16)

#####     [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2)

###
[`v5.0.1`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.1)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1)

#####    🚀 Features

- **ui**:
- Move trace attempts selector to viewer header  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Codex** in
[#&#8203;11189](https://redirect.github.com/vitest-dev/vitest/issues/11189)
[<samp>(5dc4b)</samp>](5dc4b5c92)
- Add focused trace view layout mode  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa**, **OpenCode (gpt-5.6-sol)** and **Codex** in
[#&#8203;11190](https://redirect.github.com/vitest-dev/vitest/issues/11190)
[<samp>(376dc)</samp>](376dc3bc1)

#####    🐞 Bug Fixes

- Exit 1 when vitest list fails collection  -  by
[@&#8203;hamed-bavar](https://redirect.github.com/hamed-bavar) in
[#&#8203;11145](https://redirect.github.com/vitest-dev/vitest/issues/11145)
and
[#&#8203;11146](https://redirect.github.com/vitest-dev/vitest/issues/11146)
[<samp>(6108b)</samp>](6108b8197)
- Keep parse error details in static collection  -  by
[@&#8203;hamed-bavar](https://redirect.github.com/hamed-bavar) in
[#&#8203;11150](https://redirect.github.com/vitest-dev/vitest/issues/11150)
and
[#&#8203;11151](https://redirect.github.com/vitest-dev/vitest/issues/11151)
[<samp>(7c818)</samp>](7c818153a)
- Avoid recursive prototype in automocking  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11195](https://redirect.github.com/vitest-dev/vitest/issues/11195)
[<samp>(99fc5)</samp>](99fc52591)
- Prevent false Vitest import resolution  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11196](https://redirect.github.com/vitest-dev/vitest/issues/11196)
[<samp>(b426c)</samp>](b426c1976)
- Keep metadata file when clearing the cache  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11199](https://redirect.github.com/vitest-dev/vitest/issues/11199)
[<samp>(73614)</samp>](73614654a)
- Correct typos in error message and comments  -  by
[@&#8203;shinji00222](https://redirect.github.com/shinji00222) and
**Shinji** in
[#&#8203;11187](https://redirect.github.com/vitest-dev/vitest/issues/11187)
[<samp>(115c3)</samp>](115c3f6d2)
- Resolve ResolvedConfig exactOptionalPropertyTypes errors  -  by
[@&#8203;LukeAbby](https://redirect.github.com/LukeAbby) in
[#&#8203;11175](https://redirect.github.com/vitest-dev/vitest/issues/11175)
[<samp>(498fb)</samp>](498fbe922)
- Share the server on self-referencing `extends`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11034](https://redirect.github.com/vitest-dev/vitest/issues/11034)
[<samp>(23dda)</samp>](23dda738c)
- Warn when deprecated `deps.optimizer.web` is used  -  by
[@&#8203;im10furry](https://redirect.github.com/im10furry) in
[#&#8203;11214](https://redirect.github.com/vitest-dev/vitest/issues/11214)
[<samp>(2ce29)</samp>](2ce29d5fa)
- **browser**:
- Avoid double quotes in `config.define`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11198](https://redirect.github.com/vitest-dev/vitest/issues/11198)
[<samp>(972e2)</samp>](972e24bab)
- **doctor**:
- Measure vm pools for custom environments  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11212](https://redirect.github.com/vitest-dev/vitest/issues/11212)
[<samp>(91ab1)</samp>](91ab1588c)
- **expect**:
- Correct return value in `toMatchAriaSnapshot`  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11208](https://redirect.github.com/vitest-dev/vitest/issues/11208)
[<samp>(c119b)</samp>](c119be016)
- **fakeTimers**:
- Force `queueMicrotask` and `nextTick` in `toNotFake`  -  by
[@&#8203;kingmakeruix](https://redirect.github.com/kingmakeruix),
**kingmakeruix**, **Hiroshi Ogawa**, **Codex** and
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in
[#&#8203;11261](https://redirect.github.com/vitest-dev/vitest/issues/11261)
[<samp>(a47d7)</samp>](a47d7908f)
- **snapshot**:
- Report obsolete keys next to skipped tests  -  by
[@&#8203;hamed-bavar](https://redirect.github.com/hamed-bavar),
**Hiroshi Ogawa** and **OpenCode (gpt-5.6-sol)** in
[#&#8203;11157](https://redirect.github.com/vitest-dev/vitest/issues/11157)
and
[#&#8203;11158](https://redirect.github.com/vitest-dev/vitest/issues/11158)
[<samp>(17e2b)</samp>](17e2b22dd)
- **types**:
- Make public declarations self-contained  -  by
[@&#8203;ZoeySigel](https://redirect.github.com/ZoeySigel) in
[#&#8203;11141](https://redirect.github.com/vitest-dev/vitest/issues/11141)
[<samp>(45546)</samp>](455466c16)
- **ui**:
- Fix collapse/expand suite with file name search  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Codex** in
[#&#8203;11260](https://redirect.github.com/vitest-dev/vitest/issues/11260)
[<samp>(0a712)</samp>](0a7122daa)
- Fix explorer file summary count  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa**, **OpenCode (gpt-5.6-sol)** and **Codex** in
[#&#8203;11125](https://redirect.github.com/vitest-dev/vitest/issues/11125)
[<samp>(05982)</samp>](05982297d)
- **utils**:
- Fix `deepMerge` to handle prototype  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **Codex** in
[#&#8203;11215](https://redirect.github.com/vitest-dev/vitest/issues/11215)
[<samp>(4944c)</samp>](4944cf498)

#####     [View changes on
GitHub](https://redirect.github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1)

###
[`v5.0.0`](https://redirect.github.com/vitest-dev/vitest/releases/tag/v5.0.0)

[Compare
Source](https://redirect.github.com/vitest-dev/vitest/compare/v4.1.12...v5.0.0)

Vitest 5 is officially out! This release focuses on performance and
brings a lot of new features while fixing long-standing bugs. See our
[blog post](https://vitest.dev/blog/vitest-5.html) for the official
announcement.

#####    🚨 Breaking Changes

- Replace `loupe.inspect` with pretty-format  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Claude Opus
5 (1M context)** and **OpenAI Codex** in
[#&#8203;9609](https://redirect.github.com/vitest-dev/vitest/issues/9609)
[<samp>(3f802)</samp>](3f802da4b)
- Remove quotes from string values in `test.for/each` title `$` variable
(take 2)  -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa)
in
[#&#8203;10170](https://redirect.github.com/vitest-dev/vitest/issues/10170)
[<samp>(04d37)</samp>](04d37e9d7)
- Default `attachmentsDir` from `.vitest-attachements/` to
`.vitest/attachments/`  -  by
[@&#8203;MdSadiqMd](https://redirect.github.com/MdSadiqMd) in
[#&#8203;10186](https://redirect.github.com/vitest-dev/vitest/issues/10186)
[<samp>(1ba73)</samp>](1ba7338c3)
- Remove `sequential` test/suite options in favor of `concurrent`  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **OpenAI
Codex** in
[#&#8203;10198](https://redirect.github.com/vitest-dev/vitest/issues/10198)
[<samp>(9229f)</samp>](9229f2edc)
- Represent locator as an object instead of a string  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10212](https://redirect.github.com/vitest-dev/vitest/issues/10212)
[<samp>(80f07)</samp>](80f07edf6)
- Inline `expect` package  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10221](https://redirect.github.com/vitest-dev/vitest/issues/10221)
[<samp>(ad162)</samp>](ad16223e7)
- Remove deprecated entry points  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10222](https://redirect.github.com/vitest-dev/vitest/issues/10222)
[<samp>(994c6)</samp>](994c6ddb9)
- Require Node.js 22 and Vite 6.4  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10178](https://redirect.github.com/vitest-dev/vitest/issues/10178)
[<samp>(38762)</samp>](3876283e8)
- Fail `expect.poll` when function didn't resolve in time  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **OpenAI
Codex** in
[#&#8203;10233](https://redirect.github.com/vitest-dev/vitest/issues/10233)
[<samp>(4df04)</samp>](4df048c11)
- Throw an error if hoistable methods are outside the top level scope
 -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10460](https://redirect.github.com/vitest-dev/vitest/issues/10460)
[<samp>(d0b4f)</samp>](d0b4fddcb)
- `toHaveTextContent` is strict, add `toMatchTextContent` as alternative
 -  by [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10473](https://redirect.github.com/vitest-dev/vitest/issues/10473)
[<samp>(18f30)</samp>](18f303079)
- Don't lookup config file from ancestor directories  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **OpenAI
Codex** and **Hiroshi Ogawa** in
[#&#8203;10428](https://redirect.github.com/vitest-dev/vitest/issues/10428)
[<samp>(945d9)</samp>](945d9090e)
- Inline `@vitest/runner` package, do not publish it anymore  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10511](https://redirect.github.com/vitest-dev/vitest/issues/10511)
[<samp>(6d6e4)</samp>](6d6e46b1e)
- Allow mutating happy-dom/jsdom window object  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **OpenAI Codex** in
[#&#8203;10373](https://redirect.github.com/vitest-dev/vitest/issues/10373)
[<samp>(206e8)</samp>](206e8cff8)
- Expose `concurrencyId`/`workerId` on TestModule's diagnostics, make id
1-based  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10516](https://redirect.github.com/vitest-dev/vitest/issues/10516)
[<samp>(bdd98)</samp>](bdd985433)
- Add `screenshotDirectory` config to `browser.expect.toMatchScreenshot`
 -  by [@&#8203;macarie](https://redirect.github.com/macarie) in
[#&#8203;10592](https://redirect.github.com/vitest-dev/vitest/issues/10592)
[<samp>(a60de)</samp>](a60ded0fb)
- Update `@sinonjs/fake-timers` and support mocking `Temporal`  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **OpenCode (gpt-5.6-sol)** in
[#&#8203;10654](https://redirect.github.com/vitest-dev/vitest/issues/10654)
[<samp>(f8b15)</samp>](f8b1532fe)
- Remove webdriverio package  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10675](https://redirect.github.com/vitest-dev/vitest/issues/10675)
[<samp>(5fed6)</samp>](5fed68f72)
- Clear mocks by default before each test  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10613](https://redirect.github.com/vitest-dev/vitest/issues/10613)
[<samp>(0f646)</samp>](0f6463bf2)
- Don't emit localStorage warnings on Node 26, fail gracefully when
worker fails to start  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10293](https://redirect.github.com/vitest-dev/vitest/issues/10293)
[<samp>(334ed)</samp>](334edef92)
- Separate config resolution from the server creation  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10554](https://redirect.github.com/vitest-dev/vitest/issues/10554)
[<samp>(1c0ec)</samp>](1c0ec3444)
- Inline projects extend the root config by default  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10750](https://redirect.github.com/vitest-dev/vitest/issues/10750)
[<samp>(fec00)</samp>](fec001ad3)
- Enable mocking Temporal without fake timers  -  by
[@&#8203;fabon-f](https://redirect.github.com/fabon-f), **Hiroshi
Ogawa** and **OpenCode (gpt-5.6-sol)** in
[#&#8203;10757](https://redirect.github.com/vitest-dev/vitest/issues/10757)
[<samp>(ac2d4)</samp>](ac2d46b42)
- Support nested projects  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10846](https://redirect.github.com/vitest-dev/vitest/issues/10846)
[<samp>(ec367)</samp>](ec367cf2a)
- Use `>` as separator in `-t`, calculate `only` once  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10686](https://redirect.github.com/vitest-dev/vitest/issues/10686)
[<samp>(a0b20)</samp>](a0b20bc86)
- Fail the test when an asynchronous assertion is not awaited  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10868](https://redirect.github.com/vitest-dev/vitest/issues/10868)
[<samp>(86d4a)</samp>](86d4a9da9)
- Share the Vite server between inline projects  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10848](https://redirect.github.com/vitest-dev/vitest/issues/10848)
[<samp>(d87c9)</samp>](d87c96ee4)
- Parse files statically in vitest list by default  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11088](https://redirect.github.com/vitest-dev/vitest/issues/11088)
[<samp>(51e94)</samp>](51e949416)
- **benchmark**:
- Rewrite the public API  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10113](https://redirect.github.com/vitest-dev/vitest/issues/10113)
[<samp>(19f6e)</samp>](19f6e8947)
- **browser**:
- Iframe scale  -  by
[@&#8203;macarie](https://redirect.github.com/macarie) in
[#&#8203;9745](https://redirect.github.com/vitest-dev/vitest/issues/9745)
[<samp>(b6398)</samp>](b639852cc)
- Enable `locators.exact` by default  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10430](https://redirect.github.com/vitest-dev/vitest/issues/10430)
[<samp>(e2032)</samp>](e203202f9)
- Require `sessionId` for orchestrator html request  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **OpenAI Codex** in
[#&#8203;10522](https://redirect.github.com/vitest-dev/vitest/issues/10522)
[<samp>(79b7d)</samp>](79b7d8fcc)
- Save failure screenshots in `attachmentsDir`  -  by
[@&#8203;macarie](https://redirect.github.com/macarie) in
[#&#8203;10917](https://redirect.github.com/vitest-dev/vitest/issues/10917)
[<samp>(3b5bb)</samp>](3b5bbd8b4)
- **coverage**:
- `include/exclude` globs too eager  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;9818](https://redirect.github.com/vitest-dev/vitest/issues/9818)
[<samp>(edacb)</samp>](edacb0fd4)
- Allow `thresholds.perFile` to accept an object  -  by
[@&#8203;vladlenskiy](https://redirect.github.com/vladlenskiy) and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;10190](https://redirect.github.com/vitest-dev/vitest/issues/10190)
[<samp>(13b78)</samp>](13b78d98b)
- **expect**:
- Fix `toThrow("")` behavior by reverting
[#&#8203;6710](https://redirect.github.com/vitest-dev/vitest/issues/6710)
 -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in
[#&#8203;9643](https://redirect.github.com/vitest-dev/vitest/issues/9643)
and
[#&#8203;6710](https://redirect.github.com/vitest-dev/vitest/issues/6710)
[<samp>(6c3e4)</samp>](6c3e4bdbf)
- **mocker**:
- Deserialize automock as automock  -  by
[@&#8203;nami8824](https://redirect.github.com/nami8824) in
[#&#8203;10192](https://redirect.github.com/vitest-dev/vitest/issues/10192)
[<samp>(2f892)</samp>](2f892712d)
- **reporters**:
- `blob` reporter and `--merge-reports` default to `.vitest/blob/`  - 
by [@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;10232](https://redirect.github.com/vitest-dev/vitest/issues/10232)
[<samp>(d22b0)</samp>](d22b029ae)
- Write json and junit reporter output files to `.vitest` by default  - 
by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa**, **OpenCode (gpt-5.6-sol)** and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;10621](https://redirect.github.com/vitest-dev/vitest/issues/10621)
[<samp>(58577)</samp>](58577290a)
- **spy**:
- Preserve class mock prototype methods on instances  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10910](https://redirect.github.com/vitest-dev/vitest/issues/10910)
[<samp>(6093d)</samp>](6093d764a)
- **types**:
- Add better promise support in expects and matchers  -  by
[@&#8203;samchungy](https://redirect.github.com/samchungy) and
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;8266](https://redirect.github.com/vitest-dev/vitest/issues/8266)
[<samp>(41f55)</samp>](41f551bce)
- **ui**:
- Harden UI API access  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Hiroshi
Ogawa** and **OpenAI Codex** in
[#&#8203;10583](https://redirect.github.com/vitest-dev/vitest/issues/10583)
[<samp>(4c26d)</samp>](4c26d7675)
- Change html reporter default output to `.vitest`  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **Hiroshi
Ogawa** in
[#&#8203;10620](https://redirect.github.com/vitest-dev/vitest/issues/10620)
[<samp>(29c36)</samp>](29c364d50)

#####    🚀 Features

- Add `createReport` and `.vitest` report directory convention  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;9993](https://redirect.github.com/vitest-dev/vitest/issues/9993)
[<samp>(72a6d)</samp>](72a6dc257)
- Expose default reporters through `configDefaults.reporters`  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **Claude
Opus 5 (1M context)** in
[#&#8203;10219](https://redirect.github.com/vitest-dev/vitest/issues/10219)
[<samp>(083f6)</samp>](083f6bdd6)
- Support merge reports for non-sharded multi-environment runs (take 2)
 -  by [@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa),
**Claude Opus 5 (1M context)**, **OpenAI Codex** and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;10031](https://redirect.github.com/vitest-dev/vitest/issues/10031)
[<samp>(e60b2)</samp>](e60b2f49e)
- Add `logger.formatError`  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **OpenAI
Codex** in
[#&#8203;10268](https://redirect.github.com/vitest-dev/vitest/issues/10268)
[<samp>(2c5f3)</samp>](2c5f3ee2f)
- Support typescript build mode  -  by
[@&#8203;lishaduck](https://redirect.github.com/lishaduck) in
[#&#8203;9870](https://redirect.github.com/vitest-dev/vitest/issues/9870)
[<samp>(106da)</samp>](106da5896)
- Add toggable `injectCjsGlobals` option  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10709](https://redirect.github.com/vitest-dev/vitest/issues/10709)
[<samp>(82671)</samp>](826714ece)
- Promote fsModuleCache to a top-level option  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10734](https://redirect.github.com/vitest-dev/vitest/issues/10734)
[<samp>(78ed7)</samp>](78ed73afd)
- Support non-ascii characters in `for/each` title placeholders  -  by
[@&#8203;k-yle](https://redirect.github.com/k-yle) in
[#&#8203;10773](https://redirect.github.com/vitest-dev/vitest/issues/10773)
[<samp>(15e0a)</samp>](15e0af953)
- Report the duration breakdown as percentages  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) and
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in
[#&#8203;10820](https://redirect.github.com/vitest-dev/vitest/issues/10820)
[<samp>(c67d2)</samp>](c67d296f4)
- Promote parseSpecifications out of experimental  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11087](https://redirect.github.com/vitest-dev/vitest/issues/11087)
[<samp>(b628c)</samp>](b628cb680)
- Promote clearCache out of experimental  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;11086](https://redirect.github.com/vitest-dev/vitest/issues/11086)
[<samp>(d4fe1)</samp>](d4fe1986f)
- **api**:
- Expose logs recorded during the test  -  by
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10277](https://redirect.github.com/vitest-dev/vitest/issues/10277)
[<samp>(cba20)</samp>](cba2036a1)
- **benchmark**:
- Add pluggable benchmark provider API  -  by
[@&#8203;GuillaumeLagrange](https://redirect.github.com/GuillaumeLagrange)
and [@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10799](https://redirect.github.com/vitest-dev/vitest/issues/10799)
[<samp>(86c70)</samp>](86c700ed8)
- **browser**:
- Export aria tree utils  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) in
[#&#8203;10171](https://redirect.github.com/vitest-dev/vitest/issues/10171)
[<samp>(c3423)</samp>](c3423014c)
- Support dom snapshot trace view  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa), **Claude Opus
5 (1M context)** and **OpenAI Codex** in
[#&#8203;10102](https://redirect.github.com/vitest-dev/vitest/issues/10102)
[<samp>(7eddd)</samp>](7eddd273d)
- Provide project reference in `ToMatchScreenshotResolvePath`  -  by
[@&#8203;macarie](https://redirect.github.com/macarie) and
[@&#8203;sheremet-va](https://redirect.github.com/sheremet-va) in
[#&#8203;10138](https://redirect.github.com/vitest-dev/vitest/issues/10138)
[<samp>(16654)</samp>](166544e39)
- Show aria tree on locator element error  -  by
[@&#8203;hi-ogawa](https://redirect.github.com/hi-ogawa) and **OpenAI
Codex** in
[#&#8203;10257](https://redirect.github.com/vitest-dev/vitest/issues/10257)
[<samp>(04f04)</samp>](04f04cdd1)
- Support custom `kind` in `page.mark`  -  by
[@&#8203;AriPerkkio](https://redirect.github.com/AriPerkkio) in

> [!IMPORTANT]
> ✂ PR body was truncated to here.


</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 6am every weekday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend Renovate
CLI](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjIwNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIl19-->

---------

Co-authored-by: wardpeet <ward@coding-tech.com>
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-03 20:18:21 +01:00
shreyas-mastra
655b19993f
chore(security): Vanta 2026-10-30 - zod ^4.6.7, @hono/node-server 2.1.5 (direct bumps) (#28983)
## Vanta 2026-10-30 security fixes (consolidated)

Direct dependency bumps and lockfile updates only. **No
overrides/resolutions added or raised.** The earlier override-based
edits on this branch were reverted; those findings are deferred below.

| Package | From → To | Advisory | Where |
|---|---|---|---|
| zod | ^3.25.76 → ^4.6.7 | zod <4.6.6 (High; no fixed 3.x) |
`client-sdks/react` (dev), `deployers/cloudflare` (dev),
`server-adapters/nestjs` (dev), `packages/editor` (dev),
`packages/playground-ui` (dep), `packages/playground`,
`workflows/_test-utils`, `examples/{durable-agents,inngest}`,
`explorations/longmemeval`,
`observability/_examples/otel-bridge/agent-hub`, e2e fixtures/templates
(`experiment-worker/fixtures/*`, `deployers/template/cloudflare`,
`no-bundling/template`, agent-builder `minimal-mastra-project`) + root
`pnpm-lock.yaml` |
| @hono/node-server | 1.19.x / 2.1.1 → 2.1.5 | CVE-2026-118663 /
GHSA-rmxm-3fg6-px4f (Medium) | direct deps: `examples/agent-builder`,
`otel-bridge/hono-multi/service-{one,two,mastra}`,
`templates/template-customer-refund-agent/client-demo-ui`,
`templates/template-kyc-customer-onboarding`,
`templates/template-security-incident-triage` |

Peer ranges (`^3.25.0 || ^4.0.0`) are unchanged, so consumers are
unaffected. Changeset: patch for `@mastra/playground-ui` (runtime zod
dep).

Supersedes the zod parts of #28075 (that PR also raises a pnpm override
and rewrites the `zod-v3` compat aliases to v4, so it is left as-is for
maintainers).

### Deferred (needs override, upstream release, or is intentional)
- zod v3 compat aliases (`zod-v3` in `packages/core`,
`packages/schema-compat`, `e2e-tests/type-check/template`;
`e2e-tests/client-js/zod-v3`): intentional zod 3 test coverage; no fixed
3.x release. Needs a decision to drop/dismiss.
- zod 3.25.76 transitive via `@arcadeai/arcadejs`, `@mcp-ui/client`,
firecrawl, `agent-browser`, `zod-to-json-schema`, MCP SDK paths:
upstream pins; override-only.
- @hono/node-server 1.19.x transitive via `@modelcontextprotocol/sdk`
(root, `examples/agent`, `packages/mcp/integration-tests`), and npm
lockfiles of `scripts/gh-issue-triage` (existing override, left alone)
and the two templates: override-only.
- graphql-scalars, raw-body, jose (templates/scripts): override-only.
- @azure/msal-node <7.1.0: 6.0.1 via `@azure/identity@4.14.0` (fixed in
4.14.1, blocked by the 1-day `minimumReleaseAge`; lockfile refresh
tomorrow), 5.6.0 via `@microsoft/teams.apps` (no fixed release).
- @opentelemetry/core <2.8.0: via `@google-cloud/pubsub@5` (fix needs
pubsub 6 major).
- @ai-sdk/provider-utils 2.2.8 / ai 4.x: pinned vendored AI SDK v4 line;
no fixed release in that major.
- extract-zip, deepmerge: no patched version.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR updates Zod and `@hono/node-server` versions in selected
packages, examples, and templates to address security advisories. It
also updates playground form code to work with Zod 4.

## Changes

- Updates selected `zod` dependencies to `^4.6.7`.
- Updates selected `@hono/node-server` dependencies to `2.1.5`.
- Updates the playground form’s IP address and record validators for Zod
4.
- Maps a specific Zod validation error to the message `Required`.
- Adds a patch changeset for `@mastra/playground-ui`.

## Validation

Test results are not provided in the supplied change summary.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: shreyas-mastra <327047572+shreyas-mastra@users.noreply.github.com>
2026-10-30 15:30:35 -04:00
shreyas-mastra
e35d500c14
chore(security): Vanta 2026-10-29 - systeminformation 5.33.16, re2js 2.8.8, provider-utils 3.0.42 (nested lockfiles) (#28852) 2026-10-29 12:49:35 -07:00
Ward Peeters
f36e4f469a
Let MastraFactory pick the sandbox in the platform factory template (#28603)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-28 15:06:39 +01:00
Diego Antunes
b5bce97c24
feat(templates): add insurance policy checking (#28484)
## Description

Adds an official Insurance Policy Checking template for brokers to
compare issued policies with accepted proposals or contracts. Users
upload PDFs in Mastra Studio, identify the agreed terms and any
supporting amendments, inspect findings with source evidence, and review
a versioned PDF report before approving it. Confirmed discrepancies can
produce a proposed correction request for manual delivery.

The template includes local document storage, configurable processing
budgets, broker review through a suspend/resume workflow, sample PDFs, a
usage walkthrough, and unit, integration, and Studio end-to-end tests.
Scope is limited to `templates/template-insurance-policy-checking`;
there are no changes to framework packages.

**Mastra dependencies intentionally use `latest`.** `@mastra/core`,
`@mastra/libsql`, and `@mastra/memory` are set to `"latest"`, as is the
`mastra` devDependency. This follows the explicit requirements in the
[template contribution
guide](https://github.com/mastra-ai/mastra/blob/main/templates/README.md).


## Related issue(s)

The issue requirement is waived for this PR: this is a new official
template developed by a member of the Mastra organization.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update

## Checklist

- [x] The related issue requirement is waived, as explained above
- [x] I have made corresponding changes to the documentation
- [x] I have added tests that cover the feature
- [x] I have addressed all Coderabbit comments on this PR


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR adds a template that helps brokers check whether an issued
insurance policy matches the terms they agreed to. It shows findings
with evidence, lets brokers review and approve a specific report
version, and can prepare a correction request for confirmed differences.

## Summary

- Adds `templates/template-insurance-policy-checking`, with setup and
usage guides, sample documents, and configurable input and processing
limits.
- Adds PDF intake, evidence-backed comparison, versioned reports, broker
review and approval, and proposed correction requests.
- Adds local storage and recovery, provider configuration, and
processing-budget controls.
- Adds unit, integration, evaluation, and Studio end-to-end test suites.

Test execution results and review finding counts are not available in
the supplied evidence.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-27 22:49:33 +00:00
Diego Antunes
5d4d9c7b88
feat(templates): add accounts payable invoice processing (#28532)
## Description

Adds the official Accounts Payable Invoice Processing template to the
Mastra monorepo. It extracts invoice data from PDFs and images,
validates vendors, matches purchase orders, detects duplicates, and
routes approvals through a persistent workflow. Includes a QuickBooks
MCP adapter for optional bill posting, setup documentation, local tests,
and a sandbox integration suite.

All `@mastra/*` dependencies and the `mastra` devDependency explicitly
use `"latest"`, following the requirements in
[templates/README.md](https://github.com/mastra-ai/mastra/blob/main/templates/README.md#required-files).

## Related issue(s)

The issue requirement is waived for this contribution. This is a new
feature integrating an official template already published in the
[Mastra template
catalog](https://mastra.ai/templates/accounts-payable-automated-invoice-processing)
into the monorepo.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update

## Checklist

- [x] Related issue requirement waived as explained above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR adds a template that helps a business check invoices before
paying them. It checks invoice details against vendor and purchase-order
records, sends invoices that need review to an approver, and can post
approved bills to QuickBooks when configured.

## What changed

- Added an Accounts Payable Invoice Processing template to the Mastra
monorepo.
- Added invoice validation and workflow controls for vendor checks,
purchase-order matching, duplicate detection, and policy-based routing.
- Added authenticated approval and rejection. Each decision is bound to
the workflow run and invoice digest.
- Added signing-key-based approval proofs that can survive process
restarts. Without a configured signing key, the development key is
process-random, so pending decisions may not survive a restart.
- Added an optional QuickBooks MCP provider for accounting searches and
bill posting. Posting is disabled by default and requires explicit
configuration.
- Added setup and contribution documentation, environment examples, and
lint and formatting configuration.
- Added unit and workflow tests, including process-restart coverage for
approval and rejection, plus an optional live QuickBooks sandbox
integration suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-27 22:49:27 +00:00
Ward Peeters
1001dcc4a8
Add template-factory starter for the software factory (#28255)
## Summary
- Adds `templates/template-factory`, a starter that deploys the Mastra
software factory to the platform.
- `src/mastra/index.ts` configures `MastraFactory` with a
`PlatformSandbox` and repo templates, and requires `DATABASE_URL`
outside local development.
- The package declares the `@mastra/core` and
`@mastra/platform-workspace` dependencies that the entry imports
directly.

## Test plan
- Confirmed `PlatformSandbox` and `createRepoTemplate` are exported from
`@mastra/platform-workspace`.
- Not yet run end to end: start with `pnpm dev` against a Postgres
`DATABASE_URL` and the platform env vars.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR adds two starter projects for Mastra Factory, which helps coding
agents work on software issues. One starter uses platform services when
deployed; the other runs its services on infrastructure you manage.

## Changes

- Adds `templates/template-factory` with setup documentation, package
scripts, and deployment configuration. It requires `DATABASE_URL` and
`FACTORY_CREDENTIAL_ENCRYPTION_KEY`, uses PostgreSQL for storage and
vectors, and passes `MASTRACODE_PUBLIC_URL` for deployed sign-in links.
It uses local sandboxes in development and platform sandboxes otherwise.
- Adds `templates/template-factory-self-hosted` with WorkOS
authentication, PostgreSQL storage and vectors, GitHub App integration,
credential encryption, and a local sandbox. Its entry point requires the
database URL, WorkOS cookie password, credential-encryption key, and
GitHub App settings.
- Adds Docker Compose configuration and `db:up` and `db:down` scripts
for the self-hosted starter’s local PostgreSQL database.
- Both entry points prepare and finalize `MastraFactory`, then export a
configured `Mastra` instance.

## Testing

End-to-end testing has not been run. The reported test plan is to start
the platform starter with `pnpm dev`, a PostgreSQL `DATABASE_URL`, and
the required platform environment variables. No other test results were
supplied.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-27 17:06:06 +01:00
shreyas-mastra
34983c9bbb
chore(security): Vanta 2026-10-23/26 - storybook 9.1.21, body-parser, fast-uri, multer, serialize-javascript, zod pins, esbuild/bundle-name overrides (#28325)
## Update 2026-10-26 afternoon (Vanta pass)
Added commit `f6e4b670` on top of the 16:20 ET main merge:
- **esbuild 0.18.20 → 0.25.12** (GHSA-67mh-4wv8-2f99) and **bundle-name
3.0.0 → 4.1.1** (AIKIDO-2026-886499): the 12:43 ET merge of main dropped
the two `pnpm-workspace.yaml` entries this PR added on 10-23
(`'@esbuild-kit/core-utils>esbuild': 0.25.12` and
`'default-browser@4.0.0>bundle-name': 4.1.1`), so both old versions were
back in `pnpm-lock.yaml`. This commit puts them back exactly as before.
No other overrides changed.
- Added the empty changeset
`.changeset/vanta-2026-10-26-afternoon-overrides.md`.
- `pnpm install --frozen-lockfile --lockfile-only` passes.

After this, `osv-scanner` on all 34 lockfiles finds only the documented
leftovers: zod 3.25.76, ai 4.3.19 / `@ai-sdk/provider-utils` 2.2.8 (the
v4 line), extract-zip 2.0.1 (no patch), `@opentelemetry/core` 1.30.1,
and `@azure/msal-node` 5.6.0 / 6.0.1.

---

## Update 2026-10-26 (Vanta pass)
Merged `origin/main` (no conflicts) and added commits `9b169f0f` and
`94e183ff`:

| Package | From → To | Finding | Where | How |
|---|---|---|---|---|
| body-parser | 2.3.0 → 2.4.0 | CVE-2026-111181 / GHSA-27r3-jxmh-p828
(High) | root `pnpm-lock.yaml`, `examples/agent`, refund and genui
templates (npm) | Raised the root floor `body-parser@<2.3.0: 2.3.0` →
`<2.4.0: 2.4.0`. Added a floor in `examples/agent`. `npm update` in the
templates. `patches/body-parser@2.3.0.patch` renamed to `@2.4.0` (same
one-line raw-body interop; it applies cleanly). |
| body-parser | 1.20.6 → 1.20.9 | same advisory, 1.x line | all 10
`e2e-tests/*` lockfiles (verdaccio → express 4) | New floor
`body-parser@<1.20.9: 1.20.9`. The `patches/body-parser@1.20.6.patch`
files are renamed to `@1.20.9` (they apply cleanly). |
| fast-uri | 3.1.8 → 3.1.9 | CVE-2026-110095/-110180/-110306/-110725 |
root, e2e-tests ×10, `examples/agent`, otel-bridge `agent-hub`,
`acp-validator`, `gh-issue-triage`, refund and genui templates | Raised
the existing floors/pins from 3.1.8 to 3.1.9 |
| fast-uri | 4.2.1 → 4.2.3 | GHSA-333x-w4r6-6crp, GHSA-w74x-v6f9-j3xg,
GHSA-wjr9-j795-jxcr, GHSA-xhq7-xmqj-769h | otel-bridge `agent-hub` |
Raised the existing floor `fast-uri@>=4.0.0 <4.1.5: 4.2.1` → `<4.2.3:
4.2.3` |
| multer | 2.4.0 → 2.5.0 | CVE-2026-113872 / GHSA-q7qp-rjg7-q26m (High)
| root | Floor `multer@<2.3.0: 2.4.0` → `multer@<2.5.0: 2.5.0` |
| serialize-javascript | 7.1.2 → 7.1.4 | CVE-2026-115897 /
GHSA-m5mm-p8h7-m29v | root | Floor `<7.0.5: ^7.0.5` → `<7.1.3: ^7.1.3` |
| zod | 4.3.6 / 4.4.3 / 4.5.4 → 4.6.7 | CVE-2023-54404 /
GHSA-mrhx-c7xc-m3w5 (High) | exact pins in
`templates/template-kyc-customer-onboarding`,
`templates/template-security-incident-triage`,
`packages/mcp/integration-tests/{v2,published-v1}`,
`e2e-tests/commonjs/template` | Direct pin bump (same major) |
| fastify | `^5.12.5` → `^5.12.6` | CVE-2026-107832 | devDependency
specifiers in `server-adapters/fastify` and `workflows/inngest` (the
lock already had 5.12.6) | Specifier bump |

- Every new version is older than 24h: body-parser 2.4.0 and 1.20.9
(10-22), multer 2.5.0 (10-22), serialize-javascript 7.1.4 (10-23),
fast-uri 3.1.9 (10-19), fast-uri 4.2.3 (10-19), qs 6.16.1 (10-14, pulled
in by body-parser 2.4.0), zod 4.6.7 (10-12).
- No overrides or floors were removed; the existing ones were only
raised.
- `pnpm install --frozen-lockfile --lockfile-only` passes at the root
and in the nested e2e/example workspaces.
- Added the empty changesets
`.changeset/vanta-2026-10-26-security-floors.md` and
`.changeset/vanta-2026-10-26-fast-uri-4.md`.
- **Not changed:**
- zod 3.25.76: the fix exists only on zod 4, and the zod-v3 support and
compat tests intentionally stay on 3.
- `@azure/msal-node` 5.6.0: the fix is 7.1.0, but `@azure/identity` 4.14
pins `^6` and `@microsoft/teams.apps` 2.1.1 pins `^5.6.0`, so this would
be a two-major runtime jump.
- extract-zip 2.0.1: no patched release (the advisory lists `>=2.0.2`,
which has not been published).
- `@opentelemetry/core` 1.x: needs pubsub 6 / spanner 9, which are
majors.
  - ai v4 / provider-utils: the v4 line is vendored on purpose.

---

Refs mastra-ai/platform#2931

Vanta remediation, 2026-10-23 (follow-up to #28138, which has merged).

| Package | From → To | Finding | Where | How |
|---|---|---|---|---|
| storybook, @storybook/react-vite (+ react, builder-vite, csf-plugin,
react-dom-shim) | 9.1.20 → 9.1.21 | CVE-2026-114125 (Critical),
CVE-2026-114126 (High) | `client-sdks/react` devDependencies | Direct
bump `^9.1.20` → `^9.1.21` |
| esbuild | 0.18.20 → 0.25.12 | GHSA-67mh-4wv8-2f99 | better-auth →
drizzle-kit 0.31.10 → @esbuild-kit/esm-loader → @esbuild-kit/core-utils
(pins `~0.18.20`) | Override `'@esbuild-kit/core-utils>esbuild':
0.25.12` |
| bundle-name | 3.0.0 → 4.1.1 | AIKIDO-2026-886499 | @mastra/deepeval →
deepeval → open@9 → default-browser@4 (pins `^3`) | Override
`'default-browser@4.0.0>bundle-name': 4.1.1` |

### Why there is a `trustPolicyExclude` for storybook 9.1.21
`client-sdks/react` stays on the storybook 9 line; we are not doing the
storybook 10 major here. The only patched 9.x release is 9.1.21. It was
published on 2026-10-12 without the trusted-publisher evidence that
earlier 9.1.x releases had, so `trustPolicy: no-downgrade` fails with
`ERR_PNPM_TRUST_DOWNGRADE`. The exclude covers exactly the six packages
pnpm rejects, each pinned to `@9.1.21`: `@storybook/react-vite`,
`storybook`, `@storybook/react`, `@storybook/builder-vite`,
`@storybook/csf-plugin` and `@storybook/react-dom-shim`. No other
versions or packages are excluded. The packages come from the official
storybook monorepo release, 9.1.21 on the v9 line.

### Notes
- Every new version is older than 24h, so it satisfies
`minimumReleaseAge: 1440`. storybook 9.1.21 is 11 days old, esbuild
0.25.12 is from Nov 2025 and bundle-name 4.1.1 is from 2026-09-25.
- The esbuild override is dev-only: drizzle-kit is a CLI pulled in by
better-auth. I checked that `@esbuild-kit/core-utils` `transform()`
works against esbuild 0.25.12.
- bundle-name 4.x keeps the same `bundleName()` API. It is used only by
`open`'s macOS default-browser lookup.
- `pnpm build-storybook` in `client-sdks/react` fails on main too. The
error is a Babel 8 `loadPartialConfig` error, which happens with 9.1.20
as well, so it is not caused by this PR.
- I ran `pnpm install --frozen-lockfile` and it passes. The changeset is
empty because no published package changes.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## ELI5

This PR updates dependency versions and rules that keep older,
reported-vulnerable versions out of the project. It also updates
Storybook and records the changes in changesets.

## Summary

- Raises security-related dependency versions or minimums across the
root project, examples, templates, packages, and e2e workspaces. The
updates include `body-parser`, `fast-uri`, `multer`,
`serialize-javascript`, `zod`, and Fastify.
- Renames `body-parser` patch files and updates workspace references to
match the new versions.
- Updates Storybook packages in `client-sdks/react` from 9.1.20 to
9.1.21. Adds an `esbuild` override and updates the `bundle-name`
override.
- Adds changesets for the dependency updates. No tests were added.

## Validation

The author reports that frozen-lockfile installs pass at the root and in
nested e2e and example workspaces. The author also reports that `pnpm
build-storybook` fails on `main` as well as this branch, with a Babel 8
`loadPartialConfig` error.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-26 16:39:13 -04:00
shreyas-mastra
be82e8d1b5
security: Vanta remediation (2026-10-22 → 2026-10-23: storybook, vitest 4.1.12, toml 5.0.1, fastify, ip-address) (#28138) 2026-10-23 11:44:17 -04:00
shreyas-mastra
323c14179f
chore(security): bump Node.js to 22.23.4 / 24.22.1 (CVE-2026-111497) (#28170)
Node.js Oct 2026 security release (v22.23.4 / v24.22.1): fixes Brotli
OOB write RCE CVE-2026-111497, TLS hostname-verification bypasses, dns
NUL truncation, eMudhra CA distrust, undici/OpenSSL/c-ares updates.

Bumps the Node pins in this repo: 24.22.1 for CI and the default E2B
template, 24.22.1 and 22.23.4 for the starter templates and the
otel-bridge example. `node:22-*` image tags stay floating, so they
resolve to the patched release on their own, and engine ranges are
unchanged.

⚠️ 24h soak rule: nodejs.org dist published 2026-10-21 10:33 UTC. Docker
`node:22.23.4-slim`/`-bookworm-slim` published 2026-10-21 17:38 UTC (24h
at 1:38 PM EDT Oct 22); `node:22.23.4-alpine` published 2026-10-22 02:39
UTC (24h at 10:39 PM EDT Oct 22). Do not merge before then.

After merge, images must be rebuilt and redeployed for the fix to take
effect.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## ELI5
This PR updates Node.js versions used by CI, templates, and E2B sandbox
defaults. It brings them to the versions identified in the PR
description as security updates.

## Changes
- Updates Node.js 24 pins in GitHub Actions workflows and the setup
action from `24.22.0` to `24.22.1`.
- Updates the default Node.js version for E2B templates to `24.22.1`.
- Updates Node.js pins in two templates and an observability example to
`22.23.4` or `24.22.1`.
- Adds a test for the E2B default template’s version-based identity and
a patch changeset for `@mastra/e2b`.

The supplied change summary does not confirm updates to floating
`node:22-*` tags. It does not provide test results or current review
findings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Justin Levine <20596508+jal-co@users.noreply.github.com>
2026-10-22 21:39:34 -04:00
mastra-platform[bot]
80c6d4f769
chore: refresh hardcoded model router defaults to latest models (#28108) 2026-10-22 11:21:31 +02:00
shreyas-mastra
a15ea70e71
security: Vanta remediation (2026-10-21) (#28018) 2026-10-21 09:12:30 -07:00
mastra-platform[bot]
6e178c365a
docs: declare node types in tsconfig examples (#27974) 2026-10-21 11:51:24 +02:00
Diego Antunes
ec35d91a79
feat(templates): add lead qualification template (#27839)
## Description

Adds `template-lead-qualification`, an official Mastra template for
researching companies and qualifying incoming leads against a
configurable ideal customer profile (ICP).

Supports JSON API or Attio intake, source-backed research through
OpenAI, deterministic scoring, and human review for uncertain results.
Includes durable workflow recovery, local Markdown reports or Attio
output, telemetry, evaluation tooling, documentation, and a demo.

**All `@mastra/*` packages and the `mastra` CLI use `"latest"`,
following the explicit requirements in the [official templates
README](https://github.com/mastra-ai/mastra/blob/main/templates/README.md).**

Includes unit and integration tests covering intake, qualification,
evidence validation, human review, Attio adapters, recovery, evaluation,
and telemetry.

## Related issue(s)

The issue requirement is waived for this contribution: this is a new
feature delivered as an official Mastra template and developed by a
member of the Mastra organization.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update

## Checklist

- [x] Related issue requirement waived for this contribution (see above)
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This PR adds a ready-to-use Mastra template that checks whether new
company leads match a configurable ideal customer profile. It researches
companies, scores leads, requests human review when needed, and safely
recovers after interruptions.

## Summary

- Adds the official `template-lead-qualification` template.
- Supports JSON API and Attio intake, with local Markdown or Attio
output.
- Adds OpenAI-backed research with source, citation, domain, and
evidence validation.
- Adds deterministic scoring for business model, employee count,
headquarters, and buying intent.
- Adds human review, approval, reopening, conflict handling, and output
reconciliation.
- Adds durable storage, retries, idempotency, restart recovery, and
uncertain-write recovery.
- Adds privacy-filtered telemetry, evaluation tooling, quality fixtures,
reporting, and retention maintenance.
- Adds Attio setup tooling, webhook authentication, mapping validation,
and migration support.
- Adds documentation, demos, and unit and integration tests.
- Documents the requirement to use `"latest"` for `@mastra/*` packages
and the `mastra` CLI.

## Validation

Recent changes also address dispatch after input-drain failures,
rejected-evidence isolation, internationalized email domains, report
ordering, diagnostic URL stability, maintenance CLI locking, and
semantic evaluation reviews. Test execution results are not available in
the supplied evidence.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alex Booker <booker@booker.codes>
2026-10-21 09:44:58 +01:00
shreyas-mastra
f3cf77305f
security: Vanta remediation (2026-10-20) (#27828) 2026-10-20 08:39:07 -07:00
shreyas-mastra
fa409d430b
security: Vanta remediation pass 2026-10-14/15/19 (zod 4.6.7, @ai-sdk/provider-utils, @copilotkit template) (#27023) 2026-10-19 11:32:32 -07:00
mastra-platform[bot]
6bfe7087fc
fix(core): accept refusal answers from classifier decision models (#27488) 2026-10-18 11:03:21 -07:00
Justin Levine
380dfd6587
feat(templates): read AGENT_INSTRUCTIONS and AGENT_MODEL in starter agent (#27282) 2026-10-16 10:48:12 -04:00
Justin Levine
24381fc938
feat(template-starter-agent): name the agent from AGENT_NAME (#27039)
## Why

Platform onboarding now lets users name their starter agent and sets
that name as `AGENT_NAME` on the starter project
(mastra-ai/platform#3522). The template hardcoded "Starter Agent", so
Studio and the agent's replies ignored it.

## What changed

- `agentName` reads `AGENT_NAME` and falls back to "Starter Agent" when
it's unset or blank. The agent's display name, the first line of its
system prompt, and the static welcome message use it.
- The agent id stays `agent`, so existing threads, Connect channels, and
the welcome thread still resolve.
- `.env.example` documents `AGENT_NAME`.

## Scope

Bot display names in Slack, Discord, and Telegram are out of scope. A
Studio edit to the system prompt replaces the name line along with the
rest of the prompt.

## Verification

- `tsc --noEmit` passes on a fresh install of the template.
- Loaded the agent with `AGENT_NAME="Support triage"`: name "Support
triage", prompt starts "You are Support triage". Unset, empty, and
whitespace-only values all give "Starter Agent". The id stays `agent` in
every case.

Fixes PLTFRM-2657


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

You can set a name for the starter agent with `AGENT_NAME`. If the value
is missing or blank, it uses “Starter Agent.”

## Summary

- Use the trimmed `AGENT_NAME` value for the agent’s display name and
the opening line of its system prompt. Keep the agent ID as `agent`.
- Use the configured name in the static welcome message and its Studio
navigation instructions.
- Document `AGENT_NAME` in `.env.example` as an optional setting.

Test results were not provided.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-14 13:37:45 -04:00
Diego Antunes
9d94cffd5b
feat(templates): add vendor risk questionnaire (#26924)
## Description

Adds the official Vendor Risk Questionnaire template, created by Mastra
member, in `templates/template-vendor-risk-questionnaire`.

Mastra workflows handle XLSX/DOCX intake, draft answers from approved
local evidence with citations, and require human review and approval
before exporting the completed questionnaire in its original format.
Includes a Svelte web demo, CLI tools, local persistence, review
metrics, setup guides, and automated unit, integration, security, and
evaluation tests.

## Related issue(s)

Not applicable. This is a new official Mastra template created by a team
member; no associated issue is required.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update

## Checklist

- [ ] I have linked the related issue(s) in the description above — N/A
for this team-authored official template.
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have addressed all Coderabbit comments on this PR

Tests are included in the branch; they were not rerun while preparing
this PR description.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This PR adds a tool to help teams answer vendor security questionnaires
using approved company documents. It drafts answers with citations, then
asks a person to review and approve them before filling in and returning
the original XLSX or DOCX file.

## Summary

- Adds a Vendor Risk Questionnaire template with a Svelte demo, CLI
tools, setup guides, local persistence, metrics, and automated tests.
- Supports XLSX and DOCX questionnaires, with evidence in Markdown,
JSON, CSV, PDF, and XLSX formats.
- Validates questionnaire mappings, source files, evidence scope,
citations, and answer destinations before processing or export.
- Uses bounded, screened AI workflows to draft answers from approved
evidence. Unsupported answers can be marked unknown or routed for
review.
- Requires human review and approval before export. The export preserves
the original document and updates approved answer fields.
- Adds run cancellation and resumption, database writer ownership and
recovery, review metrics, and privacy-filtered observability.

## Validation

The PR description says tests were not rerun while preparing it. Current
test results are not provided.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-14 09:46:22 +01:00
Abhi Aiyer
de08e3033a
fix(templates): prevent slow email redaction on long log strings (#26620)
Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-10 12:29:47 -07:00
shreyas-mastra
4573441fde
fix(deps): Vanta 2026-10-09 security updates (handlebars, hono, follow-redirects, @whatwg-node/fetch) (#26532) 2026-10-09 17:32:23 -07:00
Diego Antunes
9241d454c6
fix(template-genui-data-explorer): use absolute README links (#26414)
## Description

**This PR only fixes links in the GenUI Data Explorer README.** Replace
four relative links with absolute URLs to the documentation and
contribution guide in the Mastra monorepo so they work from the
[published template
page](https://mastra.ai/templates/genui-data-explorer). No application
code, dependencies, or runtime behavior changes.

Verified all four target paths against upstream main. README formatting
and Git whitespace checks passed, and an independent review found no
issues.

## Related issue(s)

No linked issue; this is a README-only link correction.

## Type of change

- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update

## Checklist

- [ ] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have addressed all Coderabbit comments on this PR
2026-10-08 13:03:15 +01:00
Diego Antunes
f2412328d1
feat(templates): add Competitor Monitor with Jev (#26353)
## Description

Adds the existing official Competitor Monitor with Jev template to
`templates/template-competitor-monitor-jev` in the Mastra monorepo.

This template is already published in the official catalog:
https://mastra.ai/templates/competitor-monitor-jev

Users provide competitor URLs and monitoring interests through Mastra
Studio chat. Native workflows collect public pages, persist baselines,
compare subsequent captures, and classify changes with Jev while
retaining source links and before-and-after evidence.

Includes conversation memory, browser fallback, optional daily
schedules, Markdown notifications, documentation, and tests.

Validation:
- 112 automated tests passed, including Chrome browser tests.
- TypeScript checks, production build, and formatting checks for
committed files passed.
- Live OpenAI chat collected three Resend pages and created baselines.
- A new conversation recovered the saved configuration and completed
another check.
- A real Jev request through Vercel AI Gateway succeeded using a labeled
synthetic pricing example.

Live validation did not cover an actual website change through
classification or scheduled notification delivery. The dedicated
live-evaluation suite requires separate operator-supplied inputs and
Studio execution records.

## Related issue(s)

No separate issue is linked. This is a new template contribution
proposed by a Mastra team member to bring an already-published official
template into the monorepo.

Published template: https://mastra.ai/templates/competitor-monitor-jev

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update

## Checklist

- [x] I have provided the contribution context and linked the published
official template above
- [x] I have made corresponding changes to the documentation
- [x] I have added tests that prove the feature works
- [x] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This template helps teams track changes on public competitor pages. It
saves an earlier version, compares new versions, and uses Jev to
identify changes that may matter.

## Summary

- Adds a Mastra Studio chat agent to configure monitors and start
checks.
- Collects public pages, saves baselines, and records changes with
source links and before-and-after evidence.
- Uses Jev to classify changes and routes uncertain cases for review.
- Adds persistent storage, conversation memory, browser rendering
fallback, optional daily schedules, and Markdown notifications.
- Adds setup documentation, configuration examples, and automated tests
for collection, classification, storage, scheduling, and reporting.

The PR objectives report 112 automated tests passed, along with
TypeScript, production build, and formatting checks. They also report
live checks for page collection, baseline creation, configuration
recovery, and a synthetic Jev pricing example. Live validation did not
cover classification of an actual website change or scheduled
notification delivery. Follow-up commit reports cite 124 non-live tests
passing, plus TypeScript, build, and formatting checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alex Booker <booker@booker.codes>
2026-10-08 10:49:21 +01:00
Diego Antunes
446a2843a9
feat(templates): add generative UI data explorer template (#26333)
## Description

Adds a standalone data explorer template demonstrating generative UI
with Mastra and CopilotKit. Users ask questions in a Next.js chat, and
the agent selects React components to present verified answers as metric
cards, tables, charts, and cohort heatmaps.

The template includes 24 complete months of synthetic B2B SaaS Sales
data in SQLite, generated during initial setup and preserved across
restarts. It supports filtering, comparisons, drill-down, corrections,
and persistent chat history. Data-source adapters and the component
catalog can be extended independently.

All changes are contained in `templates/template-genui-data-explorer`.
The template includes setup and extension documentation, local NPM
tooling, deterministic Mastra evaluations, and browser tests. It targets
a local single-user workspace; remote UI access requires an
authentication gateway.

Validation:
- Formatting, TypeScript checks, and production builds passed.
- 13 unit tests and 59 integration tests passed.
- Eight deterministic evaluation dimensions passed.
- Browser and standalone packaging suites passed in the previous
validation round; they were not rerun for this schema refactor.
- No paid-provider benchmark was run.

Known dependency limitation: the audit reports 19 affected package
entries, including six high-severity entries in development
dependencies. The production audit reports 12 entries with no high or
critical findings. Remaining advisories involve `braces`, `sprintf-js`,
and AI SDK provider utilities; no compatible patched replacements were
found.

## Related issue(s)

No linked issue. This PR proposes a new standalone template.

## Type of change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update

## Checklist

- [ ] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have addressed all Coderabbit comments on this PR

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This PR adds a ready-to-run explorer where users can ask questions about
sample sales data and see answers as charts, tables, and cards. It
checks the data behind each answer and saves chat sessions so users can
return to them.

## What changed

- Added a standalone Next.js and Mastra template that creates and
retains a synthetic SQLite sales dataset.
- Added a data-source framework and a Sales adapter for bookings,
conversion, growth, pipeline, forecasts, churn, and customer cohorts.
- Added schema validation for Sales filters and monthly periods before
worker execution. Runtime coverage checks remain in place, and invalid
input returns an error.
- Added checks that validate source results and component choices before
the UI displays them.
- Added saved chat sessions, filters, comparisons, drill-downs,
corrections, and persistent views.
- Added metric cards, tables, charts, and cohort heatmaps, with
documentation for extending data sources and UI components.
- Added launch and proxy tooling, workspace access controls, telemetry,
deterministic evaluations, and unit, integration, and browser test
suites.

## Validation and reported status

The PR objectives report passing formatting and TypeScript checks, 13
unit tests, 59 integration tests, 16 workspace browser tests, five
quality and packaging tests, and eight deterministic evaluation
dimensions. They also report a fresh standalone installation, production
build, and two standalone browser scenarios. No paid-provider benchmark
was run during final validation.

The objectives report 19 affected package audit entries, including six
high-severity development dependency entries. They report 12 production
audit entries and no high or critical production findings. Remaining
advisories involve `braces`, `sprintf-js`, and AI SDK provider
utilities. Review severity counts are unavailable because current review
findings were not supplied.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alex Booker <booker@booker.codes>
2026-10-08 10:48:39 +01:00
arctic-char
73398a7a00
fix(template-starter-agent): ship local gateway-backed web_search tool (#26288)
## Summary

The starter template was importing `webSearchTool` from
`@mastra/core/tools`, which is a provider-executed placeholder that only
runs on OpenAI, Anthropic, Google, and xAI. On every other model the
agent's search call fails with `WEB_SEARCH_UNSUPPORTED_PROVIDER`.

Ports the gateway-backed web search tool from `template-docs-expert`: a
local `createTool` that posts to the Mastra Gateway's `chat/completions`
endpoint with `openrouter:web_search`. The gateway runs the search
server-side and returns the answer plus citation annotations, so the
agent model only needs tool-calling support (nothing provider-specific).

## Changes

- Add `src/mastra/tools/web-search.ts` (gateway-backed `web_search`
tool, output: `{ answer, sources[] }`).
- Swap `webSearchTool` import in `src/mastra/agents/agent.ts` from
`@mastra/core/tools` to the local file.

## Test plan

- `npm install` clean (template installs against `latest` dist-tags).
- `npx tsc --noEmit` clean.
- Works with any gateway-routed model; follow-up can revisit the
`gpt-6-luna` default from #26266 if we want a cheaper tool-capable
model.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## ELI5

The starter agent now uses a local web-search tool that sends searches
through the Mastra Gateway. This lets the agent use web search even when
its own model does not support a provider-specific search tool.

## Changes

- Added `webSearchTool` in
`templates/template-starter-agent/src/mastra/tools/web-search.ts`. It
sends queries to the Gateway’s chat-completions endpoint with
`openai/gpt-5-mini` and `openrouter:web_search`.
- The tool returns an answer and deduplicated citation sources. It
accepts `MASTRA_GATEWAY_URL` and requires `MASTRA_GATEWAY_API_KEY`.
- Updated the starter agent to use the local tool instead of the
imported `@mastra/core/tools` web-search tool. The other core tools
remain unchanged.
- Added a patch changeset for `template-starter-agent`.

## Validation

The PR description reports successful `npm install` and `npx tsc
--noEmit`. It does not provide a test command or results for the
reported behavior across gateway-routed models.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-07 14:06:50 -04:00
shreyas-mastra
ea7ca755a4
security: Vanta remediation pass 2026-10-07 (MCP SDK, sharp, hono) (#26260) 2026-10-07 09:29:07 -07:00
arctic-char
0069c3b68e
chore(template-starter-agent): default every model to gpt-6-luna (#26266)
## Summary

The starter agent template registers the built-in `webSearchTool`, a
placeholder that resolves to a **provider-executed** search tool
supporting only OpenAI, Anthropic, Google, and xAI. With the template
defaulting to `mastra/deepseek/deepseek-flash-latest` (#25989), every
run threw `WEB_SEARCH_UNSUPPORTED_PROVIDER`.

Rather than removing web search, this switches every model string in the
template to `mastra/openai/gpt-6-luna`:

- `agents/agent.ts`: agent model + observational memory model
- `welcome.ts`: welcome generation model + doc comment

## Test plan

- `gpt-6-luna` verified present in
`packages/core/src/llm/model/capabilities/openai.json`
- `npx tsc --noEmit` passes in the template
- `grep` confirms no remaining deepseek model strings in the template

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## ELI5

The starter agent now uses an OpenAI model instead of a DeepSeek model.
This change aims to keep the template’s web search working with its
default model.

## Changes

- Changed the agent model and observational-memory model in
`agents/agent.ts` to `mastra/openai/gpt-6-luna`.
- Changed the welcome-message model and its documentation in
`welcome.ts` to `mastra/openai/gpt-6-luna`.
- Kept the existing welcome-message fallback behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-07 10:59:34 -04:00
arctic-char
c4d6e92634
feat(template-connect-agent): adopt tools() + channels() (#25989)
## Summary

Updates `templates/template-connect-agent` to the current
`@mastra/connect` API surface:

- **`connect()` → `tools()`** — the template was on the deprecated
alias; the agent's toolset resolver and the activity-digest workflow now
use `tools()` directly.
- **`channels()` wired into the Mastra instance** — `channels: await
channels()` mounts the Slack/Discord/Telegram webhook + OAuth routes up
front, so connecting a channel on the platform brings it live without a
redeploy. No new template dependencies: the channel provider packages
ship as dependencies of `@mastra/connect`.
- **Deps track `latest`** — all `@mastra/*` deps and the `mastra` CLI
stay on the `latest` dist-tag; the stable releases
(`@mastra/connect@1.0.0`, `@mastra/core@1.75.0`, `mastra@1.33.0`)
include the current Connect API. The `legacy-peer-deps` `.npmrc`
workaround that was needed while tracking alpha is removed.
- README updated to match (channels section, `tools()` wording, channel
scoping under "Making it yours").

## Test plan

Verified against the published stable builds (`@mastra/connect@1.0.0`,
`@mastra/core@1.75.0`):

- `npm install` + `tsc --noEmit` clean
- `mastra build` succeeds (top-level `await channels()` bundles fine)
- Live boot with real platform credentials + Postgres:
  - `/api/agents/connect-agent` resolves **768 integration tools**
- channel webhook routes answer: unknown webhook ids return the channel
handlers' JSON 404 (`{"error":"Unknown webhook"}`), distinct from Hono's
plain-text 404 on unmatched paths

---------

Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-07 09:54:56 -04:00
shreyas-mastra
bf0dd07091
security: Vanta remediation pass 2026-10-05 (#25966)
Update 2026-10-06 (commits added on this branch; origin/main merged in
to clear the lockfile conflict)

Dependabot opened new alerts overnight (4 critical). This pass adds:
- braintrust ^3.24.0 -> ^3.36.0 in @mastra/braintrust. braintrust 3.27
pulled in simple-git 3.36.0, which has critical and high advisories
(GHSA-x6jw-m9v5-85vh, GHSA-v5rq-49vh-5v5c via @simple-git/argv-parser
1.1.1, GHSA-858h-whjf-mvg5, GHSA-g4wm-2vf7-vfgr). Those are only fixed
in simple-git 4. braintrust 3.36 no longer depends on simple-git, so
simple-git drops out of the lockfile. @mastra/braintrust only uses
initLogger and currentSpan.
- wrangler ^4.110.0 -> ^4.147.0 (devDependency of
@mastra/deployer-cloudflare, type-only import). This moves workerd
1.20260708.1 -> 1.20261001.1 on that chain (Aikido medium). workerd
1.20260714.1 is still there through the miniflare 4 devDependency in
stores/cloudflare and stores/cloudflare-d1.
- source-map-js 1.2.1 -> 1.2.2 (GHSA-68fv-2mgg-jv7q, high). Added the
floor `source-map-js@>=1.0.0 <1.2.2: 1.2.2` in the root and in 15 nested
pnpm workspaces (9 e2e projects, mastracode/web, otel-bridge agent-hub
and hono-multi, agent-builder, mcp and memory integration-tests).
postcss, css-tree, magicast and @tailwindcss/node all declare ^1.2.x. In
the customer-refund template, a plain npm lock refresh was enough (no
override).
- postcss-selector-parser: raised the existing floor from `>=7.1.0
<7.1.3: 7.1.3` to `>=7.1.0 <7.1.6: 7.1.6` (GHSA-rj75-hqrm-r3gf, medium).
- observability/_examples/otel-bridge/hono-multi: tsx catalog ^4.21.0 ->
^4.23.15. tsx 4.23 uses esbuild ~0.28, so esbuild 0.27.2 is gone (Aikido
high and low, fixed in 0.28.1).
- Changeset `.changeset/vanta-2026-10-06.md`: patch for
@mastra/braintrust.

Still not fixed (as of 2026-10-06)
- sprintf-js 1.0.3/1.1.3 (GHSA-hp3w-g68c-fv3c): no patched release.
- postcss-selector-parser 6.0.10/6.1.3: the fix is only in 7.1.6.
@tailwindcss/typography 0.5.20 pins 6.0.10 exactly, and cssnano
6/postcss-calc 9 use ^6.
- katex 0.16.47 (GHSA-238p-pmpm-9mq7, low): the fix is in 0.18.2.
mermaid 12.1.0 still declares ^0.16.47.
- http-cache-semantics: 4.3.0 is now older than 24h, but it still
doesn't touch the max-stale path, and the advisory still lists no
patched version.
- braces 3.0.3 has no new release.
- The rest of the deferred list below is unchanged.

---

Vanta remediation for 2026-10-05. The finding list was rebuilt from
GitHub Dependabot, OSV-scanner on every tracked lockfile, and Aikido
intel (full intel.aikido.dev feed re-pulled today). It is not a Vanta
export.

What changed

Package bumps
- probe-image-size ^7.2.3 -> ^7.4.0 in @mastra/memory
(GHSA-gjj5-9665-rwrc, high).
- verdaccio ^6.10.4 -> ^6.10.5 in the 9 e2e projects. That moves
@verdaccio/core to 8.3.2 and js-yaml 5.2.2 -> 5.4.1
(GHSA-r3ph-w7gj-g6xm, medium).
- smol-toml 1.8.0 -> 1.9.0 pin in @mastra/code-sdk.

Root lockfile refresh (no range changes)
- serialize-javascript 7.0.5 -> 7.1.2, shell-quote 1.10.0 -> 1.12.0, ws
7.5.11 -> 7.5.13, enhanced-resolve -> 5.26.0, fs-extra 11.3.5 -> 11.4.1,
@sinclair/typebox 0.27.8 -> 0.27.12, @zip.js/zip.js 2.8.26 -> 2.23.0,
memfs/@jsonjoy.com/fs-snapshot 4.57.2 -> 4.80.0, @vue/* 3.5.38 ->
3.5.43.

pnpm overrides, for parents that pin an exact vulnerable version. All
stay in the same major.
- modern-tar 0.7.7 (just-bash), smol-toml 1.9.0 (just-bash,
@blaxel/core, @react-grab/cli, modal), strnum 2.4.2 (fast-xml-parser
5.10.1), inline-style-parser 0.2.9 (style-to-object 1.0.11),
`@opentelemetry/configuration>yaml` 2.9.1 (sdk-node 0.221).

Nested lockfiles
- shell-quote floor raised from <1.10.0 to <1.11.0 in examples/agent,
examples/voice-agent and otel-bridge/agent-hub.
- yaml 2.9.0 -> 2.9.1 in e2e-tests/pkg-outputs, examples/durable-agents,
mastracode/web, packages/mcp/integration-tests and the customer-refund
template.
- next 16.3.6 -> 16.3.8 in packages/memory/integration-tests.
- customer-refund template: tinypool 2.1.0 -> 2.1.2 through an override
scoped to oxfmt. oxfmt 0.59 pins it exactly, and bumping oxfmt would
change the template's format check.

Not fixed here
- braces 3.0.3 (GHSA-vfj7-8cjw-p6xm) and http-cache-semantics 4.2.0
(GHSA-ch52-4w7c-c8xp): no patched release. http-cache-semantics 4.3.0 is
outside the advisory range, but it doesn't change the max-stale code
path, so bumping to it would only hide the alert.
- extract-zip 2.0.1: no patched release. It comes from the webdriverio
chain that #25855 removes.
- workerd 1.20260708/1.20260714 (Aikido medium): miniflare 4.x stops at
workerd 1.20260730. The fix needs miniflare 5, which is only published
as an alpha.
- Major-only: @ai-sdk/provider-utils 2.2.8 / ai 4.3.19 (AI SDK v4),
@opentelemetry/core 1.30.1, esbuild 0.18/0.25/0.27.0 (convex pins 0.27.0
exactly), js-yaml 3, brace-expansion 1/2, uuid 11, zod 3, pino 8/9,
undici 6, plus other Aikido lows.
- websocket-driver 0.7.5: Aikido says the fix is 0.8.x, but no 0.8 is
published on npm.

The changeset is a patch for @mastra/memory and @mastra/code-sdk.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## ELI5

This PR updates several dependencies that have security fixes. It also
adds version rules so nested projects use safer versions of related
packages.

## Changes

- Updates `probe-image-size` in `@mastra/memory` to `^7.4.0` and pins
`smol-toml` in `@mastra/code-sdk` to `1.9.0`.
- Updates Verdaccio to `^6.10.5` in nine end-to-end test projects.
- Raises `shell-quote` overrides to `1.11.0` and adds overrides for
transitive dependencies, including `yaml`, `source-map-js`,
`postcss-selector-parser`, `modern-tar`, `smol-toml`, `strnum`,
`inline-style-parser`, and `tinypool`.
- Updates `braintrust` to `^3.36.0`, `wrangler` to `^4.147.0`, and `tsx`
to `^4.23.15`.
- Adds patch changesets for `@mastra/memory`, `@mastra/code-sdk`, and
`@mastra/braintrust`. The changesets report no API changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-06 10:35:09 -04:00
shreyas-mastra
4358322b7b
chore(deps): override upstream-blocked vulnerable transitive deps (#25853) 2026-10-02 18:03:50 -07:00
shreyas-mastra
dd16328874
security: Vanta remediation pass 2026-10-02 (#25816) 2026-10-02 12:12:12 -07:00
shreyas-mastra
acb22d7557
security: Vanta remediation pass 2026-10-01 (#25694)
## Summary
Daily Vanta vuln remediation for 2026-10-01 (inventory from GitHub
Dependabot + OSV + Aikido lens; Vanta UI export unavailable this run).

### Bumps / floors
- `nodemailer` `^9.0.1` → `^10.0.6` (e2e monorepo template) + matching
test assertion
- `fastify` `^5.12.4` → `^5.12.5`
- `hono` `4.13.5` → `4.13.8`
(`templates/template-security-incident-triage`)
- `ajv` `8.17.1` → `8.18.0`, `fast-uri` `3.1.8`
(`mastracode/sdk/scripts/acp-validator`)
- `js-yaml` 5.x floor → `5.4.1` (root + `e2e-tests/experiment-worker`)
- `dompurify` floor → `3.4.16`
- `@ai-sdk/provider-utils` floors → `3.0.40` / `4.0.56` / `5.0.52`

### Deferred
- **extract-zip@2.0.1** — no patched release (latest is 2.0.1)
- **@ai-sdk/provider-utils@2.2.8** — AI SDK v4 pin; Aikido fix is major
→4.x only
- **webpack-dev-middleware@7.4.6** — pnpm supply-chain trust-downgrade
blocks install (`ERR_PNPM_TRUST_DOWNGRADE`)
- **uuid@3.4.0** and other major-only Aikido lows (es-module-lexer,
raw-body, yargs, zod3, protobufjs7, @noble/hashes, nanoid3)

Do not merge via agent.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## ELI5

This PR updates several software packages to versions reported to fix
security problems. It also records updates the author deferred because a
suitable fix was unavailable or the upgrade was blocked or too large.

## Changes

- Updated `nodemailer` in the e2e monorepo template to `^10.0.6` and
changed the related test assertion.
- Updated `fastify` to `^5.12.5` in the Fastify adapter and Inngest
workflow.
- Updated `hono` to `4.13.8` in the security incident triage template.
- Updated `ajv` to `8.18.0` and added `fast-uri` `3.1.8` to the ACP
validator.
- Added `js-yaml` overrides for affected version ranges in the root
workspace and experiment worker.
- Raised workspace dependency floors for `dompurify` and
`@ai-sdk/provider-utils`.
- Added a patch changeset for `@mastra/core`.

## Deferred updates

The author reports deferring `extract-zip@2.0.1` because no patched
release was available, `@ai-sdk/provider-utils@2.2.8` because it
requires a major upgrade from the pinned AI SDK v4, and
`webpack-dev-middleware@7.4.6` because installation returned
`ERR_PNPM_TRUST_DOWNGRADE`.

The author also reports deferring `uuid@3.4.0` and other major-only
Aikido findings: `es-module-lexer`, `raw-body`, `yargs`, `zod3`,
`protobufjs7`, `@noble/hashes`, and `nanoid3`.

## Tests

Test results were not provided.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-01 12:10:08 -04:00
arctic-char
098d5036d5
fix(template-starter-agent): drop Redis dependency (#25706)
## Summary

The starter template no longer wraps its agent in `createDurableAgent`
(#25629), so the Redis-backed event cache that was there to replay
chunks across client disconnects / restarts is dead weight. Postgres
covers the data path on its own, and dropping Redis means one fewer
service a user has to run locally to try the template.

Changes:

- Remove `@mastra/redis` and `ioredis` from `package.json`
- Remove `RedisServerCache` wiring and the `cache` field from
`src/mastra/index.ts`
- Remove `REDIS_URL` from `.env.example` and the boot guard that threw
when it was unset
- Drop the Redis bullet from `README.md` get-started and the "streams
survive restarts" bullet it enabled
- Update `AGENTS.md` to list only `DATABASE_URL` as required
- Update `package.json` description to not mention the Redis cache

Postgres is still required.

## Test plan

- `grep -rn -i 'redis\|REDIS_URL' templates/template-starter-agent/`
returns nothing
- Boot the template locally with `REDIS_URL` unset to confirm the server
starts

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## ELI5

The starter agent no longer needs Redis, so this change removes its
Redis setup. Users still need PostgreSQL to run the starter.

## Changes

- Removed `@mastra/redis`, `ioredis`, and `RedisServerCache`
configuration.
- Removed the `REDIS_URL` startup requirement and Redis instructions
from the README, `.env.example`, and `AGENTS.md`.
- Updated the package description to remove its Redis event-cache
reference.
- Removed the claim that streams survive client disconnects and process
restarts.

## Testing

The provided test plan checks for remaining Redis references and starts
the template without `REDIS_URL`. The available summary does not report
whether these checks were completed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
2026-10-01 11:42:30 -04:00