Skip to content

Conversation

XadillaX
Copy link
Contributor

@XadillaX XadillaX commented Jul 15, 2017

tls.parseCertString() was made public by mistack. So mark it as
deprecated.

Refs: #14193
Refs: af80e7b#diff-cc32376ce1eaf679ec2298cd483f15c7R188

Checklist
Affected core subsystem(s)

tls, doc

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. v8.x labels Jul 15, 2017
@XadillaX
Copy link
Contributor Author

XadillaX commented Jul 15, 2017

This is a sub-PR of #14218 (comment).

@Trott
Copy link
Member

Trott commented Jul 15, 2017

/cc @jasnell

@XadillaX
Copy link
Contributor Author

/ping @jasnell

@addaleax addaleax added semver-minor PRs that contain new features and should be released in the next minor version. blocked PRs that are blocked by other issues or PRs. labels Jul 18, 2017
@addaleax
Copy link
Member

I assume this is blocked by #14218 to begin with

@XadillaX
Copy link
Contributor Author

XadillaX commented Jul 20, 2017

@addaleax Why it blocked?

And I've rebased the code. As @refack said, it's a sub-PR of #14218. I will split that PR into 3 sub-PRs and this is the first one of them.

@refack Did you mean:

  1. mark the function as deprecated with documented-only
  2. move the function and modify the document with runtime
  3. move the constant

Yes, exactly (so that we could land just (1) in v8.x)

@XadillaX XadillaX changed the title doc,tls: mark parseCertString() as deprecated [v8.x] doc,tls: mark parseCertString() as deprecated Jul 20, 2017
@XadillaX XadillaX force-pushed the mark-tls.parseCertString-as-deprecated branch from 4387926 to 1def55b Compare July 20, 2017 03:33
@jasnell
Copy link
Member

jasnell commented Jul 20, 2017

@nodejs/ctc ... a decision needs to be made whether deprecating this in 8.x is appropriate.

Copy link
Member

Choose a reason for hiding this comment

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

Nit: Replace comma with a period. One then will begin a new sentence.

@Trott
Copy link
Member

Trott commented Jul 20, 2017

a decision needs to be made whether deprecating this in 8.x is appropriate.

Deprecations are supposed to be semver-major, right? We should stick to that unless there is a compelling user-focused argument otherwise.

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

LGTM with a nit.

@jasnell
Copy link
Member

jasnell commented Jul 20, 2017

Yes, deprecations are semver-major, which means this PR would not be able to land as a backport to 8.x... unless we special case it as we're done in other cases. The question is whether this one rises to the level that a special case needs to be made. I'm not so sure. I signed off because the code change itself looks fine, but I'm not convinced that this should land.

@Trott
Copy link
Member

Trott commented Jul 20, 2017

I'm not convinced that this should land.

@jasnell You mean you're not convinced that it should land in 8.x but it's fine for 9.0.0? Or you mean not land at all?

@Trott
Copy link
Member

Trott commented Jul 20, 2017

Oh, never mind, I see, this is an 8.x-specific PR. Yeah, I'm not sure it should land either. Fine for 9.x...And I'm OK if CTC decides to special-case it, but that really really makes me wonder if we need to revise our deprecation policy because these special cases seem to come up more than I expect them to....

@refack
Copy link
Contributor

refack commented Jul 21, 2017

Just repeating the observation that tls.parseCertString() is undocumented in v8.x so the options for 8 are:

  1. Do nothing
  2. Document
  3. Document as deprecated

IMHO (3) is reasonable since it's definitely an edge case for deprecation, but not obviously semver-major. An academic argument could be made that since it's currently undocumented, it was "latently deprecated" all along, we are just documenting it now.

@Trott
Copy link
Member

Trott commented Jul 21, 2017

I wouldn't stand in the way of a doc-only deprecation. If we can get a clean diff for that, maybe we can ping CTC and take it as consensus if no one objects after 72 hours.

@XadillaX XadillaX force-pushed the mark-tls.parseCertString-as-deprecated branch from b95abf4 to 1cb3e56 Compare July 23, 2017 07:54
@XadillaX
Copy link
Contributor Author

/ping @nodejs/ctc

@Trott
Copy link
Member

Trott commented Jul 23, 2017

@nodejs/ctc Any objections to landing this doc-only deprecation in 8.x? It is for a property that was made public by mistake.

@Trott
Copy link
Member

Trott commented Jul 23, 2017

@addaleax I'm not clear on why this would be blocked by #14218. Can you explain?

@addaleax
Copy link
Member

@Trott It seems to me like if we introduce a deprecation in 8.x, we should also deprecate in master so that we don’t accidentally un-deprecate when releasing 9.0.0?

@XadillaX
Copy link
Contributor Author

XadillaX commented Jul 24, 2017

@addaleax I think we should land #14249 before releasing 9.0.

One is document-only and another is runtime.

@XadillaX
Copy link
Contributor Author

XadillaX commented Sep 1, 2017

I think this PR should be landed before #14249.

@BridgeAR
Copy link
Member

BridgeAR commented Sep 2, 2017

If there are no objections from @nodejs/tsc I would land this as a semver-minor.

@XadillaX
Copy link
Contributor Author

XadillaX commented Sep 6, 2017

/ping @nodejs/tsc

@jasnell
Copy link
Member

jasnell commented Sep 6, 2017

With no objections by now, I'd say this is likely good to go as a semver-minor

@jasnell jasnell added semver-minor PRs that contain new features and should be released in the next minor version. and removed semver-major PRs that contain breaking changes and should be released in the next major version. labels Sep 6, 2017
@BridgeAR
Copy link
Member

BridgeAR commented Sep 8, 2017

Landed in 703a3b5

@BridgeAR BridgeAR closed this Sep 8, 2017
BridgeAR pushed a commit that referenced this pull request Sep 8, 2017
`tls.parseCertString()` was made public by mistack. So mark it as
deprecated.

PR-URL: #14245
Refs: #14193
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@MylesBorins
Copy link
Contributor

Thi needs to be backported to v8.x-staging. You can follow the guide and raise a backport PR against v8.x-staging

addaleax pushed a commit to addaleax/node that referenced this pull request Sep 13, 2017
`tls.parseCertString()` was made public by mistack. So mark it as
deprecated.

PR-URL: nodejs#14245
Refs: nodejs#14193
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
jasnell pushed a commit that referenced this pull request Sep 20, 2017
`tls.parseCertString()` was made public by mistack. So mark it as
deprecated.

PR-URL: #14245
Refs: #14193
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
jasnell added a commit that referenced this pull request Sep 20, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
jasnell added a commit that referenced this pull request Sep 21, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
jasnell added a commit that referenced this pull request Sep 25, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
jasnell added a commit that referenced this pull request Sep 26, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
  * Custom lookup functions are now supported. [#14560](#14560)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
jasnell added a commit that referenced this pull request Sep 26, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
  * Custom lookup functions are now supported. [#14560](#14560)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
MylesBorins pushed a commit that referenced this pull request Sep 29, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](#7855)
  * Custom lookup functions are now supported. [#14560](#14560)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](#15354)
addaleax pushed a commit to addaleax/ayo that referenced this pull request Sep 30, 2017
* **crypto**
  * Support for multiple ECDH curves. [#15206](nodejs/node#15206)
* **dgram**
  * Added `setMulticastInterface()` API. [#7855](nodejs/node#7855)
  * Custom lookup functions are now supported. [#14560](nodejs/node#14560)
* **n-api**
  * The command-line flag is no longer required to use N-API. [#14902](nodejs/node#14902)
* **tls**
  * Docs-only deprecation of `parseCertString()`. [#14245](nodejs/node#14245)
* **New Contributors**
  * Welcome Sebastiaan Deckers (@sebdeckers) as a new Collaborator! [#15354](nodejs/node#15354)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.