Skip to content

[INTERNAL] Pin esmock to 2.7.6 - #874

Merged
d3xter666 merged 1 commit into
v4from
pin-esmock
Oct 9, 2026
Merged

d3xter666 merged 1 commit into
v4from
pin-esmock

Conversation

@d3xter666

Copy link
Copy Markdown
Contributor

esmock 2.7.7 takes a module.register fallback that imports src/esmockLoader.deprecated.js, but that file is not shipped in the published package. On Node.js < 22.15 (no module.registerHooks) this fails every esmock-based test with ERR_MODULE_NOT_FOUND.

The integration test runs on Node.js 20 and installs without a committed lockfile, so it floated from 2.7.6 to the broken 2.7.7. Pin to the exact 2.7.6, whose fallback references the shipped esmockLoader.js.

esmock 2.7.7 takes a module.register fallback that imports
src/esmockLoader.deprecated.js, but that file is not shipped in the
published package. On Node.js < 22.15 (no module.registerHooks) this
fails every esmock-based test with ERR_MODULE_NOT_FOUND.

The integration test runs on Node.js 20 and installs without a committed
lockfile, so it floated from 2.7.6 to the broken 2.7.7. Pin to the exact
2.7.6, whose fallback references the shipped esmockLoader.js.
@d3xter666
d3xter666 requested a review from a team October 8, 2026 12:41
@d3xter666
d3xter666 merged commit 134a342 into v4 Oct 9, 2026
22 checks passed
@d3xter666
d3xter666 deleted the pin-esmock branch October 9, 2026 04:53
d3xter666 added a commit that referenced this pull request Oct 9, 2026
The core issue has been resolved and we can unlock the version bump
updates. iambumblehead/esmock#345

Reverts: #874
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.

2 participants