Skip to content

Commit 300f5ce

Browse files
HackzzilaBridgeAR
authored andcommitted
doc: deprecate top-level this
PR-URL: #16878 Fixes: #9623 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 67a4ce1 commit 300f5ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/deprecations.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,15 @@ Type: Runtime
831831
832832
The [`crypto.DEFAULT_ENCODING`][] property is deprecated.
833833
834+
<a id="DEP00XX"></a>
835+
### DEP00XX: Top-level `this` bound to `module.exports`
836+
837+
Type: Documentation-only
838+
839+
Assigning properties to the top-level `this` as an alternative
840+
to `module.exports` is deprecated. Developers should use `exports`
841+
or `module.exports` instead.
842+
834843
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
835844
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
836845
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array

0 commit comments

Comments
 (0)