RepoJournal
Node.js

@nodejs

The Node.js runtime — every backend team's CVE source of truth

Pick a date

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

References

  1. [1] fix(mock): restore single-arg MockCallHistory.filterCallsByX ↗ nodejs/undici
  2. [2] fix(mock): restore single-arg MockCallHistory.filterCallsByX (#5328) nodejs/undici
  3. [3] chore: pride flag ↗ nodejs/nodejs.org
  4. [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

Related across the cluster

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.