Skip to content

redis@4.0.0

Compare
Choose a tag to compare
@leibale leibale released this 27 Aug 20:48

This version is a major change and refactor, adding modern JavaScript capabilities and multiple breaking changes. See the migration guide for tips on how to upgrade.

Breaking Changes

  • All functions return Promises by default
  • Dropped support for Node.js 10.x, the minimum supported Node.js version is now 12.x
  • createClient takes new and different arguments
  • The prefix, rename_commands configuration options to createClient have been removed
  • Login credentials are no longer saved when using .auth() directly

Features

  • Added support for Promises
  • Added built-in TypeScript declaration files enabling code completion
  • Added support for clustering
  • Added idiomatic arguments and responses to Redis commands
  • Added full support for Lua Scripts
  • Added support for SCAN iterators
  • Added the ability to extend Node Redis with Redis Module commands