Oh come on, overdue for what purpose? Digging Node out of another Node created hole?
Oh come on, overdue for what purpose? Digging Node out of another Node created hole?
Just look at the typing gymnastics in TypeScript.
Try better to avoid ad hominem attacks, please.
> but in the JS world there are band-aids everywhere
I apologize, "band-aid" was the wrong word to use for this specific case, because that unintentionally disparages "band-aids". You are right there are "band-aids" that fix real-world problems, and help heal accidental wounds. This experiment does neither and seems to me worse than a "band-aid". It's a fragile broken and fake bridge that looks like it can get you to your destination but will collapse right under you if you try to use it (rather than switching to what already works today).
?
It's so that CommonJS modules can use ESM modules.
---
Like suppose examplelib uses otherlib, both in CommonJS.
The examplelib wants to upgrade otherlib, but the new version uses ESM. Now, examplelib is stuck either on the old version, or has to undertake a rewrite (and propagate this situation downstream). Or adopt a transpiler and force downstream users to do the same.
Some would say "just rewrite in ESM" and that is a nice idea, but there are lots of tools with caveats, TypeScript, Jest, anything that depends on require-in-the-middle, etc.
It's hard to boil the ocean. (Just look at Python 3.)