Commit 920a4fe
committed
zlib: convert classes to modern syntax and eol DEP0184
Convert ZlibBase, Zlib, and the remaining zlib/Brotli stream constructors
to ES6 class syntax. Calling these constructors without `new` is no longer
supported (DEP0184 End-of-Life); use `new` or the create* factory helpers
instead.
This is a semver-major change: code that relied on `zlib.Gzip()` (without
`new`) will now throw TypeError. The createGzip/createDeflate/... helpers
and all documented `new`-based usage remain unchanged. The wire behavior
and public options are preserved.
Refs: #55718
Refs: #54708
Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com>1 parent f9e2fe0 commit 920a4fe
7 files changed
Lines changed: 345 additions & 373 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4126 | 4126 | | |
4127 | 4127 | | |
4128 | 4128 | | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
4129 | 4132 | | |
4130 | 4133 | | |
4131 | 4134 | | |
| |||
4136 | 4139 | | |
4137 | 4140 | | |
4138 | 4141 | | |
4139 | | - | |
| 4142 | + | |
4140 | 4143 | | |
4141 | | - | |
4142 | | - | |
4143 | | - | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
4144 | 4148 | | |
4145 | 4149 | | |
4146 | 4150 | | |
| |||
0 commit comments