GeezerVison is showing github.com — zlib: deprecate instantiating classes without new · nodejs/node@8c4c85c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/deprecations.md +15Lines changed: 15 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3655,6 +3655,21 @@ switch to its new provider model. The `clientCertEngine` option for |
3655 | 3655 | the `privateKeyEngine` and `privateKeyIdentifier` for [`tls.createSecureContext()`][]; |
3656 | 3656 | and [`crypto.setEngine()`][] all depend on this functionality from OpenSSL. |
3657 | 3657 |
|
| 3658 | +### DEP0184: Instantiating `node:zlib` classes without `new` |
| 3659 | + |
| 3660 | +<!-- YAML |
| 3661 | +changes: |
| 3662 | + - version: REPLACEME |
| 3663 | + pr-url: https://github.com/nodejs/node/pull/54708 |
| 3664 | + description: Documentation-only deprecation. |
| 3665 | +--> |
| 3666 | + |
| 3667 | +Type: Documentation-only |
| 3668 | + |
| 3669 | +Instantiating classes without the `new` qualifier exported by the `node:zlib` module is deprecated. |
| 3670 | +It is recommended to use the `new` qualifier instead. This applies to all Zlib classes, such as `Deflate`, |
| 3671 | +`DeflateRaw`, `Gunzip`, `Inflate`, `InflateRaw`, `Unzip`, and `Zlib`. |
| 3672 | + |
3658 | 3673 | [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf |
3659 | 3674 | [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 |
3660 | 3675 | [RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4 |
|