From e890a5d5b54b86903a58a5e0de7bf25afe52b7ad Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 1 Sep 2024 19:42:25 -0400 Subject: [PATCH 1/3] zlib: deprecate instantiating classes without new --- doc/api/deprecations.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index d7a985d2edac67..59429f76934041 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3711,6 +3711,21 @@ switch to its new provider model. The `clientCertEngine` option for the `privateKeyEngine` and `privateKeyIdentifier` for [`tls.createSecureContext()`][]; and [`crypto.setEngine()`][] all depend on this functionality from OpenSSL. +### DEP0184: Zlib classes + + + +Type: Documentation-only + +Instantiating classes without the `new` qualifier exported by the `node:zlib` module is deprecated. +It is recommended to use the new qualifier instead. This applies to all Zlib classes such as `Deflate`, +`DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`. + [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 [RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4 From e14843db0eb764df4e2b543021c75bb1627510bc Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 2 Sep 2024 09:36:38 -0400 Subject: [PATCH 2/3] Update deprecations.md Co-authored-by: Aviv Keller --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 59429f76934041..62f93222a9f4fb 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3723,7 +3723,7 @@ changes: Type: Documentation-only Instantiating classes without the `new` qualifier exported by the `node:zlib` module is deprecated. -It is recommended to use the new qualifier instead. This applies to all Zlib classes such as `Deflate`, +It is recommended to use the `new` qualifier instead. This applies to all Zlib classes, such as `Deflate`, `DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`. [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf From aee33772c2a6db54dd8e4c25e4f3659365d58b7a Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 2 Sep 2024 11:45:42 -0400 Subject: [PATCH 3/3] Update deprecations.md Co-authored-by: Antoine du Hamel --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 62f93222a9f4fb..3d4f66632e4b3f 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3711,7 +3711,7 @@ switch to its new provider model. The `clientCertEngine` option for the `privateKeyEngine` and `privateKeyIdentifier` for [`tls.createSecureContext()`][]; and [`crypto.setEngine()`][] all depend on this functionality from OpenSSL. -### DEP0184: Zlib classes +### DEP0184: Instantiating `node:zlib` classes without `new`