diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fa2f52c8265c2f..f3f1f718c47132 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2612,6 +2612,9 @@ no longer required due to simplification of the implementation. ### DEP0144: `module.parent` -Type: Documentation-only (supports [`--pending-deprecation`][]) +Type: Runtime (supports [`--pending-deprecation`][]) A CommonJS module can access the first module that required it using `module.parent`. This feature is deprecated because it does not work @@ -2643,6 +2646,9 @@ const moduleParents = Object.values(require.cache) .filter((m) => m.children.includes(module)); ``` +Without `--pending-deprecation`, runtime warnings occur only when this property +is accessed from a module that have a nullish value for their `module.parent`. + ### DEP0145: `socket.bufferSize`