# What changed in vitest-browser-svelte

> 12 changes in vitest-browser-svelte 1 to 3 from its official release notes, upgrade guides and advisories: 5 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-12. HTML: https://unstale.sh/npm/vitest-browser-svelte/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## vitest-browser-svelte 3

### Breaking changes

- Rendering is now async-only, so developers must use render asynchronously. (3.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v3.0.0)

### Tooling

- Adds support for Vitest 5, allowing developers to use this package with that version. (3.1.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v3.1.0)

### Fixes and other changes

- All `pure` exports are now re-exported. (3.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v3.0.0)
- `RenderResult` is now exported for developers to use in types. (3.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v3.0.0)

## vitest-browser-svelte 2

### Breaking changes

- Moves @playwright/test out of package dependencies, changing how it is installed alongside vitest-browser-svelte. (2.1.1) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v2.1.1)
- Injects data-testid for more stable locator queries. If using snapshots with container, update to Vitest 4.0.18 to avoid rendering the injected attribute. (2.0.2) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v2.0.2)
- Supports the new Vitest syntax, which may require changes to existing usage. (2.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v2.0.0)

### New APIs and options

- Adds the wrapper option. (2.2.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v2.2.0)

### Tooling

- Render is integrated with trace marks, making render activity traceable. (2.1.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v2.1.0)

## vitest-browser-svelte 1

### Breaking changes

- DocumentFragment is no longer a supported debug argument. (1.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v1.0.0)

### Fixes and other changes

- Peer dependencies are locked, affecting dependency resolution when installing the package. (1.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v1.0.0)
- The package supports Vitest 4, allowing developers to use it with that Vitest release. (1.0.0) — [release notes](https://github.com/vitest-community/vitest-browser-svelte/releases/tag/v1.0.0)
