---
title: "@antfu/utils 9.0.0 Breaking Changes on npm | Since.dev"
description: "What each @antfu/utils release removed, renamed or changed: 16 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@antfu/utils
last_updated: 2026-12-04
---

# @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

Latest version `9.3.0`, released October 6, 2025. [Source repository](https://github.com/antfu/utils)

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

- From [8.1.1](#v-8-1-1) to [9.0.0](#v-9-0-0): 3 breaking changes in 1 version.
- From [0.7.4](#v-0-7-4) to [9.0.0](#v-9-0-0): 13 breaking changes in 7 versions.

## @antfu/utils 9.0.0 breaking changes

@antfu/utils 9.0.0, released February 15, 2025: 3 breaking changes.

- **Removed**  

The CJS build is removed, so code loading the package with require() must switch to ESM import. [github.com](https://github.com/antfu/utils/releases/tag/v9.0.0)
- **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](https://www.npmjs.com/package/@antfu/utils/v/9.0.0)
- **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](https://www.npmjs.com/package/@antfu/utils/v/9.0.0)

## @antfu/utils 8.1.1 breaking changes

@antfu/utils 8.1.1, released February 15, 2025: 1 breaking change.

- **Signature changed** `invoke`  

Was function invoke(fn: Fn): void; now function invoke\<T>(fn: () => T): T. [npmjs.com](https://www.npmjs.com/package/@antfu/utils/v/8.1.1)

## @antfu/utils 8.0.0 breaking changes

@antfu/utils 8.0.0, released January 9, 2025: 2 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](https://www.npmjs.com/package/@antfu/utils/v/8.0.0)
- **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](https://www.npmjs.com/package/@antfu/utils/v/8.0.0)

## @antfu/utils 0.7.10 breaking changes

@antfu/utils 0.7.10, released June 25, 2024: 1 breaking change.

- **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](https://www.npmjs.com/package/@antfu/utils/v/0.7.10)

## @antfu/utils 0.7.8 breaking changes

@antfu/utils 0.7.8, released May 8, 2024: 3 breaking changes.

- **Signature changed** `ControlledPromise.reject`  

Was reject(reason?: any): void; now reject: (reason?: any) => void. [npmjs.com](https://www.npmjs.com/package/@antfu/utils/v/0.7.8)
- **Signature changed** `ControlledPromise.resolve`  

Was resolve(value: T | PromiseLike\<T>): void; now resolve: (value: T | PromiseLike\<T>) => void. [npmjs.com](https://www.npmjs.com/package/@antfu/utils/v/0.7.8)
- **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](https://www.npmjs.com/package/@antfu/utils/v/0.7.8)

## @antfu/utils 0.7.6 breaking changes

@antfu/utils 0.7.6, released August 14, 2023: 1 breaking change.

- **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](https://www.npmjs.com/package/@antfu/utils/v/0.7.6)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @antfu/utils 0.7.5 breaking changes

@antfu/utils 0.7.5, released July 2, 2023: 2 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](https://github.com/antfu/utils/releases/tag/v0.7.5)
- **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](https://www.npmjs.com/package/@antfu/utils/v/0.7.5)

### @antfu/utils 0.7.4 breaking changes

@antfu/utils 0.7.4, released May 31, 2023: 3 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](https://www.npmjs.com/package/@antfu/utils/v/0.7.4)
- **Signature changed** `getTypeName`  

Was const getTypeName: (v: any) => string; now function getTypeName(v: any): string. [npmjs.com](https://www.npmjs.com/package/@antfu/utils/v/0.7.4)

And 1 more in this version.

## Related packages

- [@antfu/eslint-config](https://since.dev/packages/npm/@antfu/eslint-config.md)

## 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.
