Skip to content

Commit

Permalink
doc: add note for features using InternalWorker with permission model
Browse files Browse the repository at this point in the history
PR-URL: #56706
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
aduh95 committed Jan 30, 2025
1 parent d066acf commit 097b8b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,10 @@ Previously gated the entire `import.meta.resolve` feature.
<!-- YAML
added: v8.8.0
changes:
- version: v23.6.1
pr-url: https://github.com/nodejs-private/node-private/pull/629
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 @@ -955,6 +959,8 @@ changes:
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-inspection`

<!-- YAML
Expand Down Expand Up @@ -1044,6 +1050,11 @@ report is not generated. See the documentation on
added:
- v22.3.0
- v20.18.0
changes:
- version: v23.6.1
pr-url: https://github.com/nodejs-private/node-private/pull/629
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 @@ -177,6 +177,10 @@ added:
- v20.6.0
- v18.19.0
changes:
- version: v23.6.1
pr-url: https://github.com/nodejs-private/node-private/pull/629
description: Using this feature with the permission model enabled requires
passing `--allow-worker`.
- version:
- v20.8.0
- v18.19.0
Expand Down Expand Up @@ -205,6 +209,8 @@ changes:
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.registerHooks(options)`
<!-- YAML
Expand Down Expand Up @@ -1699,6 +1705,7 @@ returned object contains the following keys:
[Conditional exports]: packages.md#conditional-exports
[Customization hooks]: #customization-hooks
[ES Modules]: esm.md
[Permission Model]: permissions.md#permission-model
[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
[V8 code cache]: https://v8.dev/blog/code-caching-for-devs
Expand Down

0 comments on commit 097b8b4

Please sign in to comment.