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

docs do not state at what version an API was introduced (or deprecated) #6578

Closed
32 of 36 tasks
sam-github opened this issue May 4, 2016 · 28 comments
Closed
32 of 36 tasks
Labels
doc Issues and PRs related to the documentations. feature request Issues that request new features to be added to Node.js. good first issue Issues that are suitable for first-time contributors.

Comments

@sam-github
Copy link
Contributor

sam-github commented May 4, 2016

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:

Docs for which this may or may not make sense:

@jasnell
Copy link
Member

jasnell commented May 4, 2016

See: #6495
/cc @addaleax

@jasnell jasnell added doc Issues and PRs related to the documentations. feature request Issues that request new features to be added to Node.js. labels May 4, 2016
@addaleax
Copy link
Member

addaleax commented May 4, 2016

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?

@MylesBorins
Copy link
Contributor

that sounds like an excellent idea @addaleax

@addaleax addaleax added the good first issue Issues that are suitable for first-time contributors. label May 5, 2016
@addaleax
Copy link
Member

addaleax commented May 5, 2016

@thealphanerd @sam-github @bengl Looking good to everybody? Is this something you can share via social media in this state? :)

@bengl
Copy link
Member

bengl commented May 5, 2016

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 added field represent?

@addaleax
Copy link
Member

addaleax commented May 5, 2016

@bengl The version in which it was added, not the one in which it was documented. :)

bengl added a commit to bengl/node that referenced this issue May 5, 2016
bengl added a commit to bengl/node that referenced this issue May 5, 2016
bengl added a commit to bengl/node that referenced this issue May 6, 2016
Via git spelunking, mostly.
Some functions have been renamed. Used the version in which they were
renamed.

Ref: nodejs#6578
bengl added a commit to bengl/node that referenced this issue May 6, 2016
@sam-github
Copy link
Contributor Author

@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.

bengl added a commit to bengl/node that referenced this issue May 8, 2016
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
addaleax pushed a commit that referenced this issue May 9, 2016
Module introduced in 7ff04c1.

Ref: #6578
PR-URL: #6593
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax pushed a commit that referenced this issue May 9, 2016
Module introduced in 7ff04c1.

Ref: #6578
PR-URL: #6593
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax pushed a commit that referenced this issue May 9, 2016
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>
addaleax pushed a commit that referenced this issue May 9, 2016
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>
Trott added a commit to Trott/io.js that referenced this issue May 11, 2016
addaleax added a commit to addaleax/node that referenced this issue May 12, 2016
Trott added a commit to Trott/io.js that referenced this issue May 12, 2016
@lpinca
Copy link
Member

lpinca commented Sep 12, 2016

Should we also add this information for

  • addons.md
  • debugger.md
  • domain.md
  • globals.md

or can this issue be closed?

@addaleax
Copy link
Member

globals.md

Maybe, if anyone’s up for that. Everything in there is ancient, so it shouldn’t make a huge difference…

@italoacasas
Copy link
Contributor

I'll take globals.md @addaleax

MylesBorins pushed a commit that referenced this issue Sep 28, 2016
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>
addaleax added a commit to addaleax/node that referenced this issue Sep 30, 2016
Ref: nodejs#6578
PR-URL: nodejs#7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this issue Sep 30, 2016
Ref: #6578
PR-URL: #7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this issue Sep 30, 2016
Ref: #6578
PR-URL: #7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@lpinca
Copy link
Member

lpinca commented Oct 2, 2016

@italoacasas are you still up for globals.md?

@italoacasas
Copy link
Contributor

italoacasas commented Oct 2, 2016

@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.

@lpinca
Copy link
Member

lpinca commented Oct 2, 2016

@italoacasas sure, just let me know if you don't have the time. I would really like to see this completed.

@italoacasas
Copy link
Contributor

@lpinca well If someone else wants to make globals.md update, feel free, please. I don't want to stop anyone contribution.

If when I finish the stream tests, globals.md still undone, I will do the update.

addaleax pushed a commit that referenced this issue Oct 6, 2016
Ref: #6578
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
lpinca added a commit to lpinca/node that referenced this issue Oct 7, 2016
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>
MylesBorins pushed a commit that referenced this issue Oct 7, 2016
Ref: #6578
Ref: #8964
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
jasnell pushed a commit that referenced this issue Oct 10, 2016
Ref: #6578
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
MylesBorins pushed a commit that referenced this issue Oct 10, 2016
Ref: #6578
PR-URL: #7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this issue Oct 10, 2016
Ref: #6578
Ref: #8964
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Fishrock123 pushed a commit that referenced this issue Oct 11, 2016
Ref: #6578
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
rvagg pushed a commit that referenced this issue Oct 18, 2016
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>
rvagg pushed a commit that referenced this issue Oct 18, 2016
Ref: #6578
PR-URL: #7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
rvagg pushed a commit that referenced this issue Oct 18, 2016
Ref: #6578
Ref: #8964
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
MylesBorins pushed a commit that referenced this issue Oct 26, 2016
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>
MylesBorins pushed a commit that referenced this issue Oct 26, 2016
Ref: #6578
PR-URL: #7640
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this issue Oct 26, 2016
Ref: #6578
Ref: #8964
PR-URL: #8901
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@targos
Copy link
Member

targos commented May 30, 2017

@sam-github is this fully resolved?

@addaleax
Copy link
Member

I think this can be closed now, yes.

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. feature request Issues that request new features to be added to Node.js. good first issue Issues that are suitable for first-time contributors.
Projects
None yet
Development

No branches or pull requests