-
Notifications
You must be signed in to change notification settings - Fork 29.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: runtime deprecate instantiating without new #54869
base: main
Are you sure you want to change the base?
Conversation
bb00db5
to
ae8d325
Compare
ae8d325
to
7f70642
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54869 +/- ##
==========================================
+ Coverage 87.91% 88.05% +0.14%
==========================================
Files 651 651
Lines 183354 183413 +59
Branches 35719 35829 +110
==========================================
+ Hits 161190 161506 +316
+ Misses 15446 15158 -288
- Partials 6718 6749 +31
|
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 with updates to existing codebase. Example:
const repl = REPLServer({ |
CC @nodejs/repl |
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 think we need a documentation-only deprecation on this first and we need to get a sense of how impactful a runtime deprecation would be on the ecosystem here. Given the nature of the repl module, this would most likely lead to a fair bit of console output noise for modules that are using the repl and users may not actually be able to do anything about it. So let's be careful.
FWIW It has already been doc-deprecated (but very recently). |
7f70642
to
1ada6a0
Compare
@jasnell would you be opposed to landing this in v23 entirely-I'm happy to wait until v24? |
I prefer to wait |
Got it. While I'd prefer for this to release in v23, I respect your opinion. I'll look into other optimizations in the meantime. |
@nodejs/tsc per nodejs/Release#1034 My main question is: is this something that could happen in v23? Or should it wait (like @jasnell suggested)? |
I agree with James on this |
Let's give people some time to make arrangements, before polluting their console. |
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
Followup #54842
This PR runtime-deprecates instantiating the REPL classes without the
new
keyword.