Skip to content

Commit

Permalink
Remove readable-stream - see #729
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Nov 24, 2024
1 parent cddd4a8 commit 3cc6c42
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 68 deletions.
7 changes: 2 additions & 5 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ var frame = require('./frame');
var HEARTBEAT = frame.HEARTBEAT;
var Mux = require('./mux').Mux;

var Duplex =
require('stream').Duplex ||
require('readable-stream/duplex');
var Duplex = require('stream').Duplex;
var EventEmitter = require('events');
var Heart = require('./heartbeat').Heart;

Expand All @@ -22,8 +20,7 @@ var inspect = require('./format').inspect;

var BitSet = require('./bitset').BitSet;
var fmt = require('util').format;
var PassThrough = require('stream').PassThrough ||
require('readable-stream/passthrough');
var PassThrough = require('stream').PassThrough;
var IllegalOperationError = require('./error').IllegalOperationError;
var stackCapture = require('./error').stackCapture;

Expand Down
59 changes: 4 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"dependencies": {
"@acuminous/bitsyntax": "^0.1.2",
"buffer-more-ints": "~1.0.0",
"readable-stream": "1.x >=1.1.9",
"url-parse": "~1.5.10"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions test/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ var connection = require('../lib/connection');
var Frames = connection.Connection;
var HEARTBEAT = require('../lib/frame').HEARTBEAT;
var Stream = require('stream');
var PassThrough = Stream.PassThrough ||
require('readable-stream/passthrough');
var PassThrough = Stream.PassThrough;

var defs = require('../lib/defs');

Expand Down
3 changes: 1 addition & 2 deletions test/mux.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

var assert = require('assert');
var Mux = require('../lib/mux').Mux;
var PassThrough = require('stream').PassThrough ||
require('readable-stream/passthrough');
var PassThrough = require('stream').PassThrough;

var latch = require('./util').latch;
var schedule = require('./util').schedule;
Expand Down
4 changes: 1 addition & 3 deletions test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

var crypto = require('crypto');
var Connection = require('../lib/connection').Connection;
var PassThrough =
require('stream').PassThrough ||
require('readable-stream/passthrough');
var PassThrough = require('stream').PassThrough;
var defs = require('../lib/defs');
var assert = require('assert');

Expand Down

0 comments on commit 3cc6c42

Please sign in to comment.