Skip to content
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

process: deprecate toStringTag assignment #26717

Closed

Conversation

guybedford
Copy link
Contributor

As a follow-on to #26488 this makes writing to process[Symbol.toStringTag] a full deprecation in Node.js.

Most intrinsics with Symbol.toStringTag set (eg Promise.prototype), have this as non-writeable, so it seems to make sense that process should do the same.

I'm not strongly set on this by any means either if anyone has reasons against it (perhaps the warnings will turn out more annoying than the strict error previously!).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@addaleax
Copy link
Member

perhaps the warnings will turn out more annoying than the strict error previously!

Yeah, that’s what I’d expect. If we do want to change this, I’d prefer a clean break.

@addaleax addaleax added the semver-major PRs that contain breaking changes and should be released in the next major version. label Mar 17, 2019
@guybedford guybedford force-pushed the process-tostringtag-deprecate branch from 2b7d664 to 29b9483 Compare March 17, 2019 14:27
@targos
Copy link
Member

targos commented Mar 17, 2019

I'm a bit reluctant to land this before Node 12. This will break a lot of projects that are not using the latest version of Jest.

@@ -2361,6 +2361,15 @@ changes:
description: Runtime deprecation.
-->

<a id="DEP0126"></a>
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt Mar 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This seems to break other deprecation section without adding its own description.
  2. We usually assign a placeholder DEP0XXX till landing.
  3. PR URL should be https://github.com/nodejs/node/pull/26717

@vsemozhetbyt vsemozhetbyt added process Issues and PRs related to the process subsystem. deprecations Issues and PRs related to deprecations. labels Mar 17, 2019
@guybedford
Copy link
Contributor Author

I'm a bit reluctant to land this before Node 12. This will break a lot of projects that are not using the latest version of Jest.

It would just warn them unless they update Jest yes.

@BridgeAR
Copy link
Member

This does not seem something urgent, so I suggest to postpone landing this after v12. I am fine with a deprecation warning or a clean break, what ever others feel like is best in this case.

@guybedford
Copy link
Contributor Author

@BridgeAR agreed, that makes sense.

I won't continue to push this - shall we leave it open for anyone to pick up in future, or shall I just close?

@BridgeAR
Copy link
Member

The release is not that far, so I just marked this as blocked.

@BridgeAR BridgeAR added the blocked PRs that are blocked by other issues or PRs. label Mar 21, 2019
@antsmartian
Copy link
Contributor

@guybedford @BridgeAR Looks like this is something that we can unblock now and get it to a closure?

@BridgeAR BridgeAR removed the blocked PRs that are blocked by other issues or PRs. label Dec 20, 2019
@BridgeAR
Copy link
Member

@guybedford is this something you would like to continue pursuing? This is definitely unblocked by now. It needs a rebase though.

@HarshithaKP
Copy link
Member

HarshithaKP commented Apr 12, 2020

@guybedford, This need a rebase and can you progress on this now ? are you able to make progress ?

@BridgeAR BridgeAR force-pushed the master branch 2 times, most recently from 8ae28ff to 2935f72 Compare May 31, 2020 12:19
@jasnell jasnell added the stalled Issues and PRs that are stalled. label Jun 25, 2020
@guybedford
Copy link
Contributor Author

This one has dropped off my radar, closing but someone else is welcome to pick it up.

@guybedford guybedford closed this Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecations Issues and PRs related to deprecations. process Issues and PRs related to the process subsystem. semver-major PRs that contain breaking changes and should be released in the next major version. stalled Issues and PRs that are stalled.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants