[GH-ISSUE #1123] Migrate to ESM #4925

Closed
opened 2026-06-13 13:19:52 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @filipw01 on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/semver/semver/issues/1123

Require can be now used in the oldest supported LTS version so there should be nothing stopping from an esm migration
https://socket.dev/blog/require-esm-backported-to-node-js-20

Originally created by @filipw01 on GitHub (Jun 9, 2025). Original GitHub issue: https://github.com/semver/semver/issues/1123 Require can be now used in the oldest supported LTS version so there should be nothing stopping from an esm migration https://socket.dev/blog/require-esm-backported-to-node-js-20
Author
Owner

@ljharb commented on GitHub (Jun 9, 2025):

ESM is slower, less instrumentable, and has less features than CJS, so it's still not an obvious benefit. (also i think you meant node-semver, not the semver spec - ie, wrong repo)

<!-- gh-comment-id:2957099115 --> @ljharb commented on GitHub (Jun 9, 2025): ESM is slower, less instrumentable, and has less features than CJS, so it's still not an obvious benefit. (also i think you meant node-semver, not the semver spec - ie, wrong repo)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/semver#4925