Skip to content
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
20 changes: 16 additions & 4 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2719,13 +2719,25 @@ native modules. It was incomplete so far and instead it's better to rely upon
`require('module').builtinModules`.

<a id="DEP0143"></a>
### DEP0143: `module.parent`
### DEP0143: `Transform._transformState`
<!-- YAML
changes:
- version: v14.5.0
pr-url: https://github.com/nodejs/node/pull/33126
description: Runtime deprecation.
-->
Type: Runtime
`Transform._transformState` will be removed in future versions where it is
no longer required due to simplification of the implementation.

<a id="DEP0144"></a>
### DEP0144: `module.parent`
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/32217
description: Documentation-only deprecation.
-->

Type: Documentation-only (supports [`--pending-deprecation`][])

Expand All @@ -2751,12 +2763,12 @@ const moduleParents = Object.values(require.cache)
.filter((m) => m.children.includes(module));
```

<a id="DEP0XXX"></a>
### DEP0XXX: `socket.bufferSize`
<a id="DEP0145"></a>
### DEP0145: `socket.bufferSize`
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/REPLACEME
pr-url: https://github.com/nodejs/node/pull/34088
description: Documentation-only deprecation.
-->

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ ObjectDefineProperty(Module.prototype, 'parent', {
getModuleParent,
'module.parent is deprecated due to accuracy issues. Please use ' +
'require.main to find program entry point instead.',
'DEP0143'
'DEP0144'
) : getModuleParent
});

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-module-parent-deprecation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ common.expectWarning(
'DeprecationWarning',
'module.parent is deprecated due to accuracy issues. Please use ' +
'require.main to find program entry point instead.',
'DEP0143'
'DEP0144'
);

assert.strictEqual(module.parent, null);