Skip to content

Commit 6b276a2

Browse files
committed
doc: add note for features using InternalWorker with permission model
PR-URL: #56706 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent a9980eb commit 6b276a2

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

doc/api/cli.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,10 @@ Previously gated the entire `import.meta.resolve` feature.
952952
<!-- YAML
953953
added: v8.8.0
954954
changes:
955+
- version: v22.13.1
956+
pr-url: https://github.com/nodejs-private/node-private/pull/629
957+
description: Using this feature with the permission model enabled requires
958+
passing `--allow-worker`.
955959
- version: v12.11.1
956960
pr-url: https://github.com/nodejs/node/pull/29752
957961
description: This flag was renamed from `--loader` to
@@ -965,6 +969,8 @@ changes:
965969
Specify the `module` containing exported [module customization hooks][].
966970
`module` may be any string accepted as an [`import` specifier][].
967971

972+
This feature requires `--allow-worker` if used with the [Permission Model][].
973+
968974
### `--experimental-network-inspection`
969975

970976
<!-- YAML
@@ -1072,12 +1078,19 @@ present. See the [test runner execution model][] section for more information.
10721078

10731079
<!-- YAML
10741080
added: v22.3.0
1081+
changes:
1082+
- version: v22.13.1
1083+
pr-url: https://github.com/nodejs-private/node-private/pull/629
1084+
description: Using this feature with the permission model enabled requires
1085+
passing `--allow-worker`.
10751086
-->
10761087

10771088
> Stability: 1.0 - Early development
10781089
10791090
Enable module mocking in the test runner.
10801091

1092+
This feature requires `--allow-worker` if used with the [Permission Model][].
1093+
10811094
### `--experimental-transform-types`
10821095

10831096
<!-- YAML

doc/api/module.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ added:
242242
- v20.6.0
243243
- v18.19.0
244244
changes:
245+
- version: v22.13.1
246+
pr-url: https://github.com/nodejs-private/node-private/pull/629
247+
description: Using this feature with the permission model enabled requires
248+
passing `--allow-worker`.
245249
- version:
246250
- v20.8.0
247251
- v18.19.0
@@ -270,6 +274,8 @@ changes:
270274
Register a module that exports [hooks][] that customize Node.js module
271275
resolution and loading behavior. See [Customization hooks][].
272276
277+
This feature requires `--allow-worker` if used with the [Permission Model][].
278+
273279
### `module.stripTypeScriptTypes(code[, options])`
274280
275281
<!-- YAML
@@ -1472,6 +1478,7 @@ returned object contains the following keys:
14721478
[Conditional exports]: packages.md#conditional-exports
14731479
[Customization hooks]: #customization-hooks
14741480
[ES Modules]: esm.md
1481+
[Permission Model]: permissions.md#permission-model
14751482
[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
14761483
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
14771484
[V8 code cache]: https://v8.dev/blog/code-caching-for-devs

0 commit comments

Comments
 (0)