Packages

ioredis

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

Upgrading ioredis From 4.31.0 to 5.0.0

1 release in betweenevery note read

Other targets from 4.31.0Latest6.1.0
  1. 4.31.0yours
  2. 5.0.0target
  3. 4 pre

Start here

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed26 Mar 202222 new · 13 fixes
    • Breaking

      Remove dropBufferSupport option

    • Breaking

      slotsRefreshInterval is disabled by default, previously, the default value was 5000.

    • Breaking

      allowUsernameInURI is removed and ioredis will always use the username passed via URI. Previously, the username part in new Redis("redis://username:authpassword@127.0.0.1:6380/4") was ignored unless allowUsernameInURI is specified: new Redis("redis://username:authpassword@127.0.0.1:6380/4?allowUsernameInURI=true"). Now, if you don't want to send username to Redis, just leave the username part empty: new Redis("redis://:authpassword@127.0.0.1:6380/4")

    • Breaking

      Redis#serverInfo is removed. This field is never documented so you very likely have never used it.

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.