nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨

Home Page:https://nodejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backport undici MessageEvent to v20.

mcollina opened this issue · comments

#52370 is tagged as semver-major because it changes an error message to be spec-compliant.

I recommend we backport it to Node v22 to ease long-term maintenance.

The errors were spec compliant, it's semver-major because it changed the error messages themselves. Since undici implements the webidl spec, and reuses it between everything web-related it implements, it's not feasible to match the errors to the old node ones (which were inconsistent).

I'd recommend backporting #52763 as well for better error messages and #52951 (when it lands) to make it fast.