This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
chore(deps): update dependency ioredis-mock to v6 #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.9.0
->^6.3.0
Release Notes
stipsan/ioredis-mock
v6.3.0
Compare Source
Features
Added
appendBuffer
bgrewriteaofBuffer
bgsaveBuffer
brpoplpushBuffer
dbsizeBuffer
decrBuffer
decrbyBuffer
delBuffer
discardBuffer
echoBuffer
existsBuffer
expireBuffer
expireatBuffer
flushallBuffer
flushdbBuffer
getbitBuffer
getrangeBuffer
hdelBuffer
hexistsBuffer
hmsetBuffer
hsetBuffer
incrBuffer
incrbyBuffer
incrbyfloatBuffer
infoBuffer
keysBuffer
lastsaveBuffer
msetBuffer
pingBuffer
quitBuffer
replconf
replconfBuffer
saddBuffer
saveBuffer
setBuffer
Improved
get
is updated to convert buffers to string, like nativeredis + ioredis
,v6.2.0
Compare Source
Features
Constructor shorthands now supported:
new Redis(6379, 'localhost', { keyPrefix: 'shared:' })
new Redis('//localhost:6379', { keyPrefix: 'shared:' })
new Redis('redis://localhost:6379', { keyPrefix: 'private:' })
new Redis(6379, { keyPrefix: 'shared:' })
new Redis(6379)
new Redis('redis://localhost:6379/')
v6.1.2
Compare Source
Bug Fixes
bgrewriteaof
'Background append only file rewriting started'
instead of'OK'
bgsave
'Background saving started'
instead of'OK'
decrby
"ERR wrong number of arguments for 'decrby' command"
if the decrement argument is missingrpoplpush
'WRONGTYPE Operation against a key holding the wrong kind of value'
if the source argument is invalidtime
v6.1.1
Compare Source
Bug Fixes
v6.1.0
Compare Source
Features
Browser usage (Experimental)
There's a browser build available. You can import it directly (
import Redis from 'ioredis-mock/browser.js'
), or use it on unpkg.com:ioredis-mock/jest.js
is deprecatedioredis-mock
is no longer doing aimport { Command } from 'ioredis'
internally, it's now doing a direct importimport Command from 'ioredis/built/command'
and thus thejest.js
workaround is no longer needed:v6.0.0
Compare Source
BREAKING CHANGE
Before v6, each instance of
ioredis-mock
lived in isolation:In v6 the internals were rewritten to behave more like real life redis, if the host and port is the same, the context is now shared:
And since
ioredis-mock
now persist data between instances, you'll likely need to runflushall
between testing suites:createConnectedClient
is deprecatedReplace it with
.duplicate()
or use anothernew Redis
instance.v5.9.1
Compare Source
This is a republish of
v5.8.4
asv5.9.0
is a breaking release that's republished asv6.0.0
Configuration
📅 Schedule: "before 12pm on Sunday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.