You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing documentation for tls.parseCertString #14193
That function was exposed by accident more than anything else in commit af80e7b from 2013. It's probably better to move it to lib/internal than promote it to official API.
@chrisbroome did you call this API? for what purpose? It parses a format that doesn't appear to ever be produced by a public API, I don't see how it could be useful.
Calling it semver-major is safe, lets not doc, and move to internal for 9.x
I never actually used the API in production code. Basically I was playing around in the REPL exploring what was available in the tls module. I just typed tls.<tab>, saw parseCertString, and wanted to know what its purpose was (I thought maybe it was a function that let you extract information from base64-encoded .pem files). Anyway, I went to the documentation, but the function wasn't there, so I decided to open the issue.
OK. I don't personally think we should document something only to remove it in the next major. If we do document it, it should be doc-deprecated at least.
Activity
bnoordhuis commentedon Jul 12, 2017
That function was exposed by accident more than anything else in commit af80e7b from 2013. It's probably better to move it to lib/internal than promote it to official API.
cc @indutny
chrisbroome commentedon Jul 12, 2017
@bnoordhuis Makes sense to me.
Also, after looking it what it actually does, it's also almost identical to calling
with the one exception being when the string is invalid:
XadillaX commentedon Jul 12, 2017
If we move it to internal, I think it's a semver major.
sam-github commentedon Jul 12, 2017
@chrisbroome did you call this API? for what purpose? It parses a format that doesn't appear to ever be produced by a public API, I don't see how it could be useful.
Calling it semver-major is safe, lets not doc, and move to internal for 9.x
chrisbroome commentedon Jul 12, 2017
I never actually used the API in production code. Basically I was playing around in the REPL exploring what was available in the
tlsmodule. I just typedtls.<tab>, sawparseCertString, and wanted to know what its purpose was (I thought maybe it was a function that let you extract information from base64-encoded.pemfiles). Anyway, I went to the documentation, but the function wasn't there, so I decided to open the issue.sam-github commentedon Jul 12, 2017
OK. I don't personally think we should document something only to remove it in the next major. If we do document it, it should be doc-deprecated at least.
XadillaX commentedon Jul 13, 2017
@sam-github I agree to remove it in the next major and document it now for deprecated.
doc: add tls.parseCertString()
bnoordhuis commentedon Jul 13, 2017
I'd do the following:
tls: move parseCertString to internal
XadillaX commentedon Jul 13, 2017
@bnoordhuis I've created another PR #14218 to move the function to internal.
1 remaining item
tls: deprecate parseCertString & move to internal
doc, tls: mark parseCertString() as deprecated
doc, tls: mark parseCertString() as deprecated
tls: deprecate parseCertString & move to internal
doc, tls: mark parseCertString() as deprecated
tls: deprecate parseCertString & move to internal
tls: deprecate parseCertString & move to internal
doc, tls: mark parseCertString() as deprecated
tls: deprecate parseCertString & move to internal
bnoordhuis commentedon May 28, 2018
Closing, #14249 was merged last year.