@@ -9,11 +9,6 @@ var async = require('async');
99var fs = require ( 'fs' ) ;
1010var util = require ( './util' ) ;
1111
12- // built-in plugins
13- var pjson = require ( 'archiver-json' ) ;
14- var ptar = require ( 'archiver-tar' ) ;
15- var pzip = require ( 'archiver-zip' ) ;
16-
1712var inherits = require ( 'util' ) . inherits ;
1813var Transform = require ( 'readable-stream' ) . Transform ;
1914
@@ -54,16 +49,6 @@ var Archiver = module.exports = function(format, options) {
5449 } ;
5550
5651 this . _streams = [ ] ;
57-
58- if ( format === 'zip' ) {
59- // this.use(pzip());
60- } else if ( format === 'tar' ) {
61- // this.use(ptar());
62- } else if ( format === 'json' ) {
63- this . use ( pjson ( ) ) ;
64- } else {
65- this . emit ( error , new Error ( 'no format plugin' ) ) ;
66- }
6752} ;
6853
6954inherits ( Archiver , Transform ) ;
@@ -514,7 +499,7 @@ Archiver.prototype.finalize = function() {
514499 return this ;
515500} ;
516501
517- // needs to be deprecated
502+ // needs to be deprecated in 0.16/removed in 0.17
518503Archiver . prototype . setFormat = function ( format ) {
519504 if ( this . _format ) {
520505 this . emit ( 'error' , new Error ( 'format: archive format already set' ) ) ;
@@ -526,7 +511,7 @@ Archiver.prototype.setFormat = function(format) {
526511 return this ;
527512} ;
528513
529- // needs to be deprecated
514+ // needs to be deprecated in 0.16/removed in 0.17
530515Archiver . prototype . setModule = function ( module ) {
531516 if ( this . _state . aborted ) {
532517 this . emit ( 'error' , new Error ( 'module: archive was aborted' ) ) ;
0 commit comments