Skip to content

Commit

Permalink
Release version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dabroek committed Jul 4, 2020
1 parent 40b0f8e commit 3bf4514
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v2.1.0 - 4 Jul, 2020

Added support for using an external Redis instance using the new `redisInstance` parameter. Special thanks to [@marcoreni](https://github.com/marcoreni)!

## v2.0.0 - 13 Feb, 2020

Removes all Babel related configuration and updates all outdated dependencies. Updating Jest from v20 to v25 revealed that not all tests that asserted a promise rejecting were succeeding as expected. This resulted in the breaking change mentioned below.
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -5,7 +5,9 @@ const Redis = require('ioredis');
const redisStore = (...args) => {
let redisCache = null;

if (args.length > 0 && args[0].clusterConfig) {
if (args.length > 0 && args[0].redisInstance) {
redisCache = args[0].redisInstance;
} else if (args.length > 0 && args[0].clusterConfig) {
const {
nodes,
options
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "cache-manager-ioredis",
"author": "Matthijs Dabroek <dabroek@gmail.com>",
"description": "IORedis store for node-cache-manager",
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",
"main": "dist/index.js",
"repository": {
Expand Down

0 comments on commit 3bf4514

Please sign in to comment.