@nerdwallet/apollo-cache-policies
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
2.0.3 (Dan Reynolds) | ||
* Filter out dangling references from collection entities | ||
2.0.2 (Dan Reynolds) | ||
@@ -2,0 +6,0 @@ |
@@ -237,5 +237,5 @@ "use strict"; | ||
fields: { | ||
data: (existing) => { | ||
data: (existing, { canRead }) => { | ||
return [ | ||
...existing, | ||
...existing.filter((ref) => canRead(ref)), | ||
core_1.makeReference(dataId), | ||
@@ -242,0 +242,0 @@ ]; |
{ | ||
"name": "@nerdwallet/apollo-cache-policies", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "An extension to the InMemoryCache from Apollo that adds additional cache policies.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
269966
0.08%