feat!: require Node 24 and migrate CJS to ESM output#3045
Draft
bennypowers wants to merge 1 commit intonode24/test-migrationfrom
Draft
feat!: require Node 24 and migrate CJS to ESM output#3045bennypowers wants to merge 1 commit intonode24/test-migrationfrom
bennypowers wants to merge 1 commit intonode24/test-migrationfrom
Conversation
🦋 Changeset detectedLatest commit: f0dce7c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
3 tasks
f2b5763 to
f8015fd
Compare
a38ded7 to
010ef78
Compare
f8015fd to
18a0066
Compare
8bd2017 to
268a3ff
Compare
a2a3658 to
eb87c8d
Compare
268a3ff to
61bf92a
Compare
b1a23e2 to
b77e600
Compare
b5e6238 to
32ba55e
Compare
b77e600 to
10e9722
Compare
32ba55e to
5abe25a
Compare
10e9722 to
d3acddd
Compare
4fb3367 to
4926432
Compare
441c093 to
e99e801
Compare
6aab5fb to
1effc4f
Compare
e99e801 to
f9df49b
Compare
1effc4f to
74db169
Compare
f9df49b to
16c8d24
Compare
74db169 to
2c9b144
Compare
e8cf07b to
e4d58b4
Compare
2c9b144 to
6de56b9
Compare
e4d58b4 to
20d4ea5
Compare
154f6c6 to
b5742ef
Compare
7f9a2d9 to
9665829
Compare
2561d7b to
bd8352e
Compare
9665829 to
68e0a42
Compare
bd8352e to
3310feb
Compare
68e0a42 to
9a44cdd
Compare
BREAKING CHANGE: Node 24+ is now required. All packages emit ESM. - Add "type": "module" to all package.json files - Update exports to use single "default" condition (remove CJS/ESM dual exports) - Update engines to require Node >=24.0.0 - Delete all index.mjs shim files (34 files) - Fix CJS interop issues across source files: - require.resolve → import.meta.resolve / createRequire - __dirname → import.meta.dirname - Default import interop for CJS packages (rollup plugins, saucelabs, etc.) - Add .nvmrc (v24.11.1) - Add changeset for breaking node version requirement Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9a44cdd to
f0dce7c
Compare
3310feb to
601a57f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BREAKING CHANGE: Node 24+ is now required. All packages emit ESM output.
"type": "module"to all package.json files (~38 packages)"default"condition (remove CJS/ESM dual exports)node >=24.0.0index.mjsshim files (no longer needed with native ESM)require.resolve()→import.meta.resolve()/createRequire()__dirname→import.meta.dirname.nvmrc(v24.11.1)This is PR 3 of 4 in the Node 24 migration stack.
Stack
node24/typescript-upgrade— TypeScript upgrade +.tsimports (chore: upgrade TypeScript to 5.9.3 and enable .ts imports #3043)node24/test-migration— mocha/chai → node:test migration (chore: migrate tests from mocha/chai to node:test #3044)node24/parse5-and-jsdoc— parse5 v8 + JSDoc→TS conversionsTest plan
npm run buildpasses with zero TS errorsexport/importsyntax)🤖 Generated with Claude Code