News for hackers. Stuff that matters.
Re:Bun v1.0.0 by WorldMaker on Friday September 08, 2023 @07:51PM (#37440746)
The last version of Node that only supported CJS libraries has already long faded out of LTS. In my opinion, more libraries should just rip the band-aid off and entirely stop publishing CJS. Sure that will upset some downstream dependencies, but semver major tag it, and many of the downstream dependencies need the kick in the pants to move to ESM anyway.
Re:Bun v1.0.0 by 3np on Saturday September 09, 2023 @12:47AM (#37442383)
Node.js v12 doesn't have proper ESM support and went out of LTS < 6 months ago. Have some patience!
Re:Bun v1.0.0 by mijamo on Saturday September 09, 2023 @04:36AM (#37443366)
Node 12 went out of LTS 16 months ago. 4 months ago was Node 14
Re:Bun v1.0.0 by WorldMaker on Sunday September 10, 2023 @04:00PM (#37459417)
Also, Node 12 supported ESM somewhat fine, you just had to use the --experimental-modules flag for Node. If you still have to support Node 12 in 2023 for some odd reason, you probably shouldn't have a problem enabling an experimental flag to support more modern libraries.

Node 10 was truly the last LTS that had zero ESM support, and that support ended 2 and a half years ago.