graphql-portal
graphql-portal copied to clipboard
chore(deps): update dependency ioredis-mock to v8
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| ioredis-mock | 5.6.0 -> 8.9.0 |
Release Notes
stipsan/ioredis-mock (ioredis-mock)
v8.9.0
Features
Bug Fixes
- deps: update redis docker tag to v7.2.0 (#1308) (a5a9914)
- deps: update redis docker tag to v7.2.1 (#1317) (06e2968)
- rpoplpush should rotate the list when source and destintation are the same (#1321) (897af68)
- xread fixes (#1318) (3978302)
v8.8.3
Bug Fixes
v8.8.2
Bug Fixes
- make
hscanreturn flat list of entries (#1300) (6f440f0) - Make unsupported commands writable (#1301) (eb043e3)
v8.8.1
Bug Fixes
v8.8.0
Features
Bug Fixes
v8.7.0
Features
Bug Fixes
v8.6.0
Features
Bug Fixes
- sorted lists should throw WRONGTYPE instead of returning empty arrays (b46b9b8)
v8.5.0
Features
v8.4.0
Features
Bug Fixes
v8.3.0
Features
Bug Fixes
v8.2.7
Bug Fixes
- deps: update redis docker tag to v7.0.10 (#1257) (ea219bd)
- deps: update redis docker tag to v7.0.9 (#1247) (9378ff4)
- lockfile (1fb2078)
v8.2.6
Bug Fixes
v8.2.5
Bug Fixes
v8.2.4
Bug Fixes
- add
@types/ioredis-mockas a peer (06bc0a8) - ioredis 5.x uses a default export (#1203) (6fbeaf3)
- keep options as redis property (#1202) (fbb9cd4)
- lua: Expose unpack to imitate redis's lua 5.1 support (#1194) (df83646), closes #1193
- map batch length to length in pipeline (#1201) (a4e8a4a), closes #1046
- publish: channel is Buffer for
messageBufferevent (#1206) (1537301), closes #1205 - update
@ioredis/commands(3137d2b) - use same
enginesasioredis(54aa189)
v8.2.3
Bug Fixes
- improve automation (392109c)
v8.2.2
Bug Fixes
- README: reference Renovatebot instead of Greenkeeper (de6a205)
v8.2.1
Bug Fixes
v8.2.0
Features
- add hscanBuffer (31fd985)
- add scanBuffer (ec09d77)
- add sscanBuffer (27169cd)
- add subscribeBuffer (80b72b1)
- add subscribeBuffer (10caa2d)
- add xaddBuffer (b1702c6)
- add xrangeBuffer (5e87f90)
- add xreadBuffer (58e447f)
- add xrevrangeBuffer (5c57556)
- add zcardBuffer (cba4713)
- add zincrbyBuffer (ae6980c)
- add zpopmaxBuffer (8f0c1a3)
- add zpopminBuffer (6d485de)
- add zrangeBuffer (a02b9ae)
- add zrangebyscoreBuffer (8275608)
- add zrankBuffer (7b6ff3e)
- add zremrangebyrankBuffer (ea3dbac)
- add zremrangebyscoreBuffer (64f4a6f)
- add zrevrangeBuffer (7384ab5)
- add zrevrangebyscoreBuffer (7383666)
- add zrevrankBuffer (b46520e)
- add zscanBuffer (9685a16)
- add zscoreBuffer (9bdc5cf)
v8.1.1
Bug Fixes
v8.1.0
Bug Fixes
- lrem: refactor indexFun to a compiler friendlier variant (9b3b6f7), closes #1103
- sort json data by default (85c641a)
Features
v8.0.0
Features
BREAKING CHANGES
- this drops support for ioredis v4 and Redis.Promise overrides
v7.5.1
Bug Fixes
- backport map batch length to length in pipeline.js (#1319) (6e9bf07)
- Backport rpoplpush should rotate the list when source and destintation are the same (#1322) (72c62c5)
v7.5.0
Features
v7.4.0
Features
v7.3.0
Features
v7.2.0
Features
v7.1.0
Features
v7.0.1
Bug Fixes
v7.0.0
Bug Fixes
Code Refactoring
- remove jest.js (dddff03)
BREAKING CHANGES
- use
redis.duplicate()or anothernew Redisinstead ofredis.createConnectedClient() - Upgrade to node v12 or later
- update
require('ioredis-mock/jest')calls torequire('ioredis-mock')
v6.13.0
Features
v6.12.0
Features
- add evalBuffer (b7299b5)
- add evalshaBuffer (51ba9c8)
- add hvalsBuffer (ef01926)
- add lindexBuffer (662363d)
- add linsertBuffer (4cf3830)
- add lrangeBuffer (bbe83c3)
- add lsetBuffer (b5adf8e)
- add psubscribeBuffer (0bd3d2e)
- add publishBuffer (f082a29)
- add punsubscribeBuffer (426130f)
- add sdiffBuffer (9065241)
- add sdiffstoreBuffer (434aa41)
- add sinterBuffer (2bad9d6)
- add sinterstoreBuffer (0c2dac2)
- add smembersBuffer (cd8e279)
- add spopBuffer (aa1db83)
- add sunionstoreBuffer (94700d3)
- add unsubscribeBuffer (aa7099e)
- add zinterstoreBuffer (21840a3)
v6.11.0
Features
v6.10.0
Features
v6.9.0
Features
v6.8.0
Features
v6.7.0
Features
v6.6.0
Features
v6.5.0
Features
- add stub for asking (6d1de07)
- add stub for cluster (e69903e)
- add stub for failover (0c69daf)
- add stub for readonly (ce65aa0)
- add stub for readwrite (ba8d481)
- add stubs for replicaof (c84d199)
v6.4.0
Bug Fixes
- hstrlen throws error if wrong number of arguments (a028d32)
- rpush error message synced with redis (c58eda0)
Features
- add authBuffer (13db50c)
- add getsetBuffer (6571c92)
- add hincrbyBuffer (c843034)
- add hincrbyfloatBuffer (81abd47)
- add hkeysBuffer (7385b9a)
- add hlenBuffer (18ed15c)
- add hsetnxBuffer (cfa8c83)
- add hstrlenBuffer (751a5be)
- add llenBuffer (a430d39)
- add lpushBuffer (96cbf6c)
- add lpushxBuffer (bf7c920)
- add lremBuffer (a464dac)
- add ltrimBuffer (c986640)
- add mgetBuffer (76e0550)
- add msetnxBuffer (11bbf35)
- add persistBuffer (07a9ada)
- add pexpireatBuffer (eb84dab)
- add pexpireBuffer (40e7fbb)
- add psetexBuffer (e3866a7)
- add pttlBuffer (b434389)
- add randomkeyBuffer (59771b9)
- add renameBuffer (a9ddc86)
- add renamenxBuffer (e99a6ed)
- add roleBuffer (d1b11b0)
- add rpushBuffer (8fb0fa4)
- add rpushxBuffer (0663835)
- add scardBuffer (22a553b)
- add setbitBuffer (ef19618)
- add setexBuffer (2059b13)
- add setnxBuffer (e064075)
- add sismemberBuffer (0c3b8db)
- add smismemberBuffer (395fe5b)
- add smoveBuffer (a969dcc)
- add strlenBuffer (6f82dd8)
- add substr (7e41c38)
- add timeBuffer (ac724fd)
- add ttlBuffer (5c1982a)
- add typeBuffer (347cd64)
- add unlinkBuffer (31d1368)
- add xlenBuffer (5f208f8)
- add zaddBuffer (2293d14)
- add zcountBuffer (2930f0d)
- add zremBuffer (4524dda)
v6.3.0
Features
Added
appendBufferbgrewriteaofBufferbgsaveBufferbrpoplpushBufferdbsizeBufferdecrBufferdecrbyBufferdelBufferdiscardBufferechoBufferexistsBufferexpireBufferexpireatBufferflushallBufferflushdbBuffergetbitBuffergetrangeBufferhdelBufferhexistsBufferhmsetBufferhsetBufferincrBufferincrbyBufferincrbyfloatBufferinfoBufferkeysBufferlastsaveBuffermsetBufferpingBufferquitBufferreplconfreplconfBuffersaddBuffersaveBuffersetBuffer
Improved
getis updated to convert buffers to string, like nativeredis + ioredis,
v6.2.0
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
Bug Fixes
bgrewriteaof
- returns
'Background append only file rewriting started'instead of'OK'
bgsave
- returns
'Background saving started'instead of'OK'
decrby
- throws
"ERR wrong number of arguments for 'decrby' command"if the decrement argument is missing
rpoplpush
- throws
'WRONGTYPE Operation against a key holding the wrong kind of value'if the source argument is invalid - returns null if the destination is invalid
time
- returns strings instead of numbers
v6.1.1
Bug Fixes
v6.1.0
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:
import Redis from 'https://unpkg.com/ioredis-mock';
const redis = new Redis();
redis.set('foo', 'bar');
console.log(await redis.get('foo'));
ioredis-mock/jest.js is deprecated
ioredis-mock is no longer doing a import { Command } from 'ioredis' internally, it's now doing a direct import import Command from 'ioredis/built/command' and thus the jest.js workaround is no longer needed:
-jest.mock('ioredis', () => require('ioredis-mock/jest'))
+jest.mock('ioredis', () => require('ioredis-mock'))
v6.0.0
BREAKING CHANGE
Before v6, each instance of ioredis-mock lived in isolation:
const Redis = require('ioredis-mock');
const redis1 = new Redis();
const redis2 = new Redis();
await redis1.set('foo', 'bar');
console.log(await redis1.get('foo'), await redis2.get('foo')); // 'bar', null
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:
const Redis = require('ioredis-mock');
const redis1 = new Redis();
const redis2 = new Redis();
const redis3 = new Redis({ port: 6380 }); // 6379 is the default port
await redis1.set('foo', 'bar');
console.log(
await redis1.get('foo'), // 'bar'
await redis2.get('foo'), // 'bar'
await redis3.get('foo') // null
);
And since ioredis-mock now persist data between instances, you'll likely need to run flushall between testing suites:
const Redis = require('ioredis-mock');
afterEach((done) => {
new Redis().flushall().then(() => done());
});
createConnectedClient is deprecated
Replace it with .duplicate() or use another new Redis instance.
v5.9.1
This is a republish of v5.8.4 as v5.9.0 is a breaking release that's republished as v6.0.0
v5.9.0
This is a breaking release by accident
See v6.0.0 instead, which includes upgrade notes. Or stay on v5.9.1 or v5.8.4 until you're ready to migrate.
Features
v5.8.4
Bug Fixes
v5.8.3
Bug Fixes
v5.8.2
Bug Fixes
v5.8.1
Bug Fixes
- deps: update dependency fengari-interop to v0.1.3 (04fcbca)
v5.8.0
Features
v5.7.0
Features
Reverts
v5.6.1
Bug Fixes
Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.