Skip to content

Commit a4895e2

Browse files
authoredJan 23, 2025
doc: add note for features using InternalWorker with permission model
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>
1 parent 309924f commit a4895e2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
 

‎doc/api/cli.md

+17
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,13 @@ Previously gated the entire `import.meta.resolve` feature.
943943
<!-- YAML
944944
added: v8.8.0
945945
changes:
946+
- version:
947+
- v23.6.1
948+
- v22.13.1
949+
- v20.18.2
950+
pr-url: https://github.com/nodejs-private/node-private/pull/629
951+
description: Using this feature with the permission model enabled requires
952+
passing `--allow-worker`.
946953
- version: v12.11.1
947954
pr-url: https://github.com/nodejs/node/pull/29752
948955
description: This flag was renamed from `--loader` to
@@ -956,6 +963,8 @@ changes:
956963
Specify the `module` containing exported [module customization hooks][].
957964
`module` may be any string accepted as an [`import` specifier][].
958965

966+
This feature requires `--allow-worker` if used with the [Permission Model][].
967+
959968
### `--experimental-network-inspection`
960969

961970
<!-- YAML
@@ -1055,6 +1064,14 @@ report is not generated. See the documentation on
10551064
added:
10561065
- v22.3.0
10571066
- v20.18.0
1067+
changes:
1068+
- version:
1069+
- v23.6.1
1070+
- v22.13.1
1071+
- v20.18.2
1072+
pr-url: https://github.com/nodejs-private/node-private/pull/629
1073+
description: Using this feature with the permission model enabled requires
1074+
passing `--allow-worker`.
10581075
-->
10591076

10601077
> Stability: 1.0 - Early development

‎doc/api/module.md

+10
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ added:
177177
- v20.6.0
178178
- v18.19.0
179179
changes:
180+
- version:
181+
- v23.6.1
182+
- v22.13.1
183+
- v20.18.2
184+
pr-url: https://github.com/nodejs-private/node-private/pull/629
185+
description: Using this feature with the permission model enabled requires
186+
passing `--allow-worker`.
180187
- version:
181188
- v20.8.0
182189
- v18.19.0
@@ -205,6 +212,8 @@ changes:
205212
Register a module that exports [hooks][] that customize Node.js module
206213
resolution and loading behavior. See [Customization hooks][].
207214
215+
This feature requires `--allow-worker` if used with the [Permission Model][].
216+
208217
### `module.registerHooks(options)`
209218
210219
<!-- YAML
@@ -1705,6 +1714,7 @@ returned object contains the following keys:
17051714
[Conditional exports]: packages.md#conditional-exports
17061715
[Customization hooks]: #customization-hooks
17071716
[ES Modules]: esm.md
1717+
[Permission Model]: permissions.md#permission-model
17081718
[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
17091719
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
17101720
[V8 code cache]: https://v8.dev/blog/code-caching-for-devs

0 commit comments

Comments
 (0)