A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/32efb63242 below:

deprecate instantiating classes without new · nodejs/node@32efb63 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+15

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+15

-0

lines changed Original file line number Diff line number Diff line change

@@ -3940,6 +3940,21 @@ Type: Documentation-only

3940 3940

The support for priority signaling has been deprecated in the [RFC 9113][], and

3941 3941

will be removed in future versions of Node.js.

3942 3942 3943 +

### DEP0195: Instantiating `node:http` classes without `new`

3944 + 3945 +

<!-- YAML

3946 +

changes:

3947 +

- version: REPLACEME

3948 +

pr-url: https://github.com/nodejs/node/pull/58518

3949 +

description: Documentation-only deprecation.

3950 +

-->

3951 + 3952 +

Type: Documentation-only

3953 + 3954 +

Instantiating classes without the `new` qualifier exported by the `node:http` module is deprecated.

3955 +

It is recommended to use the `new` qualifier instead. This applies to all http classes, such as

3956 +

`OutgoingMessage`, `IncomingMessage`, `ServerResponse` and `ClientRequest`.

3957 + 3943 3958

[DEP0142]: #dep0142-repl_builtinlibs

3944 3959

[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf

3945 3960

[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4