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

Added keyv 5 support for KeyvAdapter #461

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

sroebert
Copy link
Contributor

@sroebert sroebert commented Oct 7, 2024

This implements support for keyv version 5, which fixes #457 and #459.

@sroebert sroebert requested a review from a team as a code owner October 7, 2024 08:51
@apollo-cla
Copy link

@sroebert: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Copy link

changeset-bot bot commented Oct 7, 2024

🦋 Changeset detected

Latest commit: 025b439

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/utils.keyvadapter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sroebert sroebert force-pushed the feature/keyv5-support branch from 8b8f7b4 to 817f195 Compare October 7, 2024 08:58
Copy link

codesandbox-ci bot commented Oct 7, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@sroebert sroebert force-pushed the feature/keyv5-support branch from 817f195 to 70f3c73 Compare October 7, 2024 09:00
@sroebert sroebert force-pushed the feature/keyv5-support branch from 99280b5 to 7f71260 Compare October 7, 2024 09:34
Copy link

@doanthai doanthai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cupofjoakim
Copy link

cupofjoakim commented Oct 15, 2024

We'd also appreciate this to go through, whenever there's time! :)

@Rikusor
Copy link

Rikusor commented Oct 17, 2024

Here is also a team that is eagerly waiting this to go through!

Copy link
Contributor

@tninesling tninesling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for the contribution!

Added note about which version of Keyv is supported
@tninesling tninesling merged commit 79f5df2 into apollographql:main Oct 21, 2024
9 checks passed
@github-actions github-actions bot mentioned this pull request Oct 21, 2024
tninesling added a commit to apollographql/apollo-server that referenced this pull request Oct 23, 2024
The `@apollo/utils.keyvadapter` package was updated in
apollographql/apollo-utils#461 to be compatible
with Keyv v5. The primary change is that the `Keyv` constructor takes a
store instead of a string.

The constructor can be invoked in two ways:
```
// passed as first argument
new Keyv(new KeyvRedis("redis://..."))

// passed as store
new Keyv({ store: new KeyvRedis("redis://...") })
```

This updates the Redis examples in the documentation to match the new
API. For simplicity, I've stuck to the first format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keyvAdapter: support Keyv 5
7 participants