Skip to content

Commit 3ca82e2

Browse files
committed
doc: use new api linter
1 parent cbe0233 commit 3ca82e2

28 files changed

+8332
-1361
lines changed

doc/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ professionalism across all documents.
1515
7. [Formatting](#formatting)
1616
8. [Product and Project Naming](#product-and-project-naming)
1717

18-
***
18+
---
1919

2020
## General guidelines
2121

@@ -38,7 +38,7 @@ professionalism across all documents.
3838

3939
* Validate documentation changes using `make test-doc -j` or `vcbuild test-doc`.
4040

41-
***
41+
---
4242

4343
## Writing style
4444

@@ -68,7 +68,7 @@ professionalism across all documents.
6868
* Use precise technical terms and avoid colloquialisms.
6969
* Define any specialized terms or acronyms at first use.
7070

71-
***
71+
---
7272

7373
## Punctuation
7474

@@ -87,7 +87,7 @@ professionalism across all documents.
8787
* Use colons to introduce lists or explanations.
8888
* Use semicolons to link closely related independent clauses.
8989

90-
***
90+
---
9191

9292
## Document structure
9393

@@ -109,7 +109,7 @@ professionalism across all documents.
109109

110110
* Use tables to present structured information clearly. Ensure they are readable in plain text.
111111

112-
***
112+
---
113113

114114
## API documentation
115115

@@ -129,7 +129,7 @@ professionalism across all documents.
129129
* `byteOffset` {integer} Index of first byte to expose. **Default:** `0`.
130130
```
131131

132-
***
132+
---
133133

134134
## Code blocks
135135

@@ -165,7 +165,7 @@ professionalism across all documents.
165165
* Use comments to explain complex logic within code examples.
166166
* Follow the standard commenting style of the respective language.
167167

168-
***
168+
---
169169

170170
## Formatting
171171

@@ -198,7 +198,7 @@ professionalism across all documents.
198198
* Returns: {AsyncHook} A reference to `asyncHook`.
199199
```
200200

201-
***
201+
---
202202

203203
## Product and project naming
204204

@@ -225,7 +225,7 @@ professionalism across all documents.
225225

226226
For topics not addressed here, please consult the [Microsoft Writing Style Guide][].
227227

228-
***
228+
---
229229

230230
[Microsoft Writing Style Guide]: https://learn.microsoft.com/en-us/style-guide/welcome/
231231
[US spelling]: https://learn.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words

doc/api/buffer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ changes:
10241024
description: The elements of `list` can now be `Uint8Array`s.
10251025
-->
10261026

1027-
* `list` {Buffer\[] | Uint8Array\[]} List of `Buffer` or {Uint8Array}
1027+
* `list` {Buffer\[]|Uint8Array\[]} List of `Buffer` or {Uint8Array}
10281028
instances to concatenate.
10291029
* `totalLength` {integer} Total length of the `Buffer` instances in `list`
10301030
when concatenated.
@@ -5233,7 +5233,7 @@ added:
52335233
- v18.15.0
52345234
-->
52355235

5236-
* `input` {Buffer | ArrayBuffer | TypedArray} The input to validate.
5236+
* `input` {Buffer|ArrayBuffer|TypedArray} The input to validate.
52375237
* Returns: {boolean}
52385238

52395239
This function returns `true` if `input` contains only valid ASCII-encoded data,
@@ -5249,7 +5249,7 @@ added:
52495249
- v18.14.0
52505250
-->
52515251

5252-
* `input` {Buffer | ArrayBuffer | TypedArray} The input to validate.
5252+
* `input` {Buffer|ArrayBuffer|TypedArray} The input to validate.
52535253
* Returns: {boolean}
52545254

52555255
This function returns `true` if `input` contains only valid UTF-8-encoded data,

doc/api/crypto.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ added: v0.1.94
568568
-->
569569

570570
* `outputEncoding` {string} The [encoding][] of the return value.
571-
* Returns: {Buffer | string} Any remaining enciphered contents.
571+
* Returns: {Buffer|string} Any remaining enciphered contents.
572572
If `outputEncoding` is specified, a string is
573573
returned. If an `outputEncoding` is not provided, a [`Buffer`][] is returned.
574574

@@ -651,7 +651,7 @@ changes:
651651
* `data` {string|Buffer|TypedArray|DataView}
652652
* `inputEncoding` {string} The [encoding][] of the data.
653653
* `outputEncoding` {string} The [encoding][] of the return value.
654-
* Returns: {Buffer | string}
654+
* Returns: {Buffer|string}
655655

656656
Updates the cipher with `data`. If the `inputEncoding` argument is given,
657657
the `data`
@@ -878,7 +878,7 @@ added: v0.1.94
878878
-->
879879

880880
* `outputEncoding` {string} The [encoding][] of the return value.
881-
* Returns: {Buffer | string} Any remaining deciphered contents.
881+
* Returns: {Buffer|string} Any remaining deciphered contents.
882882
If `outputEncoding` is specified, a string is
883883
returned. If an `outputEncoding` is not provided, a [`Buffer`][] is returned.
884884

@@ -997,7 +997,7 @@ changes:
997997
* `data` {string|Buffer|TypedArray|DataView}
998998
* `inputEncoding` {string} The [encoding][] of the `data` string.
999999
* `outputEncoding` {string} The [encoding][] of the return value.
1000-
* Returns: {Buffer | string}
1000+
* Returns: {Buffer|string}
10011001

10021002
Updates the decipher with `data`. If the `inputEncoding` argument is given,
10031003
the `data`
@@ -1086,7 +1086,7 @@ added: v0.5.0
10861086
* `otherPublicKey` {string|ArrayBuffer|Buffer|TypedArray|DataView}
10871087
* `inputEncoding` {string} The [encoding][] of an `otherPublicKey` string.
10881088
* `outputEncoding` {string} The [encoding][] of the return value.
1089-
* Returns: {Buffer | string}
1089+
* Returns: {Buffer|string}
10901090

10911091
Computes the shared secret using `otherPublicKey` as the other
10921092
party's public key and returns the computed shared secret. The supplied
@@ -1106,7 +1106,7 @@ added: v0.5.0
11061106
-->
11071107

11081108
* `encoding` {string} The [encoding][] of the return value.
1109-
* Returns: {Buffer | string}
1109+
* Returns: {Buffer|string}
11101110

11111111
Generates private and public Diffie-Hellman key values unless they have been
11121112
generated or computed already, and returns
@@ -1126,7 +1126,7 @@ added: v0.5.0
11261126
-->
11271127

11281128
* `encoding` {string} The [encoding][] of the return value.
1129-
* Returns: {Buffer | string}
1129+
* Returns: {Buffer|string}
11301130

11311131
Returns the Diffie-Hellman generator in the specified `encoding`.
11321132
If `encoding` is provided a string is
@@ -1139,7 +1139,7 @@ added: v0.5.0
11391139
-->
11401140

11411141
* `encoding` {string} The [encoding][] of the return value.
1142-
* Returns: {Buffer | string}
1142+
* Returns: {Buffer|string}
11431143

11441144
Returns the Diffie-Hellman prime in the specified `encoding`.
11451145
If `encoding` is provided a string is
@@ -1152,7 +1152,7 @@ added: v0.5.0
11521152
-->
11531153

11541154
* `encoding` {string} The [encoding][] of the return value.
1155-
* Returns: {Buffer | string}
1155+
* Returns: {Buffer|string}
11561156

11571157
Returns the Diffie-Hellman private key in the specified `encoding`.
11581158
If `encoding` is provided a
@@ -1165,7 +1165,7 @@ added: v0.5.0
11651165
-->
11661166

11671167
* `encoding` {string} The [encoding][] of the return value.
1168-
* Returns: {Buffer | string}
1168+
* Returns: {Buffer|string}
11691169

11701170
Returns the Diffie-Hellman public key in the specified `encoding`.
11711171
If `encoding` is provided a
@@ -1325,7 +1325,7 @@ added: v10.0.0
13251325
* `inputEncoding` {string} The [encoding][] of the `key` string.
13261326
* `outputEncoding` {string} The [encoding][] of the return value.
13271327
* `format` {string} **Default:** `'uncompressed'`
1328-
* Returns: {Buffer | string}
1328+
* Returns: {Buffer|string}
13291329

13301330
Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
13311331
format specified by `format`. The `format` argument specifies point encoding
@@ -1404,7 +1404,7 @@ changes:
14041404
* `otherPublicKey` {string|ArrayBuffer|Buffer|TypedArray|DataView}
14051405
* `inputEncoding` {string} The [encoding][] of the `otherPublicKey` string.
14061406
* `outputEncoding` {string} The [encoding][] of the return value.
1407-
* Returns: {Buffer | string}
1407+
* Returns: {Buffer|string}
14081408

14091409
Computes the shared secret using `otherPublicKey` as the other
14101410
party's public key and returns the computed shared secret. The supplied
@@ -1431,7 +1431,7 @@ added: v0.11.14
14311431

14321432
* `encoding` {string} The [encoding][] of the return value.
14331433
* `format` {string} **Default:** `'uncompressed'`
1434-
* Returns: {Buffer | string}
1434+
* Returns: {Buffer|string}
14351435

14361436
Generates private and public EC Diffie-Hellman key values, and returns
14371437
the public key in the specified `format` and `encoding`. This key should be
@@ -1451,7 +1451,7 @@ added: v0.11.14
14511451
-->
14521452

14531453
* `encoding` {string} The [encoding][] of the return value.
1454-
* Returns: {Buffer | string} The EC Diffie-Hellman in the specified `encoding`.
1454+
* Returns: {Buffer|string} The EC Diffie-Hellman in the specified `encoding`.
14551455

14561456
If `encoding` is specified, a string is returned; otherwise a [`Buffer`][] is
14571457
returned.
@@ -1464,7 +1464,7 @@ added: v0.11.14
14641464

14651465
* `encoding` {string} The [encoding][] of the return value.
14661466
* `format` {string} **Default:** `'uncompressed'`
1467-
* Returns: {Buffer | string} The EC Diffie-Hellman public key in the specified
1467+
* Returns: {Buffer|string} The EC Diffie-Hellman public key in the specified
14681468
`encoding` and `format`.
14691469

14701470
The `format` argument specifies point encoding and can be `'compressed'` or
@@ -1754,7 +1754,7 @@ added: v0.1.92
17541754
-->
17551755

17561756
* `encoding` {string} The [encoding][] of the return value.
1757-
* Returns: {Buffer | string}
1757+
* Returns: {Buffer|string}
17581758

17591759
Calculates the digest of all of the data passed to be hashed (using the
17601760
[`hash.update()`][] method).
@@ -1915,7 +1915,7 @@ added: v0.1.94
19151915
-->
19161916

19171917
* `encoding` {string} The [encoding][] of the return value.
1918-
* Returns: {Buffer | string}
1918+
* Returns: {Buffer|string}
19191919

19201920
Calculates the HMAC digest of all of the data passed using [`hmac.update()`][].
19211921
If `encoding` is
@@ -2122,7 +2122,7 @@ changes:
21222122
-->
21232123

21242124
* `options` {Object}
2125-
* Returns: {string | Buffer | Object}
2125+
* Returns: {string|Buffer|Object}
21262126

21272127
For symmetric keys, the following encoding options can be used:
21282128

@@ -2141,7 +2141,7 @@ For private keys, the following encoding options can be used:
21412141
* `cipher` {string} If specified, the private key will be encrypted with
21422142
the given `cipher` and `passphrase` using PKCS#5 v2.0 password based
21432143
encryption.
2144-
* `passphrase` {string | Buffer} The passphrase to use for encryption, see
2144+
* `passphrase` {string|Buffer} The passphrase to use for encryption, see
21452145
`cipher`.
21462146

21472147
The result type depends on the selected encoding format, when PEM the
@@ -2351,7 +2351,7 @@ changes:
23512351
* `padding` {integer}
23522352
* `saltLength` {integer}
23532353
* `outputEncoding` {string} The [encoding][] of the return value.
2354-
* Returns: {Buffer | string}
2354+
* Returns: {Buffer|string}
23552355

23562356
<!--lint enable maximum-line-length remark-lint-->
23572357

@@ -3645,7 +3645,7 @@ changes:
36453645
**Default:** `'pem'`.
36463646
* `type` {string} Must be `'pkcs1'`, `'pkcs8'` or `'sec1'`. This option is
36473647
required only if the `format` is `'der'` and ignored otherwise.
3648-
* `passphrase` {string | Buffer} The passphrase to use for decryption.
3648+
* `passphrase` {string|Buffer} The passphrase to use for decryption.
36493649
* `encoding` {string} The string encoding to use when `key` is a string.
36503650
* Returns: {KeyObject}
36513651

@@ -4006,8 +4006,8 @@ changes:
40064006
* `privateKeyEncoding` {Object} See [`keyObject.export()`][].
40074007
* `callback` {Function}
40084008
* `err` {Error}
4009-
* `publicKey` {string | Buffer | KeyObject}
4010-
* `privateKey` {string | Buffer | KeyObject}
4009+
* `publicKey` {string|Buffer|KeyObject}
4010+
* `privateKey` {string|Buffer|KeyObject}
40114011

40124012
Generates a new asymmetric key pair of the given `type`. See the
40134013
supported [asymmetric key types][].
@@ -4128,8 +4128,8 @@ changes:
41284128
* `publicKeyEncoding` {Object} See [`keyObject.export()`][].
41294129
* `privateKeyEncoding` {Object} See [`keyObject.export()`][].
41304130
* Returns: {Object}
4131-
* `publicKey` {string | Buffer | KeyObject}
4132-
* `privateKey` {string | Buffer | KeyObject}
4131+
* `publicKey` {string|Buffer|KeyObject}
4132+
* `privateKey` {string|Buffer|KeyObject}
41334133

41344134
Generates a new asymmetric key pair of the given `type`. See the
41354135
supported [asymmetric key types][].
@@ -5758,7 +5758,7 @@ changes:
57585758

57595759
<!--lint disable maximum-line-length remark-lint-->
57605760

5761-
* `algorithm` {string | null | undefined}
5761+
* `algorithm` {string|null|undefined}
57625762
* `data` {ArrayBuffer|Buffer|TypedArray|DataView}
57635763
* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey}
57645764
* `callback` {Function}
@@ -5887,7 +5887,7 @@ changes:
58875887
<!--lint disable maximum-line-length remark-lint-->
58885888

58895889
* `algorithm` {string|null|undefined}
5890-
* `data` {ArrayBuffer| Buffer|TypedArray|DataView}
5890+
* `data` {ArrayBuffer|Buffer|TypedArray|DataView}
58915891
* `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject|CryptoKey}
58925892
* `signature` {ArrayBuffer|Buffer|TypedArray|DataView}
58935893
* `callback` {Function}

doc/api/deprecations.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,11 +2619,13 @@ of Node.js core and was removed.
26192619
<!-- YAML
26202620
changes:
26212621
- version: v11.0.0
2622-
pr-url:
2623-
- https://github.com/nodejs/node/pull/22519
2624-
- https://github.com/nodejs/node/pull/23017
2625-
description: Documentation-only deprecation
2622+
pr-url: https://github.com/nodejs/node/pull/22519
2623+
description: Deprecation revoked.
2624+
Status changed to a documentation-only deprecation
26262625
with `--pending-deprecation` support.
2626+
- version: v11.0.0
2627+
pr-url: https://github.com/nodejs/node/pull/23017
2628+
description: Runtime deprecation.
26272629
-->
26282630

26292631
Type: Documentation-only (supports [`--pending-deprecation`][])

doc/api/diagnostics_channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ Emitted when a stream is received on the client.
12471247

12481248
* `stream` {ClientHttp2Stream}
12491249
* `writev` {boolean}
1250-
* `data` {Buffer | string | Buffer\[] | Object\[]}
1250+
* `data` {Buffer|string|Buffer\[]|Object\[]}
12511251
* `chunk` {Buffer|string}
12521252
* `encoding` {string}
12531253
* `encoding` {string}

0 commit comments

Comments
 (0)