@@ -286,6 +286,9 @@ Compression strategy.
286
286
<!-- YAML
287
287
added: v0.11.1
288
288
changes:
289
+ - version: REPLACEME
290
+ pr-url: https://github.com/nodejs/node/pull/16042
291
+ description: The `dictionary` option can be an ArrayBuffer.
289
292
- version: v8.0.0
290
293
pr-url: https://github.com/nodejs/node/pull/12001
291
294
description: The `dictionary` option can be an Uint8Array now.
@@ -308,8 +311,8 @@ ignored by the decompression classes.
308
311
* ` level ` {integer} (compression only)
309
312
* ` memLevel ` {integer} (compression only)
310
313
* ` strategy ` {integer} (compression only)
311
- * ` dictionary ` {Buffer|TypedArray|DataView} (deflate/inflate only, empty dictionary by
312
- default)
314
+ * ` dictionary ` {Buffer|TypedArray|DataView|ArrayBuffer } (deflate/inflate only,
315
+ empty dictionary by default)
313
316
* ` info ` {boolean} (If ` true ` , returns an object with ` buffer ` and ` engine ` )
314
317
315
318
See the description of ` deflateInit2 ` and ` inflateInit2 ` at
@@ -511,9 +514,10 @@ Creates and returns a new [Unzip][] object with the given [options][].
511
514
512
515
<!-- type=misc-->
513
516
514
- All of these take a [ ` Buffer ` ] [ ] , [ ` TypedArray ` ] [ ] , [ ` DataView ` ] [ ] , or string as
515
- the first argument, an optional second argument to supply options to the ` zlib `
516
- classes and will call the supplied callback with ` callback(error, result) ` .
517
+ All of these take a [ ` Buffer ` ] [ ] , [ ` TypedArray ` ] [ ] , [ ` DataView ` ] [ ] ,
518
+ [ ` ArrayBuffer ` ] [ ] or string as the first argument, an optional second argument
519
+ to supply options to the ` zlib ` classes and will call the supplied callback
520
+ with ` callback(error, result) ` .
517
521
518
522
Every method has a ` *Sync ` counterpart, which accept the same arguments, but
519
523
without a callback.
@@ -522,6 +526,9 @@ without a callback.
522
526
<!-- YAML
523
527
added: v0.6.0
524
528
changes:
529
+ - version: REPLACEME
530
+ pr-url: https://github.com/nodejs/node/pull/16042
531
+ description: The `buffer` parameter can be an ArrayBuffer.
525
532
- version: v8.0.0
526
533
pr-url: https://github.com/nodejs/node/pull/12223
527
534
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -533,6 +540,9 @@ changes:
533
540
<!-- YAML
534
541
added: v0.11.12
535
542
changes:
543
+ - version: REPLACEME
544
+ pr-url: https://github.com/nodejs/node/pull/16042
545
+ description: The `buffer` parameter can be an ArrayBuffer.
536
546
- version: v8.0.0
537
547
pr-url: https://github.com/nodejs/node/pull/12223
538
548
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -541,7 +551,7 @@ changes:
541
551
description: The `buffer` parameter can be an Uint8Array now.
542
552
-->
543
553
544
- - ` buffer ` {Buffer|TypedArray|DataView|string}
554
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
545
555
546
556
Compress a chunk of data with [ Deflate] [ ] .
547
557
@@ -560,6 +570,9 @@ changes:
560
570
<!-- YAML
561
571
added: v0.11.12
562
572
changes:
573
+ - version: REPLACEME
574
+ pr-url: https://github.com/nodejs/node/pull/16042
575
+ description: The `buffer` parameter can be an ArrayBuffer.
563
576
- version: v8.0.0
564
577
pr-url: https://github.com/nodejs/node/pull/12223
565
578
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -568,14 +581,17 @@ changes:
568
581
description: The `buffer` parameter can be an Uint8Array now.
569
582
-->
570
583
571
- - ` buffer ` {Buffer|TypedArray|DataView|string}
584
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
572
585
573
586
Compress a chunk of data with [ DeflateRaw] [ ] .
574
587
575
588
### zlib.gunzip(buffer[ , options] , callback)
576
589
<!-- YAML
577
590
added: v0.6.0
578
591
changes:
592
+ - version: REPLACEME
593
+ pr-url: https://github.com/nodejs/node/pull/16042
594
+ description: The `buffer` parameter can be an ArrayBuffer.
579
595
- version: v8.0.0
580
596
pr-url: https://github.com/nodejs/node/pull/12223
581
597
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -587,6 +603,9 @@ changes:
587
603
<!-- YAML
588
604
added: v0.11.12
589
605
changes:
606
+ - version: REPLACEME
607
+ pr-url: https://github.com/nodejs/node/pull/16042
608
+ description: The `buffer` parameter can be an ArrayBuffer.
590
609
- version: v8.0.0
591
610
pr-url: https://github.com/nodejs/node/pull/12223
592
611
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -595,14 +614,17 @@ changes:
595
614
description: The `buffer` parameter can be an Uint8Array now.
596
615
-->
597
616
598
- - ` buffer ` {Buffer|TypedArray|DataView|string}
617
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
599
618
600
619
Decompress a chunk of data with [ Gunzip] [ ] .
601
620
602
621
### zlib.gzip(buffer[ , options] , callback)
603
622
<!-- YAML
604
623
added: v0.6.0
605
624
changes:
625
+ - version: REPLACEME
626
+ pr-url: https://github.com/nodejs/node/pull/16042
627
+ description: The `buffer` parameter can be an ArrayBuffer.
606
628
- version: v8.0.0
607
629
pr-url: https://github.com/nodejs/node/pull/12223
608
630
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -614,6 +636,9 @@ changes:
614
636
<!-- YAML
615
637
added: v0.11.12
616
638
changes:
639
+ - version: REPLACEME
640
+ pr-url: https://github.com/nodejs/node/pull/16042
641
+ description: The `buffer` parameter can be an ArrayBuffer.
617
642
- version: v8.0.0
618
643
pr-url: https://github.com/nodejs/node/pull/12223
619
644
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -622,14 +647,17 @@ changes:
622
647
description: The `buffer` parameter can be an Uint8Array now.
623
648
-->
624
649
625
- - ` buffer ` {Buffer|TypedArray|DataView|string}
650
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
626
651
627
652
Compress a chunk of data with [ Gzip] [ ] .
628
653
629
654
### zlib.inflate(buffer[ , options] , callback)
630
655
<!-- YAML
631
656
added: v0.6.0
632
657
changes:
658
+ - version: REPLACEME
659
+ pr-url: https://github.com/nodejs/node/pull/16042
660
+ description: The `buffer` parameter can be an ArrayBuffer.
633
661
- version: v8.0.0
634
662
pr-url: https://github.com/nodejs/node/pull/12223
635
663
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -641,6 +669,9 @@ changes:
641
669
<!-- YAML
642
670
added: v0.11.12
643
671
changes:
672
+ - version: REPLACEME
673
+ pr-url: https://github.com/nodejs/node/pull/16042
674
+ description: The `buffer` parameter can be an ArrayBuffer.
644
675
- version: v8.0.0
645
676
pr-url: https://github.com/nodejs/node/pull/12223
646
677
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -649,14 +680,17 @@ changes:
649
680
description: The `buffer` parameter can be an Uint8Array now.
650
681
-->
651
682
652
- - ` buffer ` {Buffer|TypedArray|DataView|string}
683
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
653
684
654
685
Decompress a chunk of data with [ Inflate] [ ] .
655
686
656
687
### zlib.inflateRaw(buffer[ , options] , callback)
657
688
<!-- YAML
658
689
added: v0.6.0
659
690
changes:
691
+ - version: REPLACEME
692
+ pr-url: https://github.com/nodejs/node/pull/16042
693
+ description: The `buffer` parameter can be an ArrayBuffer.
660
694
- version: v8.0.0
661
695
pr-url: https://github.com/nodejs/node/pull/12223
662
696
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -668,6 +702,9 @@ changes:
668
702
<!-- YAML
669
703
added: v0.11.12
670
704
changes:
705
+ - version: REPLACEME
706
+ pr-url: https://github.com/nodejs/node/pull/16042
707
+ description: The `buffer` parameter can be an ArrayBuffer.
671
708
- version: v8.0.0
672
709
pr-url: https://github.com/nodejs/node/pull/12223
673
710
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -676,14 +713,17 @@ changes:
676
713
description: The `buffer` parameter can be an Uint8Array now.
677
714
-->
678
715
679
- - ` buffer ` {Buffer|TypedArray|DataView|string}
716
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
680
717
681
718
Decompress a chunk of data with [ InflateRaw] [ ] .
682
719
683
720
### zlib.unzip(buffer[ , options] , callback)
684
721
<!-- YAML
685
722
added: v0.6.0
686
723
changes:
724
+ - version: REPLACEME
725
+ pr-url: https://github.com/nodejs/node/pull/16042
726
+ description: The `buffer` parameter can be an ArrayBuffer.
687
727
- version: v8.0.0
688
728
pr-url: https://github.com/nodejs/node/pull/12223
689
729
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -695,6 +735,9 @@ changes:
695
735
<!-- YAML
696
736
added: v0.11.12
697
737
changes:
738
+ - version: REPLACEME
739
+ pr-url: https://github.com/nodejs/node/pull/16042
740
+ description: The `buffer` parameter can be an ArrayBuffer.
698
741
- version: v8.0.0
699
742
pr-url: https://github.com/nodejs/node/pull/12223
700
743
description: The `buffer` parameter can be any TypedArray or DataView now.
@@ -703,12 +746,13 @@ changes:
703
746
description: The `buffer` parameter can be an Uint8Array now.
704
747
-->
705
748
706
- - ` buffer ` {Buffer|TypedArray|DataView|string}
749
+ - ` buffer ` {Buffer|TypedArray|DataView|ArrayBuffer| string}
707
750
708
751
Decompress a chunk of data with [ Unzip] [ ] .
709
752
710
753
[ `.flush()` ] : #zlib_zlib_flush_kind_callback
711
754
[ `Accept-Encoding` ] : https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
755
+ [ `ArrayBuffer` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
712
756
[ `Buffer` ] : buffer.html#buffer_class_buffer
713
757
[ `Content-Encoding` ] : https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
714
758
[ `DataView` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
0 commit comments