Skip to content

Commit d5882a9

Browse files
vsemozhetbytTrott
authored andcommitted
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: #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>
1 parent 4fa1744 commit d5882a9

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

doc/api/assert.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,15 +624,15 @@ changes:
624624
deprecated and emits a warning.
625625
-->
626626

627+
> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
628+
> functions instead.
629+
627630
* `actual` {any}
628631
* `expected` {any}
629632
* `message` {string|Error}
630633
* `operator` {string} **Default:** `'!='`
631634
* `stackStartFn` {Function} **Default:** `assert.fail`
632635

633-
> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
634-
> functions instead.
635-
636636
If `message` is falsy, the error message is set as the values of `actual` and
637637
`expected` separated by the provided `operator`. If just the two `actual` and
638638
`expected` arguments are provided, `operator` will default to `'!='`. If

doc/api/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ added: v0.9.12
229229
deprecated: v4.0.0
230230
-->
231231

232+
> Stability: 0 - Deprecated: Use [`emitter.listenerCount()`][] instead.
233+
232234
* `emitter` {EventEmitter} The emitter to query
233235
* `eventName` {string|symbol} The event name
234236

235-
> Stability: 0 - Deprecated: Use [`emitter.listenerCount()`][] instead.
236-
237237
A class method that returns the number of listeners for the given `eventName`
238238
registered on the given `emitter`.
239239

doc/api/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,10 +1169,10 @@ added: v0.3.0
11691169
deprecated: REPLACEME
11701170
-->
11711171

1172-
* {net.Socket}
1173-
11741172
> Stability: 0 - Deprecated. Use [`response.socket`][].
11751173
1174+
* {net.Socket}
1175+
11761176
See [`response.socket`][].
11771177

11781178
### response.end([data[, encoding]][, callback])

doc/api/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,12 +970,12 @@ added: v10.12.0
970970
deprecated: v12.2.0
971971
-->
972972
973+
> Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.
974+
973975
* `filename` {string} Filename to be used to construct the relative require
974976
function.
975977
* Returns: {require} Require function
976978
977-
> Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.
978-
979979
```js
980980
const { createRequireFromPath } = require('module');
981981
const requireUtil = createRequireFromPath('../src/utils/');

doc/api/repl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ added: v0.8.9
482482
deprecated: v9.0.0
483483
-->
484484

485+
> Stability: 0 - Deprecated.
486+
485487
* `keyword` {string} the potential keyword to parse and execute
486488
* `rest` {any} any parameters to the keyword command
487489
* Returns: {boolean}
488490

489-
> Stability: 0 - Deprecated.
490-
491491
An internal method used to parse and execute `REPLServer` keywords.
492492
Returns `true` if `keyword` is a valid keyword, otherwise `false`.
493493

doc/api/util.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,11 +1769,11 @@ added: v0.7.5
17691769
deprecated: v6.0.0
17701770
-->
17711771

1772+
> Stability: 0 - Deprecated: Use [`Object.assign()`] instead.
1773+
17721774
* `target` {Object}
17731775
* `source` {Object}
17741776

1775-
> Stability: 0 - Deprecated: Use [`Object.assign()`] instead.
1776-
17771777
The `util._extend()` method was never intended to be used outside of internal
17781778
Node.js modules. The community found and used it anyway.
17791779

0 commit comments

Comments
 (0)