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

# tap breaking changes

tap 20.0.0 (June 24, 2024) is its newest release with breaking changes, 17 of them. The first: Signature changed afterEach. Every breaking API change we have recorded in tap on npm: 35 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `21.8.1`, released November 3, 2026. [Source repository](https://github.com/tapjs/tapjs)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [18.7.2](#v-18-7-2) to [20.0.0](#v-20-0-0): 17 breaking changes in 1 version.
- From [18.0.4](#v-18-0-4) to [20.0.0](#v-20-0-0): 33 breaking changes in 8 versions.

## tap 20.0.0 breaking changes

tap 20.0.0, released June 24, 2024: 17 breaking changes.

- **Signature changed** `afterEach`  

Was const afterEach: (fn: (t: import("@tapjs/test").Test\<import("@tapjs/test").BuiltPlugins, import("@tapjs/test").TestOpts>) => any) => void; now const afterEach: (fn: (t: import("@tapjs/test").Test) => any) => void. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `bailout`  

Was const bailout: (message?: string | undefined) => void; now const bailout: (message?: string) => void. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `beforeEach`  

Was const beforeEach: (fn: (t: import("@tapjs/test").Test\<import("@tapjs/test").BuiltPlugins, import("@tapjs/test").TestOpts>) => any) => void; now const beforeEach: (fn: (t: import("@tapjs/test").Test) => any) => void. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `capture`  

Was const capture: \<T extends {}, M extends import("@tapjs/intercept").Methods\<T>>(obj: T, method: M, impl?: ((this: T, ...a: any\[\]) => any) | undefined) => import("@tapjs/intercept").CaptureResultsMethod\<T, M, T\[M\]>; now const capture: \<T... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `captureFn`  

Was const captureFn: \<F extends (this: any, ...a: any\[\]) => any>(original: F) => F & {calls: import("@tapjs/intercept").CaptureResult\<F>\[\]; args: () =>... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `createMock`  

Was const createMock: \<B extends any\[\] | {\[k: string\]: any; \[k: number\]: any; \[k: symbol\]: any;}, O extends any\[\] | {\[k: string\]: any;}>(bases: B, overrides: O) => import("@tapjs/mock").MockedObject\<B, O>; now const createMock: \<B extends... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `emits`  

Was const emits: (emitter: import("events")<\[never\]> | EventTarget, event: string, ...\[msg, extra\]: import("@tapjs/core").MessageExtra) => Promise\<void>; now const emits: (emitter: import("events") | EventTarget, event: string, ...\[msg... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `intercept`  

Was const intercept: \<T extends object>(obj: T, prop: keyof T, desc?: PropertyDescriptor | undefined, strictMode?: boolean | undefined) => import("@tapjs/intercept").InterceptResultsMethod; now const intercept: \<T extends object>(obj: T... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `mockImport`  

Was const mockImport: \<T = any>(module: string, mocks?: Record\<string, any> | undefined) => Promise\<T>; now const mockImport: \<T = any>(module: string, mocks?: Record\<string, any>) => Promise\<T>. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `mockRequire`  

Was const mockRequire: \<T = any>(module: string, mocks?: Record\<string, any> | undefined) => T; now const mockRequire: \<T = any>(module: string, mocks?: Record\<string, any>) => T. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `only`  

Was const only: {(name: string, extra: import("@tapjs/test").TestOpts, cb: (t: import("@tapjs/test").Test\<import("@tapjs/test").BuiltPlugins, import("@tapjs/test").TestOpts>) => any)... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `plan`  

Was const plan: (n: number, comment?: string | undefined) => void; now const plan: (n: number, comment?: string) => void. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `spawn`  

Was const spawn: {(cmd: string): import("@tapjs/spawn").PromiseWithSpawn; (cmd: string, options: import("@tapjs/spawn").SpawnOpts, name?: string | undefined): import("@tapjs/spawn").PromiseWithSpawn; (cmd: string, args: string | string\[\]... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `stdinOnly`  

Was const stdinOnly: \<T extends import("@tapjs/core").BaseOpts>(extra?: (T & {tapStream?: import("stream").Readable | import("minipass").Minipass\<string | Buffer, import("minipass").Minipass.ContiguousData... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `testdir`  

Was const testdir: (content?: import("@tapjs/fixture").FixtureDirContent | undefined) => string; now const testdir: (content?: import("@tapjs/fixture").FixtureDirContent) => string. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `timeout`  

Was const timeout: (options?: {expired?: string | undefined; signal?: NodeJS.Signals | null | undefined;} | undefined) => void; now const timeout: (options?: {expired?: string; signal?: NodeJS.Signals | null;}) => void. [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)
- **Signature changed** `worker`  

Was const worker: {(filename: string): import("@tapjs/worker").PromiseWithWorker; (filename: string, name?: string | undefined): import("@tapjs/worker").PromiseWithWorker; (filename: string, options: import("@tapjs/core").WorkerOpts... [npmjs.com](https://www.npmjs.com/package/tap/v/20.0.0)

## tap 18.7.2 breaking changes

tap 18.7.2, released March 26, 2024: 1 breaking change.

- **Signature changed** `emits`  

Was const emits: (emitter: import("events") | EventTarget, event: string, ...\[msg, extra\]: import("@tapjs/core").MessageExtra) => Promise\<void>; now const emits: (emitter: import("events")<\[never\]> | EventTarget, event: string, ...\[msg... [npmjs.com](https://www.npmjs.com/package/tap/v/18.7.2)

## tap 18.7.0 breaking changes

tap 18.7.0, released January 25, 2024: 2 breaking changes.

- **Signature changed** `mockImport`  

Was const mockImport: (module: string, mocks?: Record\<string, any> | undefined) => Promise\<any>; now const mockImport: \<T = any>(module: string, mocks?: Record\<string, any> | undefined) => Promise\<T>. [npmjs.com](https://www.npmjs.com/package/tap/v/18.7.0)
- **Signature changed** `mockRequire`  

Was const mockRequire: (module: string, mocks?: Record\<string, any> | undefined) => any; now const mockRequire: \<T = any>(module: string, mocks?: Record\<string, any> | undefined) => T. [npmjs.com](https://www.npmjs.com/package/tap/v/18.7.0)

## tap 18.4.0 breaking changes

tap 18.4.0, released September 29, 2023: 1 breaking change.

- **Behavior changed**  

Symbol objects and enumerable Symbol properties are now formatted and compared, and known symbols print as Symbol.\<key>. Run tap --snapshot after updating and fix tests that relied on symbol keys being ignored. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.4.0)

## tap 18.2.2 breaking changes

tap 18.2.2, released September 28, 2023: 4 breaking changes.

- **Removed** `esm`  

The esm option was removed and no longer has an effect. Remove it from your configuration. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.2)
- **Renamed** `t.notEqual`  

t.notEqual was renamed to t.not. Update calls to use t.not. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.2)
- **Default changed** `jsx`  

The jsx option is now disabled by default. Enable it explicitly if your tests rely on it. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.2)
- **Default changed** `ts`  

The ts option is now disabled by default. Enable it explicitly if your tests rely on it. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.2)

## tap 18.2.1 breaking changes

tap 18.2.1, released September 28, 2023: 4 breaking changes.

- **Removed** `esm`  

The esm option has been removed and no longer has any effect. Remove it from configuration. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.1)
- **Renamed** `t.notEqual`  

Calls to t.notEqual must be changed to t.not. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.1)
- **Default changed** `jsx`  

The jsx option now defaults to off. Users who rely on JSX test files must enable it explicitly. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.1)
- **Default changed** `ts`  

The ts option now defaults to off. Users who rely on TypeScript test files must enable it explicitly. [github.com](https://github.com/tapjs/tapjs/releases/tag/tap%4018.2.1)

## Older versions

3 older versions.

### tap 18.1.1 breaking changes

tap 18.1.1, released September 23, 2023: 2 breaking changes.

- **Signature changed** `capture`  

Was const capture: \<T extends {}, M extends import("@tapjs/intercept").Methods\<T>>(obj: T, method: M, impl?: ((...a: any\[\]) => any) | undefined) => import("@tapjs/intercept").CaptureResultsMethod\<T, M, T\[M\]>; now const capture: \<T extends... [npmjs.com](https://www.npmjs.com/package/tap/v/18.1.1)
- **Signature changed** `captureFn`  

Was const captureFn: \<F extends (this: any, ...a: any\[\]) => any>(original: F) => ((...a: any\[\]) => any) & {calls: import("@tapjs/intercept").CaptureResult\<F>\[\]; args: () =>... [npmjs.com](https://www.npmjs.com/package/tap/v/18.1.1)

### tap 18.1.0 breaking changes

tap 18.1.0, released September 23, 2023: 2 breaking changes.

- **Signature changed** `emits`  

Was const emits: (emitter: import("node:events") | EventTarget, event: string, ...\[msg, extra\]: import("@tapjs/core").MessageExtra) => Promise\<void>; now const emits: (emitter: import("events") | EventTarget, event: string, ...\[msg... [npmjs.com](https://www.npmjs.com/package/tap/v/18.1.0)
- **Signature changed** `stdinOnly`  

Was const stdinOnly: \<T extends import("@tapjs/core").BaseOpts>(extra?: (T & {tapStream?: import("node:stream").Readable | import("minipass").Minipass\<string | Buffer, import("minipass").Minipass.ContiguousData... [npmjs.com](https://www.npmjs.com/package/tap/v/18.1.0)

### tap 18.0.4 breaking changes

tap 18.0.4, released September 18, 2023: 2 breaking changes.

- **Signature changed** `emits`  

Was const emits: (emitter: import("events") | EventTarget, event: string, ...\[msg, extra\]: import("@tapjs/core").MessageExtra) => Promise\<void>; now const emits: (emitter: import("node:events") | EventTarget, event: string, ...\[msg... [npmjs.com](https://www.npmjs.com/package/tap/v/18.0.4)
- **Signature changed** `stdinOnly`  

Was const stdinOnly: \<T extends import("@tapjs/core").BaseOpts>(extra?: (T & {tapStream?: import("stream").Readable | import("minipass").Minipass\<string | Buffer, import("minipass").Minipass.ContiguousData... [npmjs.com](https://www.npmjs.com/package/tap/v/18.0.4)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

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

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

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

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

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

---

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