🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
Bot releases are visible (Hide)
Published by ioredis-robot almost 6 years ago
Published by ioredis-robot about 6 years ago
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.
❤️