@antfu/utils breaking changes
@antfu/utils 9.0.0 (February 15, 2025) is its newest release with breaking changes, 3 of them. The first: Drops the CommonJS build; package is now ESM-only in @antfu/utils 9.0.0. Every breaking API change we have recorded in @antfu/utils on npm: 16 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 9.3.0, released October 6, 2025. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 8.1.1 to 9.0.0: 3 breaking changes in 1 version.
- From 0.7.4 to 9.0.0: 13 breaking changes in 7 versions.
@antfu/utils 9.0.0 breaking changes
- Removed
The CJS build is removed, so code loading the package with require() must switch to ESM import. github.com - Signature changed
debounce
Was function debounce<T extends (...args: any[]) => any>(delay: number, callback: T, options?: DebounceOptions): debounce<T> type debounce<T extends (...args: any[]) => any> = NoReturn<T> & Cancel; now function debounce<T extends (...args... npmjs.com - Signature changed
throttle
Was function throttle<T extends (...args: any[]) => any>(delay: number, callback: T, options?: ThrottleOptions): throttle<T> type throttle<T extends (...args: any[]) => any> = NoReturn<T> & Cancel; now function throttle<T extends (...args... npmjs.com
@antfu/utils 8.1.1 breaking changes
- Signature changed
invoke
Was function invoke(fn: Fn): void; now function invoke<T>(fn: () => T): T. npmjs.com
@antfu/utils 8.0.0 breaking changes
- Signature changed
objectEntries
Was function objectEntries<T extends object>(obj: T): [keyof T, T[keyof T]][]; now function objectEntries<T extends object>(obj: T): Array<[keyof T, T[keyof T]]>. npmjs.com - Signature changed
objectKeys
Was function objectKeys<T extends object>(obj: T): (`${keyof T & undefined}` | `${keyof T & null}` | `${keyof T & string}` | `${keyof T & number}` | `${keyof T & false}` | `${keyof T & true}`)[]; now function objectKeys<T extends... npmjs.com
@antfu/utils 0.7.10 breaking changes
- Signature changed
objectMap
Was function objectMap<K extends string, V, NK = K, NV = V>(obj: Record<K, V>, fn: (key: K, value: V) => [NK, NV] | undefined): Record<K, V>; now function objectMap<K extends string, V, NK extends string | number | symbol = K, NV = V>(obj... npmjs.com
@antfu/utils 0.7.8 breaking changes
- Signature changed
ControlledPromise.reject
Was reject(reason?: any): void; now reject: (reason?: any) => void. npmjs.com - Signature changed
ControlledPromise.resolve
Was resolve(value: T | PromiseLike<T>): void; now resolve: (value: T | PromiseLike<T>) => void. npmjs.com - Signature changed
isDef
Was const isDef: <T = any>(val?: T | undefined) => val is T; now const isDef: <T = any>(val?: T) => val is T. npmjs.com
@antfu/utils 0.7.6 breaking changes
- Signature changed
template
Was function template(str: string, ...args: (string | number | BigInt | undefined | null)[]): string; now function template(str: string, ...args: (string | number | bigint | undefined | null)[]): string. npmjs.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
@antfu/utils 0.7.5 breaking changes
- Behavior changed
deepMerge
deepMerge now lets a plain value in the source override the target's value. Check code that relied on the previous merge result. github.com - Signature changed
template
Was function template(str: string, ...args: any[]): string; now function template(str: string, ...args: (string | number | BigInt | undefined | null)[]): string function template(str: string, object: Record<string | number, any>... npmjs.com
@antfu/utils 0.7.4 breaking changes
- Signature changed
assert
Was const assert: (condition: boolean, message: string) => asserts condition; now function assert(condition: boolean, message: string): asserts condition. npmjs.com - Signature changed
getTypeName
Was const getTypeName: (v: any) => string; now function getTypeName(v: any): string. npmjs.com
And 1 more in this version.
Related packages
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.