ioredis
6.1.0 · 23 Nov 2026MIT45.1M / weekRepositoryHomepagenpmAtom feed
Upgrading ioredis From 0.1.2 to 6.1.0
227 releases in betweennotes for 218
- 30+
- changes to make
- 0
- advisories fixed
- 162+
- new
- 227+
- fixes
Counted from 218 of 227 release notes, and the breaking changes of 6 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking5.2.6
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking5.0.0
- Breaking4.0.0
Security
Release by release
- New
client: Smart client handoffs, which handle Redis maintenance notifications with the
maintNotifications,maintEndpointType,maintRelaxedCommandTimeoutandmaintRelaxedSocketTimeoutoptions - New
cluster: Add a health check for sharded subscribers, configured with
shardedSubscriberHealthCheckInterval(default10000ms,nulldisables it) - New
cluster: Add the
subscriberNodeRoleoption 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,SPTTLandSTTL(Redis 8.12)
- New
- Security
- Breaking
Ioredis now requires Node.js 20 or newer and uses RESP3 by default. Set
protocol: 2to retain the v5 wire protocol. - New
Add RESP3
- New
Add LMOVEM and BLMOVEM command support
- Fixed
cluster: reconnect to nodes that restart without slot changes
- Fixed
Parse protocol-relative Redis URLs as TCP connections
- Fixed
- New
Add array commands, typings and tests
- New
Add increx command
- New
Add Redis MSETEX support
- New
Add typed GCRA command support and functional tests
- New
- Fixed
cluster: lazily start sharded subscribers
- Fixed
- New
Add hash field expiration commands and tests
- New
Add hexpireat & hexpiretime
- New
- Fixed
Autopipelining to route writes to masters with scaleReads
- Fixed
Fix issue with moved command for replicas
- Fixed
types: optional properties on RedisOptions allow explicit undefined
- Fixed
- Fixed
cluster: Cluster reconnect sharded subscribers
- Fixed
Preserve replica slots on MOVED in pipelines
- Fixed
27 other lines we could not sort, mostly version bumps
- 5.9.2
- 1.13.0
Select a random node when the target node is closed.
- 1.13.0
maxRedirectionsalso works forCLUSTERDOWN. - 1.12.1
Emits "error" when connection is down for
scanStream(#199). - 1.11.1
Emits "error" when all sentinels are unreachable (#200).
- 1.11.0
Emits "select" event when the database changed.
- 1.11.0
Update debug module to 2.2.0
- 1.11.0
Update bluebird module to 2.9.34
- 1.10.0
Switch to the previous db before re-subscribing channels.
- 1.10.0
Listen to the "secureConnect" event when connect via TLS. Jeffrey Jen.
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.