doc: unify place of stability notes
In most cases, stability note is the first info in a doc section after YAML. This PR makes it consistent across all docs, as this info seems the most relevant for a reader. PR-URL: https://github.com/nodejs/node/pull/29799 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
4fa1744e11
commit
d5882a9544
@ -624,15 +624,15 @@ changes:
|
|||||||
deprecated and emits a warning.
|
deprecated and emits a warning.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
|
||||||
|
> functions instead.
|
||||||
|
|
||||||
* `actual` {any}
|
* `actual` {any}
|
||||||
* `expected` {any}
|
* `expected` {any}
|
||||||
* `message` {string|Error}
|
* `message` {string|Error}
|
||||||
* `operator` {string} **Default:** `'!='`
|
* `operator` {string} **Default:** `'!='`
|
||||||
* `stackStartFn` {Function} **Default:** `assert.fail`
|
* `stackStartFn` {Function} **Default:** `assert.fail`
|
||||||
|
|
||||||
> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
|
|
||||||
> functions instead.
|
|
||||||
|
|
||||||
If `message` is falsy, the error message is set as the values of `actual` and
|
If `message` is falsy, the error message is set as the values of `actual` and
|
||||||
`expected` separated by the provided `operator`. If just the two `actual` and
|
`expected` separated by the provided `operator`. If just the two `actual` and
|
||||||
`expected` arguments are provided, `operator` will default to `'!='`. If
|
`expected` arguments are provided, `operator` will default to `'!='`. If
|
||||||
|
@ -229,11 +229,11 @@ added: v0.9.12
|
|||||||
deprecated: v4.0.0
|
deprecated: v4.0.0
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 0 - Deprecated: Use [`emitter.listenerCount()`][] instead.
|
||||||
|
|
||||||
* `emitter` {EventEmitter} The emitter to query
|
* `emitter` {EventEmitter} The emitter to query
|
||||||
* `eventName` {string|symbol} The event name
|
* `eventName` {string|symbol} The event name
|
||||||
|
|
||||||
> Stability: 0 - Deprecated: Use [`emitter.listenerCount()`][] instead.
|
|
||||||
|
|
||||||
A class method that returns the number of listeners for the given `eventName`
|
A class method that returns the number of listeners for the given `eventName`
|
||||||
registered on the given `emitter`.
|
registered on the given `emitter`.
|
||||||
|
|
||||||
|
@ -1169,10 +1169,10 @@ added: v0.3.0
|
|||||||
deprecated: REPLACEME
|
deprecated: REPLACEME
|
||||||
-->
|
-->
|
||||||
|
|
||||||
* {net.Socket}
|
|
||||||
|
|
||||||
> Stability: 0 - Deprecated. Use [`response.socket`][].
|
> Stability: 0 - Deprecated. Use [`response.socket`][].
|
||||||
|
|
||||||
|
* {net.Socket}
|
||||||
|
|
||||||
See [`response.socket`][].
|
See [`response.socket`][].
|
||||||
|
|
||||||
### response.end([data[, encoding]][, callback])
|
### response.end([data[, encoding]][, callback])
|
||||||
|
@ -970,12 +970,12 @@ added: v10.12.0
|
|||||||
deprecated: v12.2.0
|
deprecated: v12.2.0
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.
|
||||||
|
|
||||||
* `filename` {string} Filename to be used to construct the relative require
|
* `filename` {string} Filename to be used to construct the relative require
|
||||||
function.
|
function.
|
||||||
* Returns: {require} Require function
|
* Returns: {require} Require function
|
||||||
|
|
||||||
> Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { createRequireFromPath } = require('module');
|
const { createRequireFromPath } = require('module');
|
||||||
const requireUtil = createRequireFromPath('../src/utils/');
|
const requireUtil = createRequireFromPath('../src/utils/');
|
||||||
|
@ -482,12 +482,12 @@ added: v0.8.9
|
|||||||
deprecated: v9.0.0
|
deprecated: v9.0.0
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 0 - Deprecated.
|
||||||
|
|
||||||
* `keyword` {string} the potential keyword to parse and execute
|
* `keyword` {string} the potential keyword to parse and execute
|
||||||
* `rest` {any} any parameters to the keyword command
|
* `rest` {any} any parameters to the keyword command
|
||||||
* Returns: {boolean}
|
* Returns: {boolean}
|
||||||
|
|
||||||
> Stability: 0 - Deprecated.
|
|
||||||
|
|
||||||
An internal method used to parse and execute `REPLServer` keywords.
|
An internal method used to parse and execute `REPLServer` keywords.
|
||||||
Returns `true` if `keyword` is a valid keyword, otherwise `false`.
|
Returns `true` if `keyword` is a valid keyword, otherwise `false`.
|
||||||
|
|
||||||
|
@ -1769,11 +1769,11 @@ added: v0.7.5
|
|||||||
deprecated: v6.0.0
|
deprecated: v6.0.0
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
> Stability: 0 - Deprecated: Use [`Object.assign()`] instead.
|
||||||
|
|
||||||
* `target` {Object}
|
* `target` {Object}
|
||||||
* `source` {Object}
|
* `source` {Object}
|
||||||
|
|
||||||
> Stability: 0 - Deprecated: Use [`Object.assign()`] instead.
|
|
||||||
|
|
||||||
The `util._extend()` method was never intended to be used outside of internal
|
The `util._extend()` method was never intended to be used outside of internal
|
||||||
Node.js modules. The community found and used it anyway.
|
Node.js modules. The community found and used it anyway.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user