Skip to content

Commit

Permalink
Remove readable-stream and safe-buffer (#2640)
Browse files Browse the repository at this point in the history
* Add json support to the query builder for mysql

refs #1036

Based on #1902

* Clarify supported version

* Use native Buffer and Stream implementations
  • Loading branch information
kibertoad authored and elhigu committed Jun 1, 2018
1 parent 3e95405 commit d9cd54b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -15,12 +15,10 @@
"inherits": "~2.0.3",
"interpret": "^1.1.0",
"liftoff": "2.5.0",
"lodash": "^4.17.5",
"lodash": "^4.17.10",
"minimist": "1.2.0",
"mkdirp": "^0.5.1",
"pg-connection-string": "2.0.0",
"readable-stream": "2.3.6",
"safe-buffer": "^5.1.1",
"tarn": "^1.1.4",
"tildify": "1.2.0",
"uuid": "^3.2.1",
Expand Down
1 change: 0 additions & 1 deletion src/dialects/oracledb/index.js
Expand Up @@ -12,7 +12,6 @@ const stream = require('stream');
const Transaction = require('./transaction');
const Client_Oracle = require('../oracle');
const Oracle_Formatter = require('../oracle/formatter');
const Buffer = require('safe-buffer').Buffer;

function Client_Oracledb() {
Client_Oracle.apply(this, arguments);
Expand Down
2 changes: 1 addition & 1 deletion src/runner.js
Expand Up @@ -75,7 +75,7 @@ assign(Runner.prototype, {
const hasHandler = typeof handler === 'function';

// Lazy-load the "PassThrough" dependency.
PassThrough = PassThrough || require('readable-stream').PassThrough;
PassThrough = PassThrough || require('stream').PassThrough;

const runner = this;
const stream = new PassThrough({objectMode: true});
Expand Down
2 changes: 1 addition & 1 deletion test/tape/stream.js
@@ -1,7 +1,7 @@
'use strict';

var tape = require('tape')
var stream = require('readable-stream')
var stream = require('stream')

module.exports = function(knex) {

Expand Down

0 comments on commit d9cd54b

Please sign in to comment.