ioredis
6.1.0 · 23 Nov 2026MIT45.2M / weekRepositoryHomepagenpmAtom feed
Upgrading ioredis From 4.12.2 to 6.1.0
97 releases in betweenevery note read
- 9
- changes to make
- 0
- advisories fixed
- 87
- new
- 153
- fixes
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
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
1 other line we could not sort, mostly version bumps
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.