@apollo/server-plugin-response-cache
Advanced tools
Comparing version 4.1.3 to 4.1.4
# @apollo/server-plugin-response-cache | ||
## 4.1.4 | ||
### Patch Changes | ||
- [#8010](https://github.com/apollographql/apollo-server/pull/8010) [`f4228e8`](https://github.com/apollographql/apollo-server/commit/f4228e88509b4cd2f50cf10bc6376d48488e03c1) Thanks [@glasser](https://github.com/glasser)! - Compatibility with Next.js Turbopack. Fixes #8004. | ||
## 4.1.3 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@apollo/server-plugin-response-cache", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "Apollo Server full query response cache", | ||
@@ -35,3 +35,3 @@ "type": "module", | ||
"dependencies": { | ||
"@apollo/utils.createhash": "^2.0.0", | ||
"@apollo/utils.createhash": "^2.0.2", | ||
"@apollo/utils.keyvaluecache": "^2.1.0" | ||
@@ -38,0 +38,0 @@ }, |
@@ -250,5 +250,4 @@ import type { CacheHint } from '@apollo/cache-control-types'; | ||
if (options.shouldReadFromCache) { | ||
const shouldReadFromCache = await options.shouldReadFromCache( | ||
requestContext, | ||
); | ||
const shouldReadFromCache = | ||
await options.shouldReadFromCache(requestContext); | ||
if (!shouldReadFromCache) return null; | ||
@@ -295,5 +294,4 @@ } | ||
if (options.shouldWriteToCache) { | ||
const shouldWriteToCache = await options.shouldWriteToCache( | ||
requestContext, | ||
); | ||
const shouldWriteToCache = | ||
await options.shouldWriteToCache(requestContext); | ||
if (!shouldWriteToCache) return; | ||
@@ -300,0 +298,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
163247
1215