Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1efe46c

Browse files
authored
fix: remove redundant character ">" in documentation md (#3165)
* fix: remove redundant character ">" in documentation md * chore: update sync api util to strip redundant characters Co-authored-by: leapful <leapful>
1 parent 9a72eb2 commit 1efe46c

15 files changed

+18
-18
lines changed

content/api/v16/buffer.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,7 @@ See [`Buffer.from(array)`][].
42874287

42884288
<Metadata version="v16.19.0" data={{"changes":[{"version":"v10.0.0","pr-url":"https://github.com/nodejs/node/pull/19524","description":"Calling this constructor emits a deprecation warning when run from code outside the `node_modules` directory."},{"version":"v7.2.1","pr-url":"https://github.com/nodejs/node/pull/9529","description":"Calling this constructor no longer emits a deprecation warning."},{"version":"v7.0.0","pr-url":"https://github.com/nodejs/node/pull/8169","description":"Calling this constructor emits a deprecation warning now."},{"version":"v6.0.0","pr-url":"https://github.com/nodejs/node/pull/4682","description":"The `byteOffset` and `length` parameters are supported now."}],"update":{"type":"deprecated","version":["v6.0.0"]}}} />
42894289

4290-
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated: Use [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`]\n> instead."}}} />
4290+
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated: Use [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] instead."}}} />
42914291

42924292
* `arrayBuffer` [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) | [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) An [`ArrayBuffer`][],
42934293
[`SharedArrayBuffer`][] or the `.buffer` property of a [`TypedArray`][].

content/api/v16/documentation.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ The stability indices are as follows:
3030

3131
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated. The feature may emit warnings. Backward compatibility is not guaranteed."}}} />
3232

33-
<Metadata version="v16.19.0" data={{"stability":{"level":1,"text":" - Experimental. The feature is not subject to semantic versioning rules. Non-backward compatible changes or removal may\n> occur in any future release. Use of the feature is not recommended in\n> production environments."}}} />
33+
<Metadata version="v16.19.0" data={{"stability":{"level":1,"text":" - Experimental. The feature is not subject to semantic versioning rules. Non-backward compatible changes or removal may occur in any future release. Use of the feature is not recommended in production environments."}}} />
3434

3535
<Metadata version="v16.19.0" data={{"stability":{"level":2,"text":" - Stable. Compatibility with the npm ecosystem is a high priority."}}} />
3636

37-
<Metadata version="v16.19.0" data={{"stability":{"level":3,"text":" - Legacy. Although this feature is unlikely to be removed and is still covered by semantic versioning guarantees, it is no longer actively\n> maintained, and other alternatives are available."}}} />
37+
<Metadata version="v16.19.0" data={{"stability":{"level":3,"text":" - Legacy. Although this feature is unlikely to be removed and is still covered by semantic versioning guarantees, it is no longer actively maintained, and other alternatives are available."}}} />
3838

3939
Features are marked as legacy rather than being deprecated if their use does no
4040
harm, and they are widely relied upon within the npm ecosystem. Bugs found in

content/api/v16/process.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3355,7 +3355,7 @@ flag's behavior.
33553355
33563356
<Metadata version="v16.19.0" data={{"changes":[{"version":["v14.0.0","v12.19.0"],"pr-url":"https://github.com/nodejs/node/pull/32499","description":"Calling `process.umask()` with no arguments is deprecated."}],"update":{"type":"added","version":["v0.1.19"]}}} />
33573357
3358-
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated. Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition\n> between threads, and is a potential security vulnerability. There is no safe,\n> cross-platform alternative API."}}} />
3358+
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated. Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential security vulnerability. There is no safe, cross-platform alternative API."}}} />
33593359
33603360
`process.umask()` returns the Node.js process's file mode creation mask. Child
33613361
processes inherit the mask from the parent process.

content/api/v16/util.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ util.isObject(() => {});
23572357
23582358
<Metadata version="v16.19.0" data={{"update":{"type":"deprecated","version":["v4.0.0"]}}} />
23592359
2360-
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated: Use `(typeof value !== 'object' && typeof value !== 'function') || value === null`\n> instead."}}} />
2360+
<Metadata version="v16.19.0" data={{"stability":{"level":0,"text":" - Deprecated: Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead."}}} />
23612361
23622362
* `object` [`any`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types)
23632363
* Returns: [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)

content/api/v18/async_hooks.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: 'v18'
77

88
<Metadata version="v18.13.0" data={{"update":{"type":"introduced_in","version":["v8.1.0"]}}} />
99

10-
<Metadata version="v18.13.0" data={{"stability":{"level":1,"text":" - Experimental. Please migrate away from this API, if you can. We do not recommend using the `createHook`][], [`AsyncHook`, and\n> `executionAsyncResource` APIs as they have usability issues, safety risks,\n> and performance implications. Async context tracking use cases are better\n> served by the stable `AsyncLocalStorage` API. If you have a use case for\n> `createHook`, `AsyncHook`, or `executionAsyncResource` beyond the context\n> tracking need solved by `AsyncLocalStorage` or diagnostics data currently\n> provided by Diagnostics Channel, please open an issue at\n> <https://github.com/nodejs/node/issues> describing your use case so we can\n> create a more purpose-focused API."}}} />
10+
<Metadata version="v18.13.0" data={{"stability":{"level":1,"text":" - Experimental. Please migrate away from this API, if you can. We do not recommend using the `createHook`][], [`AsyncHook`][], and [`executionAsyncResource`][] APIs as they have usability issues, safety risks, and performance implications. Async context tracking use cases are better served by the stable [`AsyncLocalStorage`][] API. If you have a use case for `createHook`, `AsyncHook`, or `executionAsyncResource` beyond the context tracking need solved by [`AsyncLocalStorage`][] or diagnostics data currently provided by [Diagnostics Channel, please open an issue at <https://github.com/nodejs/node/issues> describing your use case so we can create a more purpose-focused API."}}} />
1111

1212
<Metadata version="v18.13.0" data={{"source_link":"lib/async_hooks.js"}} />
1313

content/api/v18/buffer.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4300,7 +4300,7 @@ See [`Buffer.from(array)`][].
43004300

43014301
<Metadata version="v18.13.0" data={{"changes":[{"version":"v10.0.0","pr-url":"https://github.com/nodejs/node/pull/19524","description":"Calling this constructor emits a deprecation warning when run from code outside the `node_modules` directory."},{"version":"v7.2.1","pr-url":"https://github.com/nodejs/node/pull/9529","description":"Calling this constructor no longer emits a deprecation warning."},{"version":"v7.0.0","pr-url":"https://github.com/nodejs/node/pull/8169","description":"Calling this constructor emits a deprecation warning now."},{"version":"v6.0.0","pr-url":"https://github.com/nodejs/node/pull/4682","description":"The `byteOffset` and `length` parameters are supported now."}],"update":{"type":"deprecated","version":["v6.0.0"]}}} />
43024302

4303-
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated: Use [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`]\n> instead."}}} />
4303+
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated: Use [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][`Buffer.from(arrayBuf)`] instead."}}} />
43044304

43054305
* `arrayBuffer` [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) | [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) An [`ArrayBuffer`][],
43064306
[`SharedArrayBuffer`][] or the `.buffer` property of a [`TypedArray`][].

content/api/v18/documentation.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ The stability indices are as follows:
3030

3131
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated. The feature may emit warnings. Backward compatibility is not guaranteed."}}} />
3232

33-
<Metadata version="v18.13.0" data={{"stability":{"level":1,"text":" - Experimental. The feature is not subject to semantic versioning rules. Non-backward compatible changes or removal may\n> occur in any future release. Use of the feature is not recommended in\n> production environments."}}} />
33+
<Metadata version="v18.13.0" data={{"stability":{"level":1,"text":" - Experimental. The feature is not subject to semantic versioning rules. Non-backward compatible changes or removal may occur in any future release. Use of the feature is not recommended in production environments."}}} />
3434

3535
<Metadata version="v18.13.0" data={{"stability":{"level":2,"text":" - Stable. Compatibility with the npm ecosystem is a high priority."}}} />
3636

37-
<Metadata version="v18.13.0" data={{"stability":{"level":3,"text":" - Legacy. Although this feature is unlikely to be removed and is still covered by semantic versioning guarantees, it is no longer actively\n> maintained, and other alternatives are available."}}} />
37+
<Metadata version="v18.13.0" data={{"stability":{"level":3,"text":" - Legacy. Although this feature is unlikely to be removed and is still covered by semantic versioning guarantees, it is no longer actively maintained, and other alternatives are available."}}} />
3838

3939
Features are marked as legacy rather than being deprecated if their use does no
4040
harm, and they are widely relied upon within the npm ecosystem. Bugs found in

content/api/v18/process.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3355,7 +3355,7 @@ flag's behavior.
33553355
33563356
<Metadata version="v18.13.0" data={{"changes":[{"version":["v14.0.0","v12.19.0"],"pr-url":"https://github.com/nodejs/node/pull/32499","description":"Calling `process.umask()` with no arguments is deprecated."}],"update":{"type":"added","version":["v0.1.19"]}}} />
33573357
3358-
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated. Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition\n> between threads, and is a potential security vulnerability. There is no safe,\n> cross-platform alternative API."}}} />
3358+
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated. Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential security vulnerability. There is no safe, cross-platform alternative API."}}} />
33593359
33603360
`process.umask()` returns the Node.js process's file mode creation mask. Child
33613361
processes inherit the mask from the parent process.

content/api/v18/util.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ util.isObject(() => {});
27282728
27292729
<Metadata version="v18.13.0" data={{"update":{"type":"deprecated","version":["v4.0.0"]}}} />
27302730
2731-
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated: Use `(typeof value !== 'object' && typeof value !== 'function') || value === null`\n> instead."}}} />
2731+
<Metadata version="v18.13.0" data={{"stability":{"level":0,"text":" - Deprecated: Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead."}}} />
27322732
27332733
* `object` [`any`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types)
27342734
* Returns: [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)

content/api/v19/async_hooks.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: 'v19'
77

88
<Metadata version="v19.4.0" data={{"update":{"type":"introduced_in","version":["v8.1.0"]}}} />
99

10-
<Metadata version="v19.4.0" data={{"stability":{"level":1,"text":" - Experimental. Please migrate away from this API, if you can. We do not recommend using the `createHook`][], [`AsyncHook`, and\n> `executionAsyncResource` APIs as they have usability issues, safety risks,\n> and performance implications. Async context tracking use cases are better\n> served by the stable `AsyncLocalStorage` API. If you have a use case for\n> `createHook`, `AsyncHook`, or `executionAsyncResource` beyond the context\n> tracking need solved by `AsyncLocalStorage` or diagnostics data currently\n> provided by Diagnostics Channel, please open an issue at\n> <https://github.com/nodejs/node/issues> describing your use case so we can\n> create a more purpose-focused API."}}} />
10+
<Metadata version="v19.4.0" data={{"stability":{"level":1,"text":" - Experimental. Please migrate away from this API, if you can. We do not recommend using the `createHook`][], [`AsyncHook`][], and [`executionAsyncResource`][] APIs as they have usability issues, safety risks, and performance implications. Async context tracking use cases are better served by the stable [`AsyncLocalStorage`][] API. If you have a use case for `createHook`, `AsyncHook`, or `executionAsyncResource` beyond the context tracking need solved by [`AsyncLocalStorage`][] or diagnostics data currently provided by [Diagnostics Channel, please open an issue at <https://github.com/nodejs/node/issues> describing your use case so we can create a more purpose-focused API."}}} />
1111

1212
<Metadata version="v19.4.0" data={{"source_link":"lib/async_hooks.js"}} />
1313

0 commit comments

Comments
 (0)