🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
Bot releases are hidden (Show)
Published by luin about 6 years ago
Published by luin about 6 years ago
This is a major release and contain breaking changes. Please read this changelog before upgrading.
Redis#connect()
will be resolved when status is ready (#648) (f0c600b)redis.get('foo').timeout(500)
now should be failed since the nativetimeout
method. You can switch back to the BluebirdRedis.Promise
:const Redis = require('ioredis')
Redis.Promise = require('bluebird')
const redis = new Redis()
// Use bluebird
assert.equal(redis.get().constructor, require('bluebird'))
// You can change the Promise implementation at any time:
Redis.Promise = global.Promise
assert.equal(redis.get().constructor, global.Promise)
Redis#connect()
will be resolved when status is readyconnect
:const redis = new Redis({ lazyConnect: true })
redis.connect().then(() => {
assert(redis.status === 'ready')
})
Cluster#connect()
will be resolved when the connectionready
instead of connect
.new
keyword is required explicitly. Calling Redis
as a function likeis deprecated and will not be supported in the next major version, use
new Redis(/ options */)` instead.Upgrade redis-parser to v3. See release notes on redis-parser repo for details.
Redis()
in favor of new Redis()
(8e7c6f1)Redis#connect()
will be resolved when status is ready (#648) (f0c600b)Redis#connect()
will be resolved when status is readyconnect
:const redis = new Redis({ lazyConnect: true })
redis.connect().then(() => {
assert(redis.status === 'ready')
})
Cluster#connect()
will be resolved when the connectionready
instead of connect
.new
keyword is required explicitly. Calling Redis
as a function likeis deprecated and will not be supported in the next major version, use
new Redis(/ options */)` instead.redis.get('foo').timeout(500)
now should be failed since the nativetimeout
method. You can switch back to the BluebirdRedis.Promise
:const Redis = require('ioredis')
Redis.Promise = require('bluebird')
const redis = new Redis()
// Use bluebird
assert.equal(redis.get().constructor, require('bluebird'))
// You can change the Promise implementation at any time:
Redis.Promise = global.Promise
assert.equal(redis.get().constructor, global.Promise)
Published by luin almost 7 years ago
Upgrade the debug module: In order to close a low-severity ReDoS vulnerability, the debug
module should be updated to at least v2.6.9
Published by luin about 7 years ago
We mistakenly used Object.assign
to replace lodash.assign
in v3.1.3, which is not supported
by the old Node.js version (0.10.x). This change was a BC change and shouldn't happen without changing
the major version, so we added lodash.assign
back.
We apologize for any inconvenience.
❤️
Published by luin over 7 years ago
In this version, we added Node.js v8 into our test matrix on Travis CI.
Published by luin over 7 years ago
Published by luin over 7 years ago
Published by luin over 7 years ago
Published by luin over 7 years ago
This is a performance-focused release. We finially switch to the new version of JavaScript parser and drop the support for hiredis (Thanks to the lovely community!).
Also, we switch to denque to improve the queueing performance.
Let us know if there's any issue when using this pre-release.