Skip to content

Commit

Permalink
Update @apollo/utils.keyvaluecache dependency (#7187)
Browse files Browse the repository at this point in the history
Previous releases of the `@apollo/utils.keyvaluecache` package
improperly specified the version range for its `lru-cache` dependency.

Fresh installs of our packages should receive the patch update since
it's careted, so this issue can be worked around by forcing the update
if you're using a lockfile. We should update it anyway since `2.0.0` is
invalid.

<!--
First, 🌠 thank you 🌠 for taking the time to consider a contribution to
Apollo!

Here are some important details to follow:

* ⏰ Your time is important
To save your precious time, if the contribution you are making will take
more
than an hour, please make sure it has been discussed in an issue first.
          This is especially true for feature requests!
* 💡 Features
Feature requests can be created and discussed within a GitHub Issue. Be
sure to search for existing feature requests (and related issues!) prior
to
opening a new request. If an existing issue covers the need, please
upvote
that issue by using the 👍 emote, rather than opening a new issue.
* 🔌 Integrations
Apollo Server has many web-framework integrations including Express,
Koa,
Hapi and more. When adding a new feature, or fixing a bug, please take a
peak and see if other integrations are also affected. In most cases, the
fix can be applied to the other frameworks as well. Please note that,
since new web-frameworks have a high maintenance cost, pull-requests for
new web-frameworks should be discussed with a project maintainer first.
* 🕷 Bug fixes
These can be created and discussed in this repository. When fixing a
bug,
please _try_ to add a test which verifies the fix. If you cannot, you
should
still submit the PR but we may still ask you (and help you!) to create a
test.
* 📖 Contribution guidelines
Follow
https://github.com/apollographql/apollo-server/blob/main/CONTRIBUTING.md
when submitting a pull request. Make sure existing tests still pass, and
add
          tests for all new behavior.
* ✏️ Explain your pull request
Describe the big picture of your changes here to communicate to what
your
pull request is meant to accomplish. Provide 🔗 links 🔗 to associated
issues!

We hope you will find this to be a positive experience! Open source
contribution can be intimidating and we hope to alleviate that pain as
much as possible. Without following these guidelines, you may be missing
context that can help you succeed with your contribution, which is why
we encourage discussion first. Ultimately, there is no guarantee that we
will be able to merge your pull-request, but by following these
guidelines we can try to avoid disappointment.
-->
  • Loading branch information
trevor-scheer committed Nov 23, 2022
1 parent 84bcdb7 commit 3fd7b5f
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 166 deletions.
8 changes: 8 additions & 0 deletions .changeset/lucky-falcons-bake.md
@@ -0,0 +1,8 @@
---
'@apollo/server-gateway-interface': patch
'@apollo/server-integration-testsuite': patch
'@apollo/server-plugin-response-cache': patch
'@apollo/server': patch
---

Update `@apollo/utils.keyvaluecache` dependency to the latest patch which correctly specifies its version of `lru-cache`.
218 changes: 57 additions & 161 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/gateway-interface/package.json
Expand Up @@ -20,7 +20,7 @@
"dependencies": {
"@apollo/utils.fetcher": "^2.0.0",
"@apollo/utils.logger": "^2.0.0",
"@apollo/utils.keyvaluecache": "^2.0.0",
"@apollo/utils.keyvaluecache": "^2.0.1",
"@apollo/usage-reporting-protobuf": "^4.0.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-testsuite/package.json
Expand Up @@ -30,7 +30,7 @@
"@apollo/client": "^3.6.9",
"@apollo/server": "4.2.0",
"@apollo/server-plugin-landing-page-graphql-playground": "^4.0.0",
"@apollo/utils.keyvaluecache": "^2.0.0",
"@apollo/utils.keyvaluecache": "^2.0.1",
"@apollo/utils.createhash": "^2.0.0",
"@apollo/usage-reporting-protobuf": "^4.0.0",
"@josephg/resolvable": "^1.0.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/integration-testsuite/tsconfig.cjs.json
Expand Up @@ -5,7 +5,10 @@
"moduleResolution": "node",
"esModuleInterop": true,
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
// DOM types needed for @apollo/client
// Ref: https://github.com/apollographql/apollo-client/issues/6376
"lib": ["es2020", "dom"]
},
"include": ["src/**/*"],
"references": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-response-cache/package.json
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@apollo/utils.createhash": "^2.0.0",
"@apollo/utils.keyvaluecache": "^2.0.0"
"@apollo/utils.keyvaluecache": "^2.0.1"
},
"peerDependencies": {
"@apollo/server": "^4.0.1",
Expand Down

0 comments on commit 3fd7b5f

Please sign in to comment.