github redis/ioredis v5.0.0-main.1

latest releases: v5.4.1, v5.4.0, v1.3.0...
pre-release2 years ago

5.0.0-main.1 (2022-03-14)

Bug Fixes

  • add @ioredis/interface-generator to dev deps (f345b27)
  • add the missing typing for Redis#call() (1e79ead)
  • better support for CJS importing (e6a49c4)
  • disable slotsRefreshInterval by default (d24676c)
  • Fix the NOSCRIPT behavior when using pipelines (39b3c51)
  • improve typing for auto pipelining (c8ec91a)
  • improve typing for pipeline (379327b)
  • make fields private when possible (f7d03e1)
  • parameter declaration of Redis#duplicate (95eaf61)
  • remove dropBufferSupport option (60a6d00)
  • remove unused Command#isCustomCommand (c8794d3)
  • rename interfaces by dropping prefix I (5cd4f57)
  • Reset loaded script hashes to force a reload of scripts after reconnect of redis (8dd3591)
  • support passing keyPrefix via redisOptions (5101581)

Features

  • add @since to method comments (88729da)
  • add declarations for methods (bd920b3)
  • add tests for cluster (e1cd0cf)
  • always parse username passed via URI (3d5519b)
  • drop support of Node.js 10 (9d1977d)
  • drop support of third-party Promise libraries (62a197f)
  • expose official declarations (e0f24e6)
  • improve typings for cluster (5aa3f98)
  • improve typings for pipeline (d8b9efc)
  • improve typings for transformers (1cf58e7)
  • Pipeline-based script loading (63dc0f4)
  • Refactor code with modern settings (29b28a3)
  • skip ready check on NOPERM error (5b7a87d), closes #1293
  • support commands added in Redis v7 (69a0e1b)
  • support defining custom commands via constructor options (65082d6)
  • support Redis Functions introduced in Redis 7.0 (6cab03a)

BREAKING CHANGES

  • 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.
  • Related methods are kept but they don't take any effects.

The native Promise will always be used.

    1. We now require Node.js v10.12.0 or newer.
  1. We now only work with Redis v3.0.0 or newer.
  2. 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.

Don't miss a new ioredis release

NewReleases is sending notifications on new releases.