Skip to content

[v20.x backport] doc: add note for features using InternalWorker with permission model #56721

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,10 @@
<!-- YAML
added: v8.8.0
changes:
- version: v20.18.2
pr-url: https://github.com/nodejs-private/node-private/pull/629

Check warning on line 955 in doc/api/cli.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Using this feature with the permission model enabled requires
passing `--allow-worker`.
- version: v12.11.1
pr-url: https://github.com/nodejs/node/pull/29752
description: This flag was renamed from `--loader` to
Expand All @@ -964,6 +968,8 @@
Specify the `module` containing exported [module customization hooks][].
`module` may be any string accepted as an [`import` specifier][].

This feature requires `--allow-worker` if used with the [Permission Model][].

### `--experimental-network-imports`

<!-- YAML
Expand Down Expand Up @@ -1070,6 +1076,11 @@

<!-- YAML
added: v20.18.0
changes:
- version: v20.18.2
pr-url: https://github.com/nodejs-private/node-private/pull/629

Check warning on line 1081 in doc/api/cli.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Using this feature with the permission model enabled requires
passing `--allow-worker`.
-->

> Stability: 1.0 - Early development
Expand Down
7 changes: 7 additions & 0 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
<!-- YAML
added: v20.6.0
changes:
- version: v20.18.2
pr-url: https://github.com/nodejs-private/node-private/pull/629

Check warning on line 91 in doc/api/module.md

View workflow job for this annotation

GitHub Actions / lint-pr-url

pr-url doesn't match the URL of the current PR.
description: Using this feature with the permission model enabled requires
passing `--allow-worker`.
- version: v20.8.0
pr-url: https://github.com/nodejs/node/pull/49655
description: Add support for WHATWG URL instances.
Expand All @@ -113,6 +117,8 @@
Register a module that exports [hooks][] that customize Node.js module
resolution and loading behavior. See [Customization hooks][].

This feature requires `--allow-worker` if used with the [Permission Model][].

### `module.syncBuiltinESMExports()`

<!-- YAML
Expand Down Expand Up @@ -1117,6 +1123,7 @@
[Customization hooks]: #customization-hooks
[ES Modules]: esm.md
[HTTPS and HTTP imports]: esm.md#https-and-http-imports
[Permission Model]: permissions.md#permission-model
[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
[`"exports"`]: packages.md#exports
[`--enable-source-maps`]: cli.md#--enable-source-maps
Expand Down
Loading