-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
doc: deprecate top-level this being bound to module.exports #16878
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
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 |
addaleax
left a comment
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
| 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.
a0viedo
left a comment
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
jasnell
left a comment
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#16878 Fixes: nodejs#9623 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Added using the top-level
thisas an alternative tomodule.exportsto the list of deprecated APIs.Fixes: #9623
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
doc