@@ -300,7 +300,7 @@ ignored by the decompression classes.
300
300
* ` level ` {integer} (compression only)
301
301
* ` memLevel ` {integer} (compression only)
302
302
* ` strategy ` {integer} (compression only)
303
- * ` dictionary ` {Buffer|Uint8Array } (deflate/inflate only, empty dictionary by
303
+ * ` dictionary ` {Buffer|TypedArray|DataView } (deflate/inflate only, empty dictionary by
304
304
default)
305
305
306
306
See the description of ` deflateInit2 ` and ` inflateInit2 ` at
@@ -477,9 +477,9 @@ Returns a new [Unzip][] object with an [options][].
477
477
478
478
<!-- type=misc-->
479
479
480
- All of these take a [ Buffer] [ ] , [ Uint8Array ] [ ] , or string as the first
481
- argument, an optional second argument to supply options to the ` zlib ` classes
482
- and will call the supplied callback with ` callback(error, result) ` .
480
+ All of these take a [ ` Buffer ` ] [ ] , [ ` TypedArray ` ] [ ] , [ ` DataView ` ] [ ] , or string as
481
+ the first argument, an optional second argument to supply options to the ` zlib `
482
+ classes and will call the supplied callback with ` callback(error, result) ` .
483
483
484
484
Every method has a ` *Sync ` counterpart, which accept the same arguments, but
485
485
without a callback.
@@ -488,6 +488,9 @@ without a callback.
488
488
<!-- YAML
489
489
added: v0.6.0
490
490
changes:
491
+ - version: REPLACEME
492
+ pr-url: REPLACEME
493
+ description: The `buffer` parameter can be any TypedArray or DataView now.
491
494
- version: REPLACEME
492
495
pr-url: https://github.com/nodejs/node/pull/12001
493
496
description: The `buffer` parameter can be an Uint8Array now.
@@ -496,19 +499,25 @@ changes:
496
499
<!-- YAML
497
500
added: v0.11.12
498
501
changes:
502
+ - version: REPLACEME
503
+ pr-url: REPLACEME
504
+ description: The `buffer` parameter can be any TypedArray or DataView now.
499
505
- version: REPLACEME
500
506
pr-url: https://github.com/nodejs/node/pull/12001
501
507
description: The `buffer` parameter can be an Uint8Array now.
502
508
-->
503
509
504
- - ` buffer ` {Buffer|Uint8Array |string}
510
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
505
511
506
512
Compress a chunk of data with [ Deflate] [ ] .
507
513
508
514
### zlib.deflateRaw(buffer[ , options] , callback)
509
515
<!-- YAML
510
516
added: v0.6.0
511
517
changes:
518
+ - version: REPLACEME
519
+ pr-url: REPLACEME
520
+ description: The `buffer` parameter can be any TypedArray or DataView now.
512
521
- version: REPLACEME
513
522
pr-url: https://github.com/nodejs/node/pull/12001
514
523
description: The `buffer` parameter can be an Uint8Array now.
@@ -517,19 +526,25 @@ changes:
517
526
<!-- YAML
518
527
added: v0.11.12
519
528
changes:
529
+ - version: REPLACEME
530
+ pr-url: REPLACEME
531
+ description: The `buffer` parameter can be any TypedArray or DataView now.
520
532
- version: REPLACEME
521
533
pr-url: https://github.com/nodejs/node/pull/12001
522
534
description: The `buffer` parameter can be an Uint8Array now.
523
535
-->
524
536
525
- - ` buffer ` {Buffer|Uint8Array |string}
537
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
526
538
527
539
Compress a chunk of data with [ DeflateRaw] [ ] .
528
540
529
541
### zlib.gunzip(buffer[ , options] , callback)
530
542
<!-- YAML
531
543
added: v0.6.0
532
544
changes:
545
+ - version: REPLACEME
546
+ pr-url: REPLACEME
547
+ description: The `buffer` parameter can be any TypedArray or DataView now.
533
548
- version: REPLACEME
534
549
pr-url: https://github.com/nodejs/node/pull/12001
535
550
description: The `buffer` parameter can be an Uint8Array now.
@@ -538,19 +553,25 @@ changes:
538
553
<!-- YAML
539
554
added: v0.11.12
540
555
changes:
556
+ - version: REPLACEME
557
+ pr-url: REPLACEME
558
+ description: The `buffer` parameter can be any TypedArray or DataView now.
541
559
- version: REPLACEME
542
560
pr-url: https://github.com/nodejs/node/pull/12001
543
561
description: The `buffer` parameter can be an Uint8Array now.
544
562
-->
545
563
546
- - ` buffer ` {Buffer|Uint8Array |string}
564
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
547
565
548
566
Decompress a chunk of data with [ Gunzip] [ ] .
549
567
550
568
### zlib.gzip(buffer[ , options] , callback)
551
569
<!-- YAML
552
570
added: v0.6.0
553
571
changes:
572
+ - version: REPLACEME
573
+ pr-url: REPLACEME
574
+ description: The `buffer` parameter can be any TypedArray or DataView now.
554
575
- version: REPLACEME
555
576
pr-url: https://github.com/nodejs/node/pull/12001
556
577
description: The `buffer` parameter can be an Uint8Array now.
@@ -559,19 +580,25 @@ changes:
559
580
<!-- YAML
560
581
added: v0.11.12
561
582
changes:
583
+ - version: REPLACEME
584
+ pr-url: REPLACEME
585
+ description: The `buffer` parameter can be any TypedArray or DataView now.
562
586
- version: REPLACEME
563
587
pr-url: https://github.com/nodejs/node/pull/12001
564
588
description: The `buffer` parameter can be an Uint8Array now.
565
589
-->
566
590
567
- - ` buffer ` {Buffer|Uint8Array |string}
591
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
568
592
569
593
Compress a chunk of data with [ Gzip] [ ] .
570
594
571
595
### zlib.inflate(buffer[ , options] , callback)
572
596
<!-- YAML
573
597
added: v0.6.0
574
598
changes:
599
+ - version: REPLACEME
600
+ pr-url: REPLACEME
601
+ description: The `buffer` parameter can be any TypedArray or DataView now.
575
602
- version: REPLACEME
576
603
pr-url: https://github.com/nodejs/node/pull/12001
577
604
description: The `buffer` parameter can be an Uint8Array now.
@@ -580,19 +607,25 @@ changes:
580
607
<!-- YAML
581
608
added: v0.11.12
582
609
changes:
610
+ - version: REPLACEME
611
+ pr-url: REPLACEME
612
+ description: The `buffer` parameter can be any TypedArray or DataView now.
583
613
- version: REPLACEME
584
614
pr-url: https://github.com/nodejs/node/pull/12001
585
615
description: The `buffer` parameter can be an Uint8Array now.
586
616
-->
587
617
588
- - ` buffer ` {Buffer|Uint8Array |string}
618
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
589
619
590
620
Decompress a chunk of data with [ Inflate] [ ] .
591
621
592
622
### zlib.inflateRaw(buffer[ , options] , callback)
593
623
<!-- YAML
594
624
added: v0.6.0
595
625
changes:
626
+ - version: REPLACEME
627
+ pr-url: REPLACEME
628
+ description: The `buffer` parameter can be any TypedArray or DataView now.
596
629
- version: REPLACEME
597
630
pr-url: https://github.com/nodejs/node/pull/12001
598
631
description: The `buffer` parameter can be an Uint8Array now.
@@ -601,19 +634,25 @@ changes:
601
634
<!-- YAML
602
635
added: v0.11.12
603
636
changes:
637
+ - version: REPLACEME
638
+ pr-url: REPLACEME
639
+ description: The `buffer` parameter can be any TypedArray or DataView now.
604
640
- version: REPLACEME
605
641
pr-url: https://github.com/nodejs/node/pull/12001
606
642
description: The `buffer` parameter can be an Uint8Array now.
607
643
-->
608
644
609
- - ` buffer ` {Buffer|Uint8Array |string}
645
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
610
646
611
647
Decompress a chunk of data with [ InflateRaw] [ ] .
612
648
613
649
### zlib.unzip(buffer[ , options] , callback)
614
650
<!-- YAML
615
651
added: v0.6.0
616
652
changes:
653
+ - version: REPLACEME
654
+ pr-url: REPLACEME
655
+ description: The `buffer` parameter can be any TypedArray or DataView now.
617
656
- version: REPLACEME
618
657
pr-url: https://github.com/nodejs/node/pull/12001
619
658
description: The `buffer` parameter can be an Uint8Array now.
@@ -622,12 +661,15 @@ changes:
622
661
<!-- YAML
623
662
added: v0.11.12
624
663
changes:
664
+ - version: REPLACEME
665
+ pr-url: REPLACEME
666
+ description: The `buffer` parameter can be any TypedArray or DataView now.
625
667
- version: REPLACEME
626
668
pr-url: https://github.com/nodejs/node/pull/12001
627
669
description: The `buffer` parameter can be an Uint8Array now.
628
670
-->
629
671
630
- - ` buffer ` {Buffer|Uint8Array |string}
672
+ - ` buffer ` {Buffer|TypedArray|DataView |string}
631
673
632
674
Decompress a chunk of data with [ Unzip] [ ] .
633
675
@@ -644,5 +686,6 @@ Decompress a chunk of data with [Unzip][].
644
686
[ InflateRaw ] : #zlib_class_zlib_inflateraw
645
687
[ Unzip ] : #zlib_class_zlib_unzip
646
688
[ `.flush()` ] : #zlib_zlib_flush_kind_callback
647
- [ Buffer ] : buffer.html
648
- [ Uint8Array ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
689
+ [ `Buffer` ] : buffer.html#buffer_class_buffer
690
+ [ `DataView` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
691
+ [ `TypedArray` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
0 commit comments