You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Remove support for 0.10
This commit is contained in:
committed by
Ruben Bridgewater
parent
2f6c421006
commit
6589f61421
@@ -9,7 +9,6 @@ addons:
|
||||
packages:
|
||||
- g++-4.8
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "4"
|
||||
- "6"
|
||||
|
@@ -3,10 +3,9 @@
|
||||
# Test against these versions of Node.js.
|
||||
environment:
|
||||
matrix:
|
||||
- nodejs_version: "0.10"
|
||||
- nodejs_version: "0.12"
|
||||
- nodejs_version: "4"
|
||||
- nodejs_version: "6"
|
||||
- nodejs_version: "7"
|
||||
|
||||
pull_requests:
|
||||
do_not_increment_build_number: true
|
||||
|
9
index.js
9
index.js
@@ -19,11 +19,6 @@ var SUBSCRIBE_COMMANDS = {
|
||||
punsubscribe: true
|
||||
};
|
||||
|
||||
// Newer Node.js versions > 0.10 return the EventEmitter right away and using .EventEmitter was deprecated
|
||||
if (typeof EventEmitter !== 'function') {
|
||||
EventEmitter = EventEmitter.EventEmitter;
|
||||
}
|
||||
|
||||
function noop () {}
|
||||
|
||||
function handle_detect_buffers_reply (reply, command, buffer_args) {
|
||||
@@ -419,9 +414,7 @@ RedisClient.prototype.on_ready = function () {
|
||||
|
||||
this.cork = function () {
|
||||
self.pipeline = true;
|
||||
if (self.stream.cork) {
|
||||
self.stream.cork();
|
||||
}
|
||||
};
|
||||
this.uncork = function () {
|
||||
if (self.fire_strings) {
|
||||
@@ -431,10 +424,8 @@ RedisClient.prototype.on_ready = function () {
|
||||
}
|
||||
self.pipeline = false;
|
||||
self.fire_strings = true;
|
||||
if (self.stream.uncork) {
|
||||
// TODO: Consider using next tick here. See https://github.com/NodeRedis/node_redis/issues/1033
|
||||
self.stream.uncork();
|
||||
}
|
||||
};
|
||||
|
||||
// Restore modal commands from previous connection. The order of the commands is important
|
||||
|
@@ -31,7 +31,7 @@
|
||||
"redis-parser": "^2.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
"node": ">=0.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bluebird": "^3.0.2",
|
||||
|
Reference in New Issue
Block a user