Skip to content

swap to esm only - drop support for require() to load this package pre node v20.19#81

Merged
mansona merged 3 commits intomasterfrom
esm
Feb 24, 2026
Merged

swap to esm only - drop support for require() to load this package pre node v20.19#81
mansona merged 3 commits intomasterfrom
esm

Conversation

@mansona
Copy link
Member

@mansona mansona commented Feb 23, 2026

We are not dropping support for Node 14 in this PR because node 14 was the first version to ship un-flagged ESM support.

This just means that you can still use Node 14 if you are consuming this package in an ESM file. For you to consume this from a CJS file you need to upgrade to at least Node v20.19 which added support for require(esm)

@mansona mansona changed the title swap to esm only swap to esm only - drop support for require() to load this package pre node v20.19 Feb 24, 2026
@mansona mansona merged commit ed32835 into master Feb 24, 2026
35 checks passed
@mansona mansona deleted the esm branch February 24, 2026 16:32
@github-actions github-actions bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants