Skip to content

Update dependency readdirp to v5#120

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/readdirp-5.x
Open

Update dependency readdirp to v5#120
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/readdirp-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Nov 26, 2025

This PR contains the following updates:

Package Change Age Confidence
readdirp 3.6.05.0.0 age confidence

Release Notes

paulmillr/readdirp (readdirp)

v5.0.0

Compare Source

  • Make the package ESM-only. Reduces on-disk package size.
  • Increase minimum node.js version to v20.19. The versions starting from it support loading esm files from cjs
  • Increase security of NPM releases. Switch to token-less Trusted Publishing, with help of jsbt
  • Switch compilation mode to isolatedDeclaration-based typescript for simplified auto-generated docs

New Contributors

Full Changelog: paulmillr/readdirp@4.1.2...5.0.0

v4.1.2

Compare Source

What's Changed

New Contributors

Full Changelog: paulmillr/readdirp@4.1.1...4.1.2

v4.1.1

Compare Source

Fix invalid "type": "module" in package.json. Closes gh-203

Full Changelog: paulmillr/readdirp@4.1.0...4.1.1

v4.1.0

Compare Source

New Contributors

Full Changelog: paulmillr/readdirp@4.0.2...4.1.0

v4.0.2

Compare Source

  • Improve compatibility with graceful-fs and reduce amount of EMFILE errors by switching to async stat methods
  • Remove fileFilter "array of strings" from readme by @​karlhorky in #​198
  • improve typing for readdirpPromise by @​yuheiy in #​199

New Contributors

Full Changelog: paulmillr/readdirp@4.0.1...4.0.2

v4.0.1

Compare Source

Quick fix for invalid esm imports.

Full Changelog: paulmillr/readdirp@4.0.0...4.0.1

v4.0.0

Compare Source

  • Rewrite in typescript
  • Support hybrid common.js / esm modules
  • Remove glob support and all dependencies
  • Increase minimum node.js from v8 to v14
  • Make sure you're using let {readdirp} = require('readdirp') in common.js

Full Changelog: paulmillr/readdirp@3.6.0...4.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/readdirp-5.x branch from 804d856 to 955ffc6 Compare March 15, 2026 19:45
"js-yaml": "4.1.0",
"node-downloader-helper": "2.1.9",
"readdirp": "3.6.0",
"readdirp": "5.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: Breaking change - readdirp v5.0.0 is ESM-only and incompatible with CommonJS

This upgrade introduces multiple breaking changes that will cause the application to fail:

  1. ESM-only module: readdirp v5.0.0 is ESM-only and cannot be loaded with require(). The entire codebase uses CommonJS (require('readdirp') in app.js:14).

  2. Node.js version requirement: v5.0.0 requires Node.js v20.19+. While CI uses Node.js 22, the Docker container uses Alpine 3.22.2's default Node.js version which needs verification.

  3. Migration path: To use v5.0.0, the project would need to:

    • Convert to ESM (change all require() to import)
    • Add "type": "module" to package.json
    • Update all file extensions or module resolution
    • Verify Alpine 3.22.2 provides Node.js v20.19+

Recommendation: Stay on readdirp v3.x or upgrade to v4.x (which supports hybrid CommonJS/ESM) until the project is ready to migrate to ESM.

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot bot commented Mar 15, 2026

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 2
WARNING 0
SUGGESTION 0
Issue Details (click to expand)

CRITICAL

File Line Issue
package.json 32 Breaking change - readdirp v5.0.0 is ESM-only
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
app.js 186 CRITICAL: API breaking change - readdirp.promise() was removed in v4.0.0. In v5, readdirp returns an async iterable by default. The code needs to be updated from await readdirp.promise('/assets/.') to use the new async iteration API: const files = []; for await (const entry of readdirp('/assets/.')) { files.push(entry); }
Files Reviewed (1 file)
  • package.json - 2 issues (1 in diff, 1 related API change)

Fix these issues in Kilo Cloud

@renovate renovate bot force-pushed the renovate/readdirp-5.x branch from 955ffc6 to fa575c0 Compare March 15, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants