FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[v12.x backport] module: deprecate module.parent by aduh95 · Pull Request #34592 · nodejs/node · GitHub

/ node Public

[v12.x backport] module: deprecate module.parent - #34592

Closed
aduh95 wants to merge 1 commit into
nodejs:v12.x-stagingfrom
aduh95:backport-32217-to-erbium
Closed

[v12.x backport] module: deprecate module.parent#34592
aduh95 wants to merge 1 commit into
nodejs:v12.x-stagingfrom
aduh95:backport-32217-to-erbium

Conversation

aduh95 commented Aug 1, 2020

Copy link
Copy Markdown
Contributor

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), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Comment thread doc/api/deprecations.md Outdated
Comment thread doc/api/modules.md Outdated
aduh95 force-pushed the backport-32217-to-erbium branch from c57de5a to 6570100 Compare August 1, 2020 15:19

aduh95 commented Aug 10, 2020

Copy link
Copy Markdown
Contributor Author

@MylesBorins can you please review this?

MylesBorins self-requested a review August 11, 2020 00:34

Copy link
Copy Markdown
Contributor

I'm unsure if we have prior art in backporting a doc only deprecation.

@jasnell @nodejs/tsc thoughts?

targos commented Aug 11, 2020

Copy link
Copy Markdown
Member

I think it's fine to backport a doc only deprecation if the suggested alternative is available.

Copy link
Copy Markdown
Contributor

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.

aduh95 commented Aug 18, 2020

Copy link
Copy Markdown
Contributor Author

@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 <me@gus.host>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
aduh95 force-pushed the backport-32217-to-erbium branch from 6570100 to 573ad3e Compare August 18, 2020 08:46
BethGriggs pushed a commit that referenced this pull request Aug 18, 2020
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 <me@gus.host>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

Copy link
Copy Markdown
Member

Landed in 729799d

BethGriggs closed this Aug 18, 2020
BethGriggs added the notable-change PRs with changes that should be highlighted in changelogs. label Sep 29, 2020
targos mentioned this pull request Oct 6, 2020
4 tasks
aduh95 deleted the backport-32217-to-erbium branch November 27, 2020 18:40
jimmy54 pushed a commit to jimmy54/nodejs-mobile that referenced this pull request Dec 31, 2025
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/node#32217
Backport-PR-URL: nodejs/node#34592
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notable-change PRs with changes that should be highlighted in changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL