-
Notifications
You must be signed in to change notification settings - Fork 29.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
[v12.x backport] module: deprecate module.parent #34592
Conversation
c57de5a
to
6570100
Compare
@MylesBorins can you please review this? |
I'm unsure if we have prior art in backporting a doc only deprecation. @jasnell @nodejs/tsc thoughts? |
I think it's fine to backport a doc only deprecation if the suggested alternative is available. |
If this deprecation was docs only I think I would be less concerned about it. The fact that it makes changes to internals, even if not observable, has me pausing. |
@MylesBorins do you want me to rework the PR to include only doc changes? |
This feature does not work when a module is imported using ECMAScript modules specification, therefore it is deprecated. Fixes: nodejs/modules#469 PR-URL: nodejs#32217 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
6570100
to
573ad3e
Compare
This feature does not work when a module is imported using ECMAScript modules specification, therefore it is deprecated. Fixes: nodejs/modules#469 PR-URL: #32217 Backport-PR-URL: #34592 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed in 729799d |
This feature does not work when a module is imported using ECMAScript
modules specification, therefore it is deprecated.
As of v12.17.0, ESM is unflagged for Node.js v12; IMHO it makes sense to backport the doc deprecation.
v14 Backport-PR-URL: #33533
PR-URL: #32217
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes