@@ -2154,7 +2154,8 @@ added: v0.5.8
21542154-->
21552155
21562156* ` kind ` ** Default:** ` zlib.constants.Z_FULL_FLUSH ` for zlib-based streams,
2157- ` zlib.constants.BROTLI_OPERATION_FLUSH ` for Brotli-based streams.
2157+ ` zlib.constants.BROTLI_OPERATION_FLUSH ` for Brotli-based streams, and
2158+ ` zlib.constants.ZSTD_e_flush ` for Zstd-based streams.
21582159* ` callback ` {Function}
21592160
21602161Flush pending data. Don't call this frivolously, premature flushes negatively
@@ -2221,6 +2222,9 @@ Each Zstd-based class takes an `options` object. All options are optional.
22212222* ` finishFlush ` {integer} ** Default:** ` zlib.constants.ZSTD_e_end `
22222223* ` chunkSize ` {integer} ** Default:** ` 16 * 1024 `
22232224* ` params ` {Object} Key-value object containing indexed [ Zstd parameters] [ ] .
2225+ * ` pledgedSrcSize ` {number} Expected total size of the uncompressed input. It
2226+ must be a non-negative safe integer and must match the input size when
2227+ compression finishes. Only applicable to Zstd compressors.
22242228* ` maxOutputLength ` {integer} Limits output size when using
22252229 [ convenience methods] [ ] . ** Default:** [ ` buffer.kMaxLength ` ] [ ]
22262230* ` info ` {boolean} If ` true ` , returns an object with ` buffer ` and ` engine ` . ** Default:** ` false `
@@ -3061,6 +3065,8 @@ Compress a chunk of data with [`ZstdCompress`][].
30613065
30623066### ` zlib.zstdDecompress(buffer[, options], callback) `
30633067
3068+ > Stability: 1 - Experimental
3069+
30643070<!-- YAML
30653071added:
30663072 - v23.8.0
0 commit comments