-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
repl: deprecate repl.builtinModules
#57508
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
Conversation
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.
|
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57508 +/- ##
=======================================
Coverage 90.22% 90.23%
=======================================
Files 630 630
Lines 185055 185063 +8
Branches 36216 36221 +5
=======================================
+ Hits 166975 166989 +14
- Misses 11042 11043 +1
+ Partials 7038 7031 -7
🚀 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? |
37cfc74
to
e9fd52f
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.
LGTM
I do overall agree that this should not exist on the repl, since we already have it exposed elsewhere.
I suggest to deprecate the runtime usage of the underscored modules as well in different PRs.
Commit Queue failed- Loading data for nodejs/node/pull/57508 ✔ Done loading data for nodejs/node/pull/57508 ----------------------------------- PR info ------------------------------------ Title repl: deprecate `repl.builtinModules` (#57508) Author Dario Piotrowiczhttps://github.com/nodejs/node/actions/runs/14261203802 |
Landed in e232b4a |
Co-authored-by: Antoine du HamelPR-URL: nodejs#57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Co-authored-by: Antoine du HamelPR-URL: #57508 Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Xuguang Mei Reviewed-By: Ruben Bridgewater Reviewed-By: Yagiz Nizipli Reviewed-By: Zijian Liu
Fixes #57504