New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ioredis-mock

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioredis-mock - npm Package Compare versions

Comparing version 7.4.0 to 8.0.0

data/command-docs.json

40

compat.md

@@ -1,2 +0,2 @@

## Supported commands ![Commands Coverage: 62%](https://img.shields.io/badge/coverage-62%25-orange.svg)
## Supported commands ![Commands Coverage: 57%](https://img.shields.io/badge/coverage-57%25-red.svg)

@@ -19,5 +19,7 @@ > PRs welcome :heart:

| [blmove] | :white_check_mark: | :x: |
| [blmpop] | :white_check_mark: | :x: |
| [blpop] | :white_check_mark: | :x: |
| [brpop] | :white_check_mark: | :x: |
| [brpoplpush] | :white_check_mark: | :white_check_mark: |
| [bzmpop] | :white_check_mark: | :x: |
| [bzpopmax] | :white_check_mark: | :x: |

@@ -37,9 +39,15 @@ | [bzpopmin] | :white_check_mark: | :x: |

| [eval] | :white_check_mark: | :white_check_mark: |
| [eval_ro] | :white_check_mark: | :x: |
| [evalsha] | :white_check_mark: | :white_check_mark: |
| [evalsha_ro] | :white_check_mark: | :x: |
| [exists] | :white_check_mark: | :white_check_mark: |
| [expire] | :white_check_mark: | :white_check_mark: |
| [expireat] | :white_check_mark: | :white_check_mark: |
| [expiretime] | :white_check_mark: | :x: |
| [failover] | :white_check_mark: | :white_check_mark: |
| [fcall] | :white_check_mark: | :x: |
| [fcall_ro] | :white_check_mark: | :x: |
| [flushall] | :white_check_mark: | :white_check_mark: |
| [flushdb] | :white_check_mark: | :white_check_mark: |
| [function] | :white_check_mark: | :x: |
| [geoadd] | :white_check_mark: | :x: |

@@ -83,2 +91,3 @@ | [geodist] | :white_check_mark: | :x: |

| [lastsave] | :white_check_mark: | :white_check_mark: |
| [lcs] | :white_check_mark: | :x: |
| [lindex] | :white_check_mark: | :white_check_mark: |

@@ -88,2 +97,3 @@ | [linsert] | :white_check_mark: | :white_check_mark: |

| [lmove] | :white_check_mark: | :x: |
| [lmpop] | :white_check_mark: | :x: |
| [lolwut] | :white_check_mark: | :white_check_mark: |

@@ -107,2 +117,3 @@ | [lpop] | :white_check_mark: | :white_check_mark: |

| [pexpireat] | :white_check_mark: | :white_check_mark: |
| [pexpiretime] | :white_check_mark: | :x: |
| [pfadd] | :white_check_mark: | :x: |

@@ -148,2 +159,3 @@ | [pfcount] | :white_check_mark: | :x: |

| [sinter] | :white_check_mark: | :white_check_mark: |
| [sintercard] | :white_check_mark: | :x: |
| [sinterstore] | :white_check_mark: | :white_check_mark: |

@@ -156,7 +168,9 @@ | [sismember] | :white_check_mark: | :white_check_mark: |

| [sort] | :white_check_mark: | :x: |
| [sort_ro] | :white_check_mark: | :x: |
| [spop] | :white_check_mark: | :white_check_mark: |
| [spublish] | :white_check_mark: | :x: |
| [srandmember] | :white_check_mark: | :white_check_mark: |
| [srem] | :white_check_mark: | :white_check_mark: |
| [sscan] | :white_check_mark: | :white_check_mark: |
| [stralgo] | :x: | :x: |
| [ssubscribe] | :white_check_mark: | :x: |
| [strlen] | :white_check_mark: | :white_check_mark: |

@@ -167,2 +181,3 @@ | [subscribe] | :white_check_mark: | :white_check_mark: |

| [sunionstore] | :white_check_mark: | :white_check_mark: |
| [sunsubscribe] | :white_check_mark: | :x: |
| [swapdb] | :white_check_mark: | :x: |

@@ -201,4 +216,6 @@ | [sync] | :white_check_mark: | :x: |

| [zinter] | :white_check_mark: | :x: |
| [zintercard] | :white_check_mark: | :x: |
| [zinterstore] | :white_check_mark: | :white_check_mark: |
| [zlexcount] | :white_check_mark: | :x: |
| [zmpop] | :white_check_mark: | :x: |
| [zmscore] | :white_check_mark: | :x: |

@@ -284,5 +301,7 @@ | [zpopmax] | :white_check_mark: | :white_check_mark: |

[blmove]: http://redis.io/commands/BLMOVE
[blmpop]: http://redis.io/commands/BLMPOP
[blpop]: http://redis.io/commands/BLPOP
[brpop]: http://redis.io/commands/BRPOP
[brpoplpush]: http://redis.io/commands/BRPOPLPUSH
[bzmpop]: http://redis.io/commands/BZMPOP
[bzpopmax]: http://redis.io/commands/BZPOPMAX

@@ -302,9 +321,15 @@ [bzpopmin]: http://redis.io/commands/BZPOPMIN

[eval]: http://redis.io/commands/EVAL
[eval_ro]: http://redis.io/commands/EVAL_RO
[evalsha]: http://redis.io/commands/EVALSHA
[evalsha_ro]: http://redis.io/commands/EVALSHA_RO
[exists]: http://redis.io/commands/EXISTS
[expire]: http://redis.io/commands/EXPIRE
[expireat]: http://redis.io/commands/EXPIREAT
[expiretime]: http://redis.io/commands/EXPIRETIME
[failover]: http://redis.io/commands/FAILOVER
[fcall]: http://redis.io/commands/FCALL
[fcall_ro]: http://redis.io/commands/FCALL_RO
[flushall]: http://redis.io/commands/FLUSHALL
[flushdb]: http://redis.io/commands/FLUSHDB
[function]: http://redis.io/commands/FUNCTION
[geoadd]: http://redis.io/commands/GEOADD

@@ -348,2 +373,3 @@ [geodist]: http://redis.io/commands/GEODIST

[lastsave]: http://redis.io/commands/LASTSAVE
[lcs]: http://redis.io/commands/LCS
[lindex]: http://redis.io/commands/LINDEX

@@ -353,2 +379,3 @@ [linsert]: http://redis.io/commands/LINSERT

[lmove]: http://redis.io/commands/LMOVE
[lmpop]: http://redis.io/commands/LMPOP
[lolwut]: http://redis.io/commands/LOLWUT

@@ -372,2 +399,3 @@ [lpop]: http://redis.io/commands/LPOP

[pexpireat]: http://redis.io/commands/PEXPIREAT
[pexpiretime]: http://redis.io/commands/PEXPIRETIME
[pfadd]: http://redis.io/commands/PFADD

@@ -413,2 +441,3 @@ [pfcount]: http://redis.io/commands/PFCOUNT

[sinter]: http://redis.io/commands/SINTER
[sintercard]: http://redis.io/commands/SINTERCARD
[sinterstore]: http://redis.io/commands/SINTERSTORE

@@ -421,7 +450,9 @@ [sismember]: http://redis.io/commands/SISMEMBER

[sort]: http://redis.io/commands/SORT
[sort_ro]: http://redis.io/commands/SORT_RO
[spop]: http://redis.io/commands/SPOP
[spublish]: http://redis.io/commands/SPUBLISH
[srandmember]: http://redis.io/commands/SRANDMEMBER
[srem]: http://redis.io/commands/SREM
[sscan]: http://redis.io/commands/SSCAN
[stralgo]: http://redis.io/commands/STRALGO
[ssubscribe]: http://redis.io/commands/SSUBSCRIBE
[strlen]: http://redis.io/commands/STRLEN

@@ -432,2 +463,3 @@ [subscribe]: http://redis.io/commands/SUBSCRIBE

[sunionstore]: http://redis.io/commands/SUNIONSTORE
[sunsubscribe]: http://redis.io/commands/SUNSUBSCRIBE
[swapdb]: http://redis.io/commands/SWAPDB

@@ -466,4 +498,6 @@ [sync]: http://redis.io/commands/SYNC

[zinter]: http://redis.io/commands/ZINTER
[zintercard]: http://redis.io/commands/ZINTERCARD
[zinterstore]: http://redis.io/commands/ZINTERSTORE
[zlexcount]: http://redis.io/commands/ZLEXCOUNT
[zmpop]: http://redis.io/commands/ZMPOP
[zmscore]: http://redis.io/commands/ZMSCORE

@@ -470,0 +504,0 @@ [zpopmax]: http://redis.io/commands/ZPOPMAX

24

package.json

@@ -21,2 +21,3 @@ {

"files": [
"data/",
"lib/",

@@ -30,3 +31,3 @@ "browser.js",

"build:browser.js": "esbuild src/index.js --bundle --format=esm --outfile=browser.js --define:process=undefined --define:global.process=undefined --define:process.env.FENGARICONF=undefined --define:global=window --define:process.browser=true --define:process.nextTick=nextTickShim --define:process.hrtime=hrtimeShim --define:setImmediate=nextTickShim --inject:./browser-shims.js --minify-syntax --sourcemap --external:ioredis/built/command",
"build:lib": "npx rimraf lib && esbuild src/index.js --outfile=lib/index.js --platform=node --target=node12 --bundle --external:fengari --external:fengari-interop --external:redis-commands --external:standard-as-callback --external:ioredis --sourcemap --minify-syntax",
"build:lib": "npx rimraf lib && esbuild src/index.js --outfile=lib/index.js --platform=node --target=node12 --bundle --external:fengari --external:fengari-interop --external:@ioredis/commands --external:@ioredis/as-callback --external:ioredis --external:./data/*.json --sourcemap --minify-syntax",
"codeclimate": "codeclimate-test-reporter < ./coverage/lcov.info",

@@ -43,15 +44,16 @@ "precoverage": "npx rimraf coverage && npx mkdirp coverage",

"posttest": "npm run build:lib && npm run test:integration && npm run build:browser.js && npm run test:browser.js",
"test:browser.js": "jest --config jest.config.browser.js",
"test:browser.js": "IS_BROWSER=true jest --config jest.config.browser.js",
"test:e2e": "IS_E2E=true jest --config jest.config.redis.js --forceExit --runInBand",
"test:integration": "jest --config jest.config.integration.js",
"update-compat": "node scripts/update-compat && git add compat.md README.md && git commit --quiet -m \"docs: Update feature compat table\" &> /dev/null || true"
"update-compat": "node scripts/update-compat && git add compat.md README.md && git commit --quiet -m \"docs: Update feature compat table\" &> /dev/null || true",
"update-data": "node scripts/update-data"
},
"dependencies": {
"@ioredis/as-callback": "^3.0.0",
"@ioredis/commands": "^1.1.1",
"fengari": "^0.1.4",
"fengari-interop": "^0.1.3",
"redis-commands": "^1.7.0",
"standard-as-callback": "^2.1.0"
"fengari-interop": "^0.1.3"
},
"peerDependencies": {
"ioredis": "4.x || 5.x"
"ioredis": "5.x"
},

@@ -64,3 +66,2 @@ "devDependencies": {

"babel-eslint": "^10.1.0",
"bluebird": "^3.7.2",
"browser-process-hrtime": "^1.0.0",

@@ -83,2 +84,3 @@ "buffer": "^6.0.3",

"jest": "^27.4.7",
"jest-buffer-snapshot-serializer": "^1.0.0",
"jest-circus": "^27.4.6",

@@ -90,2 +92,3 @@ "lint-staged": "^11.2.6",

"lodash.shuffle": "^4.2.0",
"lodash.sortby": "^4.7.0",
"lodash.zipobject": "^4.1.3",

@@ -97,3 +100,4 @@ "mkdirp": "^1.0.4",

"stream-mock": "^2.0.5",
"url": "^0.11.0"
"url": "^0.11.0",
"write-file-atomic": "^4.0.1"
},

@@ -163,3 +167,3 @@ "keywords": [

"unpkg": "./browser.js",
"version": "7.4.0"
"version": "8.0.0"
}

@@ -1,2 +0,2 @@

# ioredis-mock &middot; [![npm](https://img.shields.io/npm/dm/ioredis-mock.svg?style=flat-square)](https://npm-stat.com/charts.html?package=ioredis-mock) [![npm version](https://img.shields.io/npm/v/ioredis-mock.svg?style=flat-square)](https://www.npmjs.com/package/ioredis-mock) [![Redis Compatibility: 62%](https://img.shields.io/badge/redis-62%25-orange.svg?style=flat-square)](compat.md) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
# ioredis-mock &middot; [![npm](https://img.shields.io/npm/dm/ioredis-mock.svg?style=flat-square)](https://npm-stat.com/charts.html?package=ioredis-mock) [![npm version](https://img.shields.io/npm/v/ioredis-mock.svg?style=flat-square)](https://www.npmjs.com/package/ioredis-mock) [![Redis Compatibility: 57%](https://img.shields.io/badge/redis-57%25-red.svg?style=flat-square)](compat.md) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)

@@ -57,2 +57,13 @@ This library emulates [ioredis](https://github.com/luin/ioredis) by performing

### from v7 to v8
#### `ioredis@v4` support dropped
`ioredis@v5` is the new baseline. Stay on `ioredis-mock@v7` until you're ready to upgrade to `ioredis@v5`.
#### `PromiseContainer` has been removed.
Support for third-party Promise libraries is dropped. The native Promise library
will always be used.
### from v6 to v7

@@ -133,13 +144,2 @@

### Promises
By default, ioredis-mock uses the native Promise library. If you need (or prefer) [bluebird](http://bluebirdjs.com/) promises, set `Redis.Promise`:
```js
var Promise = require('bluebird')
var Redis = require('ioredis-mock')
Redis.Promise = Promise
```
### Lua scripting

@@ -146,0 +146,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc