GeezerVison is showing github.com — esm: Unflag --experimental-modules by guybedford · Pull Request #29866 · nodejs/node
Conversation
guybedford
commented
Oct 7, 2019
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR unflags the --experimental-modules support making modules on-by-default, while remaining backwards-compatible with the current runMain.
This PR should only land after the remaining PRs have been fully considered:
In addition to:
- Ensuring documentation has been fully reviewed for an unflagged modules release
- Sign off from the modules group.
Checklist
-
make -j4 test (UNIX), or vcbuild test (Windows) passes
- tests and/or benchmarks are included
- documentation is changed or added
- commit message follows commit guidelines
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
MylesBorins, lin7sh, bricss, gengjiawen, amitport, ZYSzys, sepehr, styfle, csvan, aledalgrande, and 48 more reacted with thumbs up emoji
MylesBorins, lin7sh, bricss, jdalton, gengjiawen, littledan, TimothyGu, ZYSzys, shisama, Cherry, and 66 more reacted with hooray emoji
MylesBorins, lin7sh, bricss, trygve-lie, gengjiawen, hybrist, coderaiser, sepehr, aledalgrande, bathos, and 26 more reacted with heart emoji
MylesBorins, lin7sh, bricss, aduh95, sepehr, codingyourlife, aledalgrande, evanplaice, styfle, goncharov, and 16 more reacted with rocket emoji
jaydenseric, bricss, styfle, sepehr, evanplaice, ziishaned, SalvatorePreviti, and zaguiini reacted with eyes emoji
All reactions
-
👍
58 reactions
-
🎉
76 reactions
-
❤️
36 reactions
-
🚀
26 reactions
-
👀
8 reactions
|
//cc @nodejs/modules-active-members
|
MylesBorins and lin7sh reacted with thumbs up emoji
hybrist and lin7sh reacted with hooray emoji
All reactions
-
👍
2 reactions
-
🎉
2 reactions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The three failing tests in this PR are:
./node ./test/addons/async-hooks-promise/test.js the async hook promise injection is not being removed despite being disabled in https://github.com/nodejs/node/pull/29848/files#diff-e6db408e12db906ead6ddfac3de15a6fR314. @jasnell would value your input on this one if you have any suggestions here.
./node ./test/addons/make-callback-recurse/test.js, ./node ./test/node-api/test_make_callback_recurse/test.js both seem due to subtle timing changes with the switch to a promise-based bootstrap.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Adding WIP label based on PR description. Feel free to remove when appropriate, swap out with blocked label, or whatever. No strong opinions here. Just seems like the right thing to me. (The WIP label helps me in my workflow with the repository, so it's not just cosmetic for me, if that matters. But again, no strong opinions on this particular PR in that regard.)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
On @joyeecheung's advice I've gone ahead and changed the way the async bootstrap works. Instead of always applying an async bootstrap, the async bootstrap and all promises associated will only apply lazily when the ESM loader is actually in use. This way loading CommonJS retains a fully sync bootstrap that is completely backwards compatible with no timings changes or task queue differences.
This also removes the dependence of this work on #29848.
All tests are now passing! Further review welcome.
|
GeoffreyBooth, hybrist, and lin7sh reacted with hooray emoji
GeoffreyBooth and lin7sh reacted with rocket emoji
All reactions
-
🎉
3 reactions
-
🚀
2 reactions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 11, 2019
|
I've split out the bootstrap changes into a separate PR at #29937, and based this unflagging to that PR for a simpler diff.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
We likely want #29974 to land as well
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@nodejs/modules anyone have an issue with renaming --loader to --experimental-loader before we land this? I can open a PR (and 12.x backport), but I'd be concerned with unflagging and not being explicit about this
|
ljharb and reasonablytall reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
hybrist
hybrist approved these changes
+2 more reviewers
targos
targos approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
lib / src
Issues and PRs involving general changes in the lib/ or src/ directories.
semver-minor
PRs that contain new features and should be released in the next minor version.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|