-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
repl: deprecate repl.builtinModules
#57508
base: main
Are you sure you want to change the base?
repl: deprecate repl.builtinModules
#57508
Conversation
8473799
to
39271fa
Compare
39271fa
to
f38edf8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thanks! If CI is happy, I'm happy as well.
|
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57508 +/- ##
=======================================
Coverage 90.21% 90.22%
=======================================
Files 629 629
Lines 184845 184853 +8
Branches 36206 36211 +5
=======================================
+ Hits 166766 166786 +20
+ Misses 11024 11023 -1
+ Partials 7055 7044 -11
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would actually like to keep this around and just fix the issue. The reason is that we expose underscored modules in Module one and those should never be used.
The current issue with the repl exposed one is that it filters node:
prefixed ones out. That should not be the case.
We can also update the documentation to say "all besides underscored'.
Any particular reason for that? Do you have a use-case in mind? |
I tried to provide the reason in my comment above: we include e.g., |
@BridgeAR Sorry for asking something probably pretty stupid 😓 But I don't have the full context here, could you clarify what the underscore modules are and what they are there for? Also, when you said that they shouldn't be used do you mean in the REPL? or in general? why? and if it is the latter, why are they in |
I didn't understand your reasoning behind this. Would you mind explaining more? @BridgeAR
My understanding is, we can deprecate repl builtinModules, and also in another PR remove the modules in module.builtinModules that starts with _ (which will be a semver-major PR, I suppose). Any concerns with this path forward @BridgeAR? |
@anonrig |
I'm giving removing the underscore modules from |
Fixes #57504