Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: export consumers and web in parent builtin #40197

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Mesteery
Copy link
Member

@Mesteery Mesteery commented Sep 23, 2021

No description provided.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. repl Issues and PRs related to the REPL subsystem. labels Sep 23, 2021
@Mesteery Mesteery changed the title repl: add subpaths builtins to auto-loadable modules module: add subpaths builtins in addBuiltinLibsToObject Sep 24, 2021
@Mesteery Mesteery added module Issues and PRs related to the module subsystem. doc Issues and PRs related to the documentations. labels Sep 24, 2021
@Mesteery Mesteery changed the title module: add subpaths builtins in addBuiltinLibsToObject module,repl: add subpaths builtins in addBuiltinLibsToObject Sep 25, 2021
@Mesteery
Copy link
Member Author

cc @nodejs/repl

doc/api/repl.md Outdated Show resolved Hide resolved
@Mesteery Mesteery changed the title module,repl: add subpaths builtins in addBuiltinLibsToObject module: add subpaths builtins in addBuiltinLibsToObject Sep 25, 2021
@Mesteery Mesteery changed the title module: add subpaths builtins in addBuiltinLibsToObject module: add submodules builtins in addBuiltinLibsToObject Sep 25, 2021
@Mesteery Mesteery removed the repl Issues and PRs related to the REPL subsystem. label Sep 25, 2021
@Mesteery Mesteery changed the title module: add submodules builtins in addBuiltinLibsToObject lib: export submodules in parent builtins Oct 9, 2021
@Mesteery Mesteery added lib / src Issues and PRs related to general changes in the lib or src directory. and removed doc Issues and PRs related to the documentations. module Issues and PRs related to the module subsystem. labels Oct 9, 2021
@Mesteery Mesteery requested a review from jasnell October 9, 2021 13:25
@Mesteery
Copy link
Member Author

Fwiw, that's not what I was suggesting. Just expose consumers as a property of stream.

@jasnell Is this what you are suggesting? By the way I added a test to make sure that all current and future modules export their "submodules" if there are any.

@targos
Copy link
Member

targos commented Nov 26, 2021

It seems to break a few tests.

@Mesteery
Copy link
Member Author

It seems to break a few tests.

This is because

getOwn(this.exports, exportName, this.exports));
calls the getter and thus triggers the ExperimentalWarning of stream/web.

I don't really know what to do in this case.

@Mesteery
Copy link
Member Author

Updated to export only stable submodules in their parent builtin.

@Mesteery Mesteery added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Feb 15, 2022
@aduh95
Copy link
Contributor

aduh95 commented May 11, 2024

This needs a rebase.

@Mesteery Mesteery force-pushed the repl-global-sub-builtins branch 2 times, most recently from 6b4f5ed to 48ffa4b Compare May 12, 2024 14:08
@Mesteery Mesteery changed the title lib: export submodules in parent builtins stream: export consumers and web in parent builtin May 12, 2024
@Mesteery Mesteery added stream Issues and PRs related to the stream subsystem. and removed lib / src Issues and PRs related to general changes in the lib or src directory. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels May 12, 2024
@aduh95
Copy link
Contributor

aduh95 commented May 21, 2024

There are some linter error that needs fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants