This isn't really node specific, but XMLHttpRequest has long been all-but-replaced by fetch, and it would be nice to add a migration to allow these legacy codebases to run in modern environments, including Node.js
Before:
const req = new XMLHttpRequest();
req.addEventListener("load", () => console.log(this.responseText));
req.open("GET", "http://www.example.org/example.txt");
req.send();
After:
const req = await fetch("http://example.org");
console.log(req.text());
This isn't really node specific, but XMLHttpRequest has long been all-but-replaced by
fetch, and it would be nice to add a migration to allow these legacy codebases to run in modern environments, including Node.jsBefore:
After: