Skip to content

Commit bdcd496

Browse files
jasnelladdaleax
authored andcommitted
doc: update experimental status to reflect use
* Update the experimental status to reflect actual common use. * Also make a few formatting fixes. Fixes: #12701 PR-URL: #12723 Fixes: #12701 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent d7a1637 commit bdcd496

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

doc/api/documentation.md

+22-10
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<!-- type=misc -->
44

55
The goal of this documentation is to comprehensively explain the Node.js
6-
API, both from a reference as well as a conceptual point of view. Each
6+
API, both from a reference as well as a conceptual point of view. Each
77
section describes a built-in module or high-level concept.
88

99
Where appropriate, property types, method arguments, and the arguments
1010
provided to event handlers are detailed in a list underneath the topic
1111
heading.
1212

1313
Every `.html` document has a corresponding `.json` document presenting
14-
the same information in a structured manner. This feature is
14+
the same information in a structured manner. This feature is
1515
experimental, and added for the benefit of IDEs and other utilities that
1616
wish to do programmatic things with the documentation.
1717

1818
Every `.html` and `.json` file is generated based on the corresponding
19-
`.md` file in the `doc/api/` folder in Node.js's source tree. The
19+
`.md` file in the `doc/api/` folder in Node.js's source tree. The
2020
documentation is generated using the `tools/doc/generate.js` program.
2121
The HTML template is located at `doc/template.html`.
2222

@@ -39,17 +39,29 @@ The stability indices are as follows:
3939

4040
```txt
4141
Stability: 0 - Deprecated
42-
This feature is known to be problematic, and changes are
43-
planned. Do not rely on it. Use of the feature may cause warnings. Backwards
44-
compatibility should not be expected.
42+
This feature is known to be problematic, and changes may be planned. Do
43+
not rely on it. Use of the feature may cause warnings to be emitted.
44+
Backwards compatibility across major versions should not be expected.
4545
```
4646

4747
```txt
4848
Stability: 1 - Experimental
49-
This feature is subject to change, and is gated by a command line flag.
50-
It may change or be removed in future versions.
49+
This feature is still under active development and subject to non-backwards
50+
compatible changes, or even removal, in any future version. Use of the feature
51+
is not recommended in production environments. Experimental features are not
52+
subject to the Node.js Semantic Versioning model.
5153
```
5254

55+
*Note*: Caution must be used when making use of `Experimental` features,
56+
particularly within modules that may be used as dependencies (or dependencies
57+
of dependencies) within a Node.js application. End users may not be aware that
58+
experimental features are being used, and therefore may experience unexpected
59+
failures or behavioral changes when changes occur. To help avoid such surprises,
60+
`Experimental` features may require a command-line flag to explicitly enable
61+
them, or may cause a process warning to be emitted. By default, such warnings
62+
are printed to `stderr` and may be handled by attaching a listener to the
63+
`process.on('warning')` event.
64+
5365
```txt
5466
Stability: 2 - Stable
5567
The API has proven satisfactory. Compatibility with the npm ecosystem
@@ -63,7 +75,7 @@ is a high priority, and will not be broken unless absolutely necessary.
6375
Every HTML file in the markdown has a corresponding JSON file with the
6476
same data.
6577

66-
This feature was added in Node.js v0.6.12. It is experimental.
78+
This feature was added in Node.js v0.6.12. It is experimental.
6779

6880
## Syscalls and man pages
6981

@@ -72,7 +84,7 @@ and the underlying operating system. Node functions which simply wrap a syscall,
7284
like `fs.open()`, will document that. The docs link to the corresponding man
7385
pages (short for manual pages) which describe how the syscalls work.
7486

75-
**Caveat:** some syscalls, like lchown(2), are BSD-specific. That means, for
87+
**Note:** some syscalls, like lchown(2), are BSD-specific. That means, for
7688
example, that `fs.lchown()` only works on macOS and other BSD-derived systems,
7789
and is not available on Linux.
7890

0 commit comments

Comments
 (0)