Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ioredis-mock from 5.9.0 to 6.0.0 #751

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 28, 2022

Bumps ioredis-mock from 5.9.0 to 6.0.0.

Release notes

Sourced from ioredis-mock's releases.

v6.0.0

6.0.0 (2022-01-25)

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

Commits
  • a9adbd0 feat: Share context between Redis instances (#1121)
  • 3c578b7 chore: skip running update compat on forks (#1114)
  • 26ef39a chore(deps): update devdependencies (non-major)
  • 14cd97c chore(deps): lock file maintenance
  • 566a46f chore(deps): update devdependencies (non-major)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ioredis-mock](https://github.com/stipsan/ioredis-mock) from 5.9.0 to 6.0.0.
- [Release notes](https://github.com/stipsan/ioredis-mock/releases)
- [Changelog](https://github.com/stipsan/ioredis-mock/blob/master/CHANGELOG.md)
- [Commits](stipsan/ioredis-mock@v5.9.0...v6.0.0)

---
updated-dependencies:
- dependency-name: ioredis-mock
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 28, 2022
@evantahler evantahler enabled auto-merge (squash) January 28, 2022 00:02
@evantahler evantahler merged commit f103a7a into main Jan 28, 2022
@evantahler evantahler deleted the dependabot/npm_and_yarn/ioredis-mock-6.0.0 branch January 28, 2022 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant