-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
docs do not state at what version an API was introduced (or deprecated) #6578
Comments
Yep, I guess I can land that one now. @sam-github If you don’t mind, I’d like to use this issue (edit your original comment) to keep a list of the doc files for which this work needs to be done and tag this good-first-contribution? |
that sounds like an excellent idea @addaleax |
@thealphanerd @sam-github @bengl Looking good to everybody? Is this something you can share via social media in this state? :) |
tweeted: https://twitter.com/bengl/status/728016045110222848 Also, I'm unclear on this: some features were added in one version and then only documented in another. Which versions should the |
@bengl The version in which it was added, not the one in which it was documented. :) |
Module introduced in 7ff04c1. Ref: nodejs#6578
Module introduced in 7ff04c1. Ref: nodejs#6578
Via git spelunking, mostly. Some functions have been renamed. Used the version in which they were renamed. Ref: nodejs#6578
Derived from git history. Ref: nodejs#6578
@addaleax I don't mind, I'm thrilled to see you can get this going. https://nodejs.org/api/tls.html#tls_event_resumesession is one thing that's bit me before, it didn't used to have a callback... and now the callback is mandatory, its one of the few APIs that changed a lot, but not in a way that will cause your code to blow up... just quietly hang. |
Most of the information is gleaned from changelogs. The rest is inferred from git history. Omitted cpuUsage() since it's not yet in a release. Also omitted the streams, events and signals, since I didn't really think it made sense for those. Ref: nodejs#6578
Most of the information is gleaned from changelogs. The rest is inferred from git history. Omitted cpuUsage() since it's not yet in a release. Also omitted the streams, events and signals, since I didn't really think it made sense for those. Ref: #6578 PR-URL: #6589 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Alexander Makarenko <estliberitas@gmail.com>
Via git spelunking, mostly. Some functions have been renamed. Used the version in which they were renamed. Ref: #6578 PR-URL: #6609 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Should we also add this information for
or can this issue be closed? |
Maybe, if anyone’s up for that. Everything in there is ancient, so it shouldn’t make a huge difference… |
I'll take |
Since I was doing the necessary git archaeology anyway, I took the time to add YAML information to the docs about when `addMembership()` and `dropMembership()` first appeared in their current forms. PR-URL: #6753 Ref: #6578 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Ref: nodejs#6578 PR-URL: nodejs#7640 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@italoacasas are you still up for |
@lpinca I forgot about this completely, I'm a little busy right now with some tests, but I'm going to tackle this down in a week if no one does first. |
@italoacasas sure, just let me know if you don't have the time. I would really like to see this completed. |
@lpinca well If someone else wants to make If when I finish the |
Ref: nodejs#6578 PR-URL: nodejs#8901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Since I was doing the necessary git archaeology anyway, I took the time to add YAML information to the docs about when `addMembership()` and `dropMembership()` first appeared in their current forms. PR-URL: #6753 Ref: #6578 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Since I was doing the necessary git archaeology anyway, I took the time to add YAML information to the docs about when `addMembership()` and `dropMembership()` first appeared in their current forms. PR-URL: #6753 Ref: #6578 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@sam-github is this fully resolved? |
I think this can be closed now, yes. |
node documentation just documents the current node, but to write portable node.js, its important to know about when APIs were introduced (or changed incompatibly)
I regularly find developers attempting to use features that only exist on the most recent Node.js versions, such as the
v8
module, without realizing it doesn't exist on some LTS versions.It would be quite helpful if the API docs were annotated with the version in which an API was introduced.
cc: @chrisdickinson @bhajian
(edited by @addaleax)
Now that basic tooling for this feature is available in the doctool, it would be nice to see if we can get some people together for looking up the versions in which features were added/deprecated! If you’d like to volunteer, I’d suggest you just comment on this issue.
Documentation files for which this is definitely worthwhile:
added:
information for assert #6688)added:
information for child_process #6927)added:
data for cli.md #6960)added:
information for cluster #7640)added:
information for console #6995)added:
information for crypto #8281)added:
information for dgram #8196)added:
information for dns #7021)added:
information for events #7822)added:
information for fs #6717)added:
information for http(s) #7392)added:
information for http(s) #7392)added:
information for modules #8250)added:
information for net #7038)added:
information for os #6609)added:
information for path #6985)added:
information for process #6589)added:
information for punycode #6805)added:
information for url, querystring #6593)added:
information for readline #6996)added:
information for repl #7256)added:
information for stream #7287)added:
info forstring_decoder
#6741)added:
information for tls #7018)added:
in fortty
#6783)added:
information for url, querystring #6593)added:
information for util #8206)added:
information for v8 #6684)added:
information for vm #7011)added:
information for zlib #6840)Docs for which this may or may not make sense:
added:
information for timers #7493)The text was updated successfully, but these errors were encountered: