Skip to content

Commit

Permalink
fix(deps): update dependency @apollo/utils.keyvaluecache to v2 (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Dec 10, 2022
1 parent 3ce7579 commit 0f94ad9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 118 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-carpets-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/datasource-rest': minor
---

If your provided `cache` is created with `PrefixingKeyValueCache.cacheDangerouslyDoesNotNeedPrefixesForIsolation` (new in `@apollo/utils.keyvaluecache@2.1.0`), the `httpcache:` prefix will not be added to cache keys.
145 changes: 29 additions & 116 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"dependencies": {
"@apollo/utils.fetcher": "^2.0.0",
"@apollo/utils.keyvaluecache": "^1.0.2",
"@apollo/utils.keyvaluecache": "^2.0.0",
"@types/http-cache-semantics": "^4.0.1",
"http-cache-semantics": "^4.1.0",
"lodash.isplainobject": "^4.0.6",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/RESTDataSource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ describe('RESTDataSource', () => {
override baseURL = 'https://api.example.com';

override cacheKeyFor(url: URL, _request: RequestOptions) {
const urlNoSearchParams = new URL(url);
const urlNoSearchParams = new URL(url.toString());
urlNoSearchParams.search = '';
return urlNoSearchParams.toString();
}
Expand Down

0 comments on commit 0f94ad9

Please sign in to comment.