GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — esm: Unflag --experimental-modules by guybedford · Pull Request #29866 · nodejs/node

Conversation

@guybedford

@guybedford guybedford commented Oct 7, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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:

  • Fix 3 remaining task_queue timing issues in this PR (discussed in esm: Unflag --experimental-modules #29866 (comment))
  • Re-flagging --experimental-json-modules (module: Revert remove experimental status from JSON modules #29754)
  • Package-relative loading (module: resolve self-references #29327)
  • Unflagging --experimental-exports (esm: unflag --experimental-exports #29867)
  • Bootstrap refactoring (Modules bootstrap refactoring #29937)
  • Resolution on exports fallback to main (ESM "exports" field disables "main" lookup #29932)
  • Conditional exports considerations (module: Conditional exports #29978)
  • Matching ESM extensions order (esm: modify resolution order for specifier flag #29974)

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
@nodejs-github-bot nodejs-github-bot added the lib / src Issues and PRs involving general changes in the lib/ or src/ directories. label Oct 7, 2019
@guybedford guybedford mentioned this pull request Oct 7, 2019
Unflagging PR blockers nodejs/modules#394
Closed
1 of 4 tasks
@guybedford
guybedford force-pushed the unflag-pr branch from 095d7d2 to 5cc5c96 Compare October 7, 2019 04:12
@guybedford guybedford added the esm Issues and PRs related to the ECMAScript Modules implementation. label Oct 7, 2019
@guybedford

guybedford commented Oct 7, 2019

Copy link
Copy Markdown
Contributor Author

//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.

@guybedford

guybedford commented Oct 7, 2019

Copy link
Copy Markdown
Contributor Author

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@guybedford guybedford mentioned this pull request Oct 7, 2019
async_hooks: buffer bootstrap events #29848
Closed
4 tasks done
joyeecheung
joyeecheung reviewed Oct 7, 2019
View reviewed changes
Comment thread test/message/stack_overflow.out Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Trott Trott added the wip Issues and PRs that are still a work in progress. label Oct 9, 2019
@Trott

Trott commented Oct 9, 2019

Copy link
Copy Markdown
Member

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.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

joyeecheung
joyeecheung reviewed Oct 10, 2019
View reviewed changes
Comment thread lib/internal/modules/cjs/loader.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@guybedford
guybedford force-pushed the unflag-pr branch 2 times, most recently from f391964 to fe3c3d1 Compare October 10, 2019 20:54
@guybedford

guybedford commented Oct 10, 2019

Copy link
Copy Markdown
Contributor Author

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.

@guybedford guybedford mentioned this pull request Oct 10, 2019
esm: unflag --experimental-exports #29867
Closed
6 tasks done
@guybedford
guybedford force-pushed the unflag-pr branch from 84cafc9 to 5a3051a Compare October 11, 2019 00:39
This was referenced Oct 11, 2019
Out-of-Band Meeting Proposal nodejs/modules#399
Closed
Modules bootstrap refactoring #29937
Closed
@guybedford
guybedford force-pushed the unflag-pr branch from 2eb3b7d to 3958d49 Compare October 11, 2019 22:24
@guybedford

guybedford commented Oct 11, 2019

Copy link
Copy Markdown
Contributor Author

I've split out the bootstrap changes into a separate PR at #29937, and based this unflagging to that PR for a simpler diff.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@guybedford
guybedford force-pushed the unflag-pr branch from 3958d49 to 824587c Compare October 13, 2019 03:45
@MylesBorins

MylesBorins commented Oct 14, 2019

Copy link
Copy Markdown
Contributor

We likely want #29974 to land as well

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@guybedford
guybedford force-pushed the unflag-pr branch 6 times, most recently from 89b337f to 7e73234 Compare October 17, 2019 04:22
@fernandopasik fernandopasik mentioned this pull request Oct 22, 2019
Please consider adding native support for ES modules jestjs/jest#4842
Closed
@MylesBorins

MylesBorins commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

@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
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@molllyn1 molllyn1 mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 molllyn1/node#65
Open
@snyk-bot snyk-bot mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#85
Open
@baby636 baby636 mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#81
Open
@ron-a20 ron-a20 mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#85
Open
@wedataintelligence wedataintelligence mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#63
Open
@kissofire kissofire mentioned this pull request Nov 5, 2022
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#87
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 aliceUnhinged613/node#84
Open
@wedataintelligence wedataintelligence mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#67
Open
@kissofire kissofire mentioned this pull request Dec 25, 2022
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#89
Open
@molllyn1 molllyn1 mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 molllyn1/node#69
Open
@137717unity 137717unity mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#87
Open
@baby636 baby636 mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#83
Open
@snyk-bot snyk-bot mentioned this pull request Dec 26, 2022
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#87
Open
@ron-a20 ron-a20 mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities ron-a20/node#100
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#97
Open
@kissofire kissofire mentioned this pull request Oct 1, 2023
[Snyk] Fix for 1 vulnerabilities kissofire/node#104
Open
@wedataintelligence wedataintelligence mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#83
Open
@molllyn1 molllyn1 mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities molllyn1/node#84
Open
@137717unity 137717unity mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities 137717unity/node#101
Open
@baby636 baby636 mentioned this pull request Oct 2, 2023
[Snyk] Fix for 1 vulnerabilities baby636/node#106
Open
@baby636 baby636 mentioned this pull request Jan 2, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#127
Open
@ron-a20 ron-a20 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 ron-a20/node#114
Open
@kissofire kissofire mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.13.73 to 3.0.0 kissofire/node#117
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 aliceUnhinged613/node#116
Open
@molllyn1 molllyn1 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 molllyn1/node#100
Open
@137717unity 137717unity mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 137717unity/node#116
Open
@wedataintelligence wedataintelligence mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.18.18 to 3.0.0 wedataintelligence/node#99
Open
@baby636 baby636 mentioned this pull request Jan 9, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#130
Open
@baby636 baby636 mentioned this pull request Mar 19, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#135
Open
@baby636 baby636 mentioned this pull request Mar 27, 2024
[Snyk] Security upgrade gatsby from 2.24.27 to 3.0.0 baby636/node#137
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@GeoffreyBooth GeoffreyBooth GeoffreyBooth left review comments
@joyeecheung joyeecheung joyeecheung left review comments
@hybrist hybrist hybrist approved these changes
+2 more reviewers
@MylesBorins MylesBorins MylesBorins approved these changes
@targos 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.

Projects

None yet

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.

11 participants

@guybedford @Trott @MylesBorins @ljharb @targos @nodejs-github-bot @hybrist @motss @tchetwin @GeoffreyBooth @joyeecheung
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.