Skip to content

Releases: redis/ioredis

v4.2.0

17 Oct 11:59
Compare
Choose a tag to compare

4.2.0 (2018-10-17)

Features

v4.1.0

16 Oct 19:00
Compare
Choose a tag to compare

Bug Fixes

  • cluster: quit() ignores errors caused by disconnected connection (#720) (fb3eb76)
  • cluster: robust solution for pub/sub in cluster (#697) (13a5bc4), closes #696
  • cluster: stop subscriber when disconnecting (fb27b66)

Features

  • cluster: re-select subscriber when the currenct one is failed (c091f2e)

Performance Improvements

  • remove lodash deps for smaller memory footprint (80f4a45)
  • cluster: make disconnecting from cluster faster (#721) (ce46d6b)

v4.0.2

09 Oct 07:37
Compare
Choose a tag to compare

Bug Fixes

  • cluster: subscription regards password setting (47e2ab5), closes #718

Performance Improvements

  • reduce package bundle size (eb68e9a)

v4.0.1

08 Oct 05:11
Compare
Choose a tag to compare

Bug Fixes

  • cluster: robust solution for pub/sub in cluster (#697) (13a5bc4), closes #696

v4.0.0 Native Promise

14 Aug 15:51
Compare
Choose a tag to compare

This is a major release and contain breaking changes. Please read this changelog before upgrading.

Changes since 4.0.0-3:

Bug Fixes

  • port is ignored when path set to null (d40a99e), closes #668

Features

  • export Pipeline for inheritances enabling (#675) (ca58249)
  • export ScanStream at package level (#667) (5eb4198)

Changes since 3.x

Bug Fixes

  • Sentinel: unreachable errors when sentinals are healthy (7bf6fea)
  • resolve warning for Buffer() in Node.js 10 (6144c56)
  • don't add cluster.info to the failover queue before ready (491546d)
  • solves vulnerabilities dependencies (2950b79)
  • Cluster: issues when setting enableOfflineQueue to false (#649) (cfe4258)

Performance Improvements

  • upgrade redis-parser for better performance.

Features

  • use native Promise instead of Bluebird, and allow users to switch back. (da60b8b)
  • add maxRetriesPerRequest option to limit the retries attempts per command (1babc13)
  • Redis#connect() will be resolved when status is ready (#648) (f0c600b)
  • add debug details for connection pool (9ec16b6)
  • wait for ready state before resolving cluster.connect() (7517a73)

BREAKING CHANGES

  • Drop support for < node v6
  • Use native Promise instead of Bluebird. This change makes all the code that rely on the features provided by Bluebird not working
    anymore. For example, redis.get('foo').timeout(500) now should be failed since the native
    Promise doesn't support the timeout method. You can switch back to the Bluebird
    implementation by setting Redis.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 ready
    instead of connect:
const redis = new Redis({ lazyConnect: true })
redis.connect().then(() => {
  assert(redis.status === 'ready')
})
  • Cluster#connect() will be resolved when the connection
    status become ready instead of connect.
  • The maxRetriesPerRequest is set to 20 instead of null (same behavior as ioredis v3)
    by default. So when a redis server is down, pending commands won't wait forever
    until the connection become alive, instead, they only wait about 10s (depends on the
    retryStrategy option)
  • The new keyword is required explicitly. Calling Redis as a function like
    Redis(/* options /)is deprecated and will not be supported in the next major version, usenew Redis(/ options */)` instead.

v4.0.0-3

22 Jul 15:06
Compare
Choose a tag to compare
v4.0.0-3 Pre-release
Pre-release

Bug Fixes

  • Sentinel: unreachable errors when sentinals are healthy (7bf6fea)
  • resolve warning for Buffer() in Node.js 10 (6144c56)

v4.0.0-2

07 Jul 08:43
Compare
Choose a tag to compare
v4.0.0-2 Pre-release
Pre-release

Upgrade redis-parser to v3. See release notes on redis-parser repo for details.

v4.0.0-1

02 Jul 03:36
Compare
Choose a tag to compare
v4.0.0-1 Pre-release
Pre-release

Bug Fixes

  • remove unnecessary bluebird usage (2502b1b)

v4.0.0-0

01 Jul 17:19
Compare
Choose a tag to compare
v4.0.0-0 Pre-release
Pre-release

Bug Fixes

  • Deprecated Redis() in favor of new Redis() (8e7c6f1)
  • don't add cluster.info to the failover queue before ready (491546d)
  • solves vulnerabilities dependencies (2950b79)
  • Cluster: issues when setting enableOfflineQueue to false (#649) (cfe4258)

Features

  • use native Promise instead of Bluebird, and allow users to switch back. (da60b8b)
  • add maxRetriesPerRequest option to limit the retries attempts per command (1babc13)
  • Redis#connect() will be resolved when status is ready (#648) (f0c600b)
  • add debug details for connection pool (9ec16b6)
  • wait for ready state before resolving cluster.connect() (7517a73)

BREAKING CHANGES

  • Drop support for < node v6
  • Redis#connect() will be resolved when status is ready
    instead of connect:
const redis = new Redis({ lazyConnect: true })
redis.connect().then(() => {
  assert(redis.status === 'ready')
})
  • Cluster#connect() will be resolved when the connection
    status become ready instead of connect.
  • The maxRetriesPerRequest is set to 20 instead of null (same behavior as ioredis v3)
    by default. So when a redis server is down, pending commands won't wait forever
    until the connection become alive, instead, they only wait about 10s (depends on the
    retryStrategy option)
  • The new keyword is required explicitly. Calling Redis as a function like
    Redis(/* options /)is deprecated and will not be supported in the next major version, usenew Redis(/ options */)` instead.
  • This change makes all the code that rely on the features provided by Bluebird not working
    anymore. For example, redis.get('foo').timeout(500) now should be failed since the native
    Promise doesn't support the timeout method. You can switch back to the Bluebird
    implementation by setting Redis.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)

v3.2.2

30 Nov 05:03
Compare
Choose a tag to compare

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