Skip to content

Commit

Permalink
doc: mark isWebAssemblyCompiledModule eol
Browse files Browse the repository at this point in the history
PR-URL: #51442
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
marco-ippolito authored and richardlau committed Mar 25, 2024
1 parent 8016628 commit 9a68b47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
13 changes: 8 additions & 5 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3432,18 +3432,22 @@ deprecated. Get them from `fs.constants` or `fs.promises.constants` instead.

<!-- YAML
changes:
- version: v20.11.0
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/51442
description: End-of-Life.
- version:
- v20.11.0
pr-url: https://github.com/nodejs/node/pull/50486
description: A deprecation code has been assigned.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/32116
description: Documentation-only deprecation.
-->

Type: Documentation-only
Type: End-of-Life

The [`util.types.isWebAssemblyCompiledModule`][] API is deprecated. Please use
`value instanceof WebAssembly.Module` instead.
The `util.types.isWebAssemblyCompiledModule` API has been removed.
Please use `value instanceof WebAssembly.Module` instead.

### DEP0178: `dirent.path`

Expand Down Expand Up @@ -3620,7 +3624,6 @@ Please use the [`crypto.createHash()`][] method to create Hash instances.
[`util.log()`]: util.md#utillogstring
[`util.promisify`]: util.md#utilpromisifyoriginal
[`util.toUSVString()`]: util.md#utiltousvstringstring
[`util.types.isWebAssemblyCompiledModule`]: util.md#utiltypesiswebassemblycompiledmodulevalue
[`util.types`]: util.md#utiltypes
[`util`]: util.md
[`worker.exitedAfterDisconnect`]: cluster.md#workerexitedafterdisconnect
Expand Down
20 changes: 0 additions & 20 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2866,25 +2866,6 @@ Returns `true` if the value is a built-in [`WeakSet`][] instance.
util.types.isWeakSet(new WeakSet()); // Returns true
```
### `util.types.isWebAssemblyCompiledModule(value)`
<!-- YAML
added: v10.0.0
deprecated: v14.0.0
-->
> Stability: 0 - Deprecated: Use `value instanceof WebAssembly.Module` instead.
* `value` {any}
* Returns: {boolean}
Returns `true` if the value is a built-in [`WebAssembly.Module`][] instance.
```js
const module = new WebAssembly.Module(wasmBuffer);
util.types.isWebAssemblyCompiledModule(module); // Returns true
```
## Deprecated APIs
The following APIs are deprecated and should no longer be used. Existing
Expand Down Expand Up @@ -3390,7 +3371,6 @@ util.log('Timestamped message.');
[`Uint8ClampedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray
[`WeakMap`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
[`WeakSet`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
[`WebAssembly.Module`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module
[`assert.deepStrictEqual()`]: assert.md#assertdeepstrictequalactual-expected-message
[`console.error()`]: console.md#consoleerrordata-args
[`mime.toString()`]: #mimetostring
Expand Down

0 comments on commit 9a68b47

Please sign in to comment.