3 ms·
There are still maintained and supported older versions of node.js by the likes of Debian, Ubuntu, Enterprise Linuxes. They backport security fixes and such dur
by 3np 2y ago
There are still maintained and supported older versions of node.js by the likes of Debian, Ubuntu, Enterprise Linuxes. They backport security fixes and such during a longer extended window but are unlikely to port ESM-require support. It may not be relevant to you and obv nobody's obliging you to also support those users, just saying it's not that binary.
- mattmanser 2y agoIs that really "support those users"? If they need to use a new library version, they can install their own version of node instead of relying on the OS supplied one. All the OS version is doing is supplying the convenience of not having to install it. Or have I misunderstood how those versions of node are used?
- 3np 2y agoSometimes the entire reason why they are still on that older LTS dist is because they still need (e.g.) node 12 for some reason.
- mattmanser 2y agoThat really becomes a "not your problem" as a library author. If a user wants to use an old version of node, they'll have to use an old version of the library that still supports cjs.
- rafaelmn 2y agoIf you are pinning to unsupported node you should not expect new npm packages to work, ESM or not. However given my NPM experiences in the past, I would not be surprised that someone updated to ESM in a revision bump.