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
On this page
Latest version 21.8.1, released November 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 18.7.2 to 20.0.0: 17 breaking changes in 1 version.
- From 18.0.4 to 20.0.0: 33 breaking changes in 8 versions.
tap 20.0.0 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 - Signature changed
bailout
Was const bailout: (message?: string | undefined) => void; now const bailout: (message?: string) => void. npmjs.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
plan
Was const plan: (n: number, comment?: string | undefined) => void; now const plan: (n: number, comment?: string) => void. npmjs.com - 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 - 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 - Signature changed
testdir
Was const testdir: (content?: import("@tapjs/fixture").FixtureDirContent | undefined) => string; now const testdir: (content?: import("@tapjs/fixture").FixtureDirContent) => string. npmjs.com - 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 - 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
tap 18.7.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("events")<[never]> | EventTarget, event: string, ...[msg... npmjs.com
tap 18.7.0 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 - 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
tap 18.4.0 breaking changes
- 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
tap 18.2.2 breaking changes
- Removed
esm
The esm option was removed and no longer has an effect. Remove it from your configuration. github.com - Renamed
t.notEqual
t.notEqual was renamed to t.not. Update calls to use t.not. github.com - Default changed
jsx
The jsx option is now disabled by default. Enable it explicitly if your tests rely on it. github.com - Default changed
ts
The ts option is now disabled by default. Enable it explicitly if your tests rely on it. github.com
tap 18.2.1 breaking changes
- Removed
esm
The esm option has been removed and no longer has any effect. Remove it from configuration. github.com - Renamed
t.notEqual
Calls to t.notEqual must be changed to t.not. github.com - Default changed
jsx
The jsx option now defaults to off. Users who rely on JSX test files must enable it explicitly. github.com - Default changed
ts
The ts option now defaults to off. Users who rely on TypeScript test files must enable it explicitly. github.com
Older versions
3 older versions.
Show 3 older versions
tap 18.1.1 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 - 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
tap 18.1.0 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 - 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
tap 18.0.4 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 - 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.