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

# readdirp breaking changes

readdirp 5.0.0 (November 25, 2025) is its newest release with breaking changes, 2 of them. The first: Package is now ESM-only in readdirp 5.0.0. Every breaking API change we have recorded in readdirp on npm: 18 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.1`, released August 6, 2026. [Source repository](https://github.com/paulmillr/readdirp)

Its 5.0.0 release requires Node.js 20.19 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 2 breaking changes in 1 version.

## readdirp 5.0.0 breaking changes

readdirp 5.0.0, released November 25, 2025: 2 breaking changes.

- **Behavior changed**  

The package no longer ships CommonJS, so code that loads it with require() must switch to ESM import. [github.com](https://github.com/paulmillr/readdirp/releases/tag/5.0.0)
- **Configuration changed**  

The package now requires Node.js v20.19 or later, so older Node.js versions are no longer supported. [github.com](https://github.com/paulmillr/readdirp/releases/tag/5.0.0)

## readdirp 4.0.0 breaking changes

readdirp 4.0.0, released August 25, 2024: 16 breaking changes.

- **Removed**  

The minimum supported Node.js version is now v14, so Node.js v8 is no longer supported. [github.com](https://github.com/paulmillr/readdirp/releases/tag/4.0.0)
- **Removed**  

Glob pattern support is gone, along with the dependencies it needed. Code that relies on glob matching must use another approach. [github.com](https://github.com/paulmillr/readdirp/releases/tag/4.0.0)
- **Removed** `promise`  

promise was removed in readdirp 4.0.0 [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Behavior changed** `readdirp`  

In CommonJS code, import the function with let {readdirp} = require('readdirp') instead of the previous form. [github.com](https://github.com/paulmillr/readdirp/releases/tag/4.0.0)
- **Signature changed** `default`  

Was function readdir(root: string, options?: readdir.ReaddirpOptions): readdir.ReaddirpStream namespace readdir; now const readdirp: (root: Path, options?: Partial\<ReaddirpOptions>) => ReaddirpStream. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Signature changed** `EntryInfo.dirent`  

Was dirent?: fs.Dirent; now dirent?: Dirent. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Signature changed** `EntryInfo.stats`  

Was stats?: fs.Stats; now stats?: Stats. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Signature changed** `ReaddirpOptions`  

Was interface ReaddirpOptions; now type ReaddirpOptions = ReturnType\<typeof defaultOptions>. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Signature changed** `ReaddirpOptions.alwaysStat`  

Was alwaysStat?: boolean; now alwaysStat: boolean. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)
- **Signature changed** `ReaddirpOptions.depth`  

Was depth?: number; now depth: number. [npmjs.com](https://www.npmjs.com/package/readdirp/v/4.0.0)

And 6 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

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