Changelog
5.0.0 (2022-03-26)
In the update of v5, we've made ioredis even more stable and developer-friendly while minimizing the number of breaking changes, so you can spend more time enjoying your life 😄.
Please refer to the guideline to upgrade your projects: 🚀 Upgrading from v4 to v5.
slotsRefreshInterval
is disabled by default,
previously, the default value was 5000.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")
Redis#serverInfo
is removed. This field is never documented so
you very likely have never used it.exports.Promise = require('bluebird')
) are kept but they don't take any effects. The native Promise will always be used.Redis
can't be called as a function anymore as it's now a class.
Please change Redis()
to new Redis()
. Note that Redis()
was already deprecated
in the previous version.Changelog
5.0.0-beta.1 (2022-03-14)
slotsRefreshInterval
is disabled by default,
previously, the default value was 5000.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")
Redis#serverInfo
is removed. This field is never documented so
you very likely have never used it.exports.Promise = require('bluebird')
) are kept but they don't take any effects. The native Promise will always be used.Redis
can't be called as a function anymore as it's now a class.
Please change Redis()
to new Redis()
. Note that Redis()
was already deprecated
in the previous version.