The Wire · Showcase
UNDICI RESTORES MOCK API COMPATIBILITY
By RepoJournal · Filed · About Node.js
Undici 8.2.0 broke the documented single-argument form of MockCallHistory filter methods. A fix just landed to restore backward compatibility without touching the new AND/OR semantics.
The mock utilities in undici [1] took a refactoring in 8.2.0 that inadvertently forced callers to pass a second `logs` argument to `filterCallsByX()` methods, breaking code that relied on the documented API. The fix restores the single-argument form by defaulting `logs` to `this.logs` in the helper [2], while keeping the internal AND/OR filter logic from the recent overhaul intact. This is the kind of regression that hits users running fresh installs against older documentation. If you upgraded to 8.2.0 and hit errors calling `filterCalls`, this patch gets you unblocked. The nodejs.org site is prepping a pride flag update to land around June 1st [3], and reliability is logging the first 2026 report for the books [4].
Action items
- → If running undici 8.2.0, upgrade to the next patch release nodejs/undici [immediate]
- → Review mock call filter usage in your test suite if recently upgraded nodejs/undici [plan]
References
- [1] fix(mock): restore single-arg MockCallHistory.filterCallsByX ↗ nodejs/undici
- [2] fix(mock): restore single-arg MockCallHistory.filterCallsByX (#5328) nodejs/undici
- [3] chore: pride flag ↗ nodejs/nodejs.org
- [4] Add report for 2026-06-01 nodejs/reliability
FAQ
- What changed in Node.js on June 1, 2026?
- Undici 8.2.0 broke the documented single-argument form of MockCallHistory filter methods. A fix just landed to restore backward compatibility without touching the new AND/OR semantics.
- What should Node.js teams do about it?
- If running undici 8.2.0, upgrade to the next patch release • Review mock call filter usage in your test suite if recently upgraded
- Which Node.js repositories shipped on June 1, 2026?
- nodejs/undici, nodejs/nodejs.org, nodejs/reliability