Skip to content

chore!: drop support for older Node.js versions - #356

Merged
iambumblehead merged 1 commit into
mainfrom
chore/node-22
Oct 24, 2026
Merged

iambumblehead merged 1 commit into
mainfrom
chore/node-22

Conversation

@tommy-mitchell

@tommy-mitchell tommy-mitchell commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #254.

Targets Node.js ^22.15 || ^24 || >=26 (all current and LTS versions with module.registerHooks) and drops legacy code paths.

I've used Claude to help find dead code paths, so hopefully haven't missed anything.

@tommy-mitchell tommy-mitchell left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some outstanding questions:

Comment thread src/esmock.js Resolved
Comment thread src/esmockLoader.js Resolved
Comment thread tests/local/pnp/enable.js Resolved
Comment thread tests/tests-ava/spec/esmock.ava.spec.js Resolved
@iambumblehead

Copy link
Copy Markdown
Owner

looks good, would merge it but not sure if you think its ready for merge yet or not

@iambumblehead iambumblehead left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@iambumblehead

Copy link
Copy Markdown
Owner

some are using esmock for older node versions that may become un-supported, v20.20.2 here, #345 they'll have to use the older/currently published version

@tommy-mitchell

tommy-mitchell commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Updated to address comments. I think it's fine to drop support for older versions, they're EOL:

image

@tommy-mitchell

Copy link
Copy Markdown
Collaborator Author

fft merge if you feel comfortable with the changes

@iambumblehead

Copy link
Copy Markdown
Owner

will be interesting to see how much smaller the package is after this change

@iambumblehead
iambumblehead merged commit d12ace7 into main Oct 24, 2026
9 checks passed
@iambumblehead
iambumblehead deleted the chore/node-22 branch October 24, 2026 05:23
@tommy-mitchell

Copy link
Copy Markdown
Collaborator Author

@iambumblehead we probably also don't need to separate esmock.js and esmockLoader.js in the build output now

@iambumblehead

Copy link
Copy Markdown
Owner

good idea, yeah its probably not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get rid of old Node versions support

2 participants