diff --git a/.travis.yml b/.travis.yml index 01987d4..a187c74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ sudo: false language: node_js node_js: - - "5.2" - - "4.2" - - "0.12" - - "0.10" -# - "0.8" -# - "0.6" + - "stable" + - "10" + - "8" + - "6" diff --git a/lib/lazystream.js b/lib/lazystream.js index d9f6170..e4c0c62 100644 --- a/lib/lazystream.js +++ b/lib/lazystream.js @@ -1,5 +1,5 @@ var util = require('util'); -var PassThrough = require('readable-stream/passthrough'); +var {PassThrough} = require('readable-stream'); module.exports = { Readable: Readable, @@ -51,4 +51,3 @@ function Writable(fn, options) { this.emit('writable'); } - diff --git a/package.json b/package.json index a31a48c..a8c004c 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,13 @@ "license": "MIT", "main": "lib/lazystream.js", "engines": { - "node": ">= 0.6.3" + "node": ">= 6" }, "scripts": { "test": "nodeunit test/readable_test.js test/writable_test.js test/pipe_test.js test/fs_test.js" }, "dependencies": { - "readable-stream": "^2.0.5" + "readable-stream": "^3.2.0" }, "devDependencies": { "nodeunit": "^0.9.1" diff --git a/test/helper.js b/test/helper.js index 9d41191..4e19ac7 100644 --- a/test/helper.js +++ b/test/helper.js @@ -1,6 +1,8 @@ -var _Readable = require('readable-stream/readable'); -var _Writable = require('readable-stream/writable'); +var { + Readable: _Readable, + Writable: _Writable +} = require('readable-stream'); var util = require('util'); module.exports = { @@ -36,4 +38,3 @@ DummyWritable.prototype._write = function _write(chunk, encoding, callback) { this.strings.push(chunk.toString()); if (callback) callback(); }; -