-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
doc: deprecate top-level this being bound to module.exports #16878
Conversation
Not really sure what this is looking to accomplish. Can you provide some additional context? |
@jasnell There was some discussion about this in the linked issue |
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, let’s just hope nobody thinks it’s a good idea to add a runtime deprecation
@addaleax ... yes, but the commit message has none of that context and that context is not clear in the doc update. |
doc/api/deprecations.md
Outdated
@@ -737,6 +737,14 @@ Type: Runtime | |||
internal mechanics of the `REPLServer` itself, and is therefore not | |||
necessary in user space. | |||
|
|||
<a id="DEP0083"></a> | |||
### DEP0083: Top-level `this` bound to `module.exports` |
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.
These should be DEP00XX
until it lands.
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
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 but needs a rebase
Ping @Hackzzila can you rebase this against master? Thanks! |
ping @Hackzzila again |
I am going to land this tomorrow. |
Landed in 300f5ce |
PR-URL: nodejs#16878 Fixes: nodejs#9623 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#16878 Fixes: nodejs#9623 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Added using the top-level
this
as an alternative tomodule.exports
to the list of deprecated APIs.Fixes: #9623
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc