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:
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
v8module, 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)