Skip to content

Commit

Permalink
refactor: update ioredis version
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new ioredis version has breaking changes

closes #349
  • Loading branch information
RamzesTheSecond authored and acatl committed Jul 24, 2019
1 parent 1620e74 commit 37712d1
Show file tree
Hide file tree
Showing 5 changed files with 910 additions and 770 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ node_modules
dump.rdb
/benchmark
data-point-trace-*
.idea/
7 changes: 6 additions & 1 deletion packages/data-point-cache/lib/io-redis.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This file is here to support mocking ioredis
// https://github.com/stipsan/ioredis-mock/issues/568
module.exports = require('ioredis')
const ioredis = require('ioredis')
const Promise = require('bluebird')

ioredis.Promise = Promise

module.exports = ioredis
4 changes: 2 additions & 2 deletions packages/data-point-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"email": "[email protected]"
},
"devDependencies": {
"ioredis-mock": "^3.3.1"
"ioredis-mock": "^4.12.1"
},
"dependencies": {
"bluebird": "3.5.1",
"ioredis": "3.1.4",
"ioredis": "4.12.2",
"lodash": "^4.17.11",
"ms": "2.x"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/data-point-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"body-parser": "1.18.2",
"data-point": "^3.4.2",
"express": "^4.16.2",
"ioredis": "3.1.4",
"ioredis-mock": "^3.3.1"
"ioredis": "4.12.2",
"ioredis-mock": "^4.12.1"
},
"dependencies": {
"data-point-service": "^4.2.2",
Expand Down
Loading

0 comments on commit 37712d1

Please sign in to comment.