# What changed in tinyspy

> 4 changes in tinyspy 3 to 4 from its official release notes, upgrade guides and advisories: 2 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/tinyspy/

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

## tinyspy 4

### Breaking changes

- The package is now ESM-only, so developers using CommonJS must adapt their imports or module setup. (4.0.0) — [release notes](https://github.com/tinylibs/tinyspy/releases/tag/v4.0.0)

### New APIs and options

- Spies can now be restored automatically with using. (4.0.5) — [release notes](https://github.com/tinylibs/tinyspy/releases/tag/v4.0.5)

## tinyspy 3

### Breaking changes

- The original Promise is no longer wrapped. (3.0.0) — [release notes](https://github.com/tinylibs/tinyspy/releases/tag/v3.0.0)

### New APIs and options

- A resolves property is introduced. (3.0.0) — [release notes](https://github.com/tinylibs/tinyspy/releases/tag/v3.0.0)
