Packages

ioredis

6.1.0 · 23 Nov 2026MIT45.2M / weekRepositoryHomepagenpmAtom feed

Upgrading ioredis From 5.11.1 to 6.1.0

2 releases in betweenevery note read

  1. 5.11.1yours
  2. 6.0.0security
  3. 6.1.0target
  4. 2 pre

Before you upgrade

Tick each one off as you go
  • Breaking6.0.0

Security

  • cluster: validate MOVED slot to prevent Array.prototype pollution (#2151) (9618206), closes #1267

    6.0.0

Release by release

  1. 6.1.0

    23 Nov 20269 new · 47 fixes
    • New

      client: Smart client handoffs, which handle Redis maintenance notifications with the maintNotifications, maintEndpointType, maintRelaxedCommandTimeout and maintRelaxedSocketTimeout options

    • New

      cluster: Add a health check for sharded subscribers, configured with shardedSubscriberHealthCheckInterval (default 10000 ms, null disables it)

    • New

      cluster: Add the subscriberNodeRole option to choose the node role for the Pub/Sub subscriber

    • New

      commands: Add the set member expiration commands SADDEX, SEXPIRE, SEXPIREAT, SEXPIRETIME, SPERSIST, SPEXPIRE, SPEXPIREAT, SPEXPIRETIME, SPTTL and STTL (Redis 8.12)

  2. 6.0.0

    Security fix31 Jul 20266 new · 7 fixes
    • Security

      cluster: validate MOVED slot to prevent Array.prototype pollution (#2151) (9618206), closes #1267

    • Breaking

      Ioredis now requires Node.js 20 or newer and uses RESP3 by default. Set protocol: 2 to retain the v5 wire protocol.

    • New

      Add RESP3

    • New

      Add LMOVEM and BLMOVEM command support

11 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.