apollo-invalidation-policies
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
1.0.0-beta14 (Dan Reynolds) | ||
- Bugfix for fixing eviction/mutation changes to the cache via the wrapper `wrapDestructiveCacheMethod` function. | ||
1.0.0-beta13 (Dan Reynolds) | ||
@@ -2,0 +6,0 @@ |
@@ -44,5 +44,5 @@ "use strict"; | ||
cacheOperations: { | ||
evict: this.evict.bind(this), | ||
modify: this.modify.bind(this), | ||
readField: this.readField.bind(this), | ||
evict: (...args) => this.evict(...args), | ||
modify: (...args) => this.modify(...args), | ||
readField: (...args) => this.readField(...args), | ||
}, | ||
@@ -49,0 +49,0 @@ }); |
@@ -62,3 +62,3 @@ import { FieldNode } from 'graphql'; | ||
export declare type CacheOperations = { | ||
evict: (options: Cache.EvictOptions, fieldName?: string, args?: Record<string, any>) => boolean; | ||
evict: (options: Cache.EvictOptions) => boolean; | ||
modify: (options: Cache.ModifyOptions) => boolean; | ||
@@ -68,3 +68,3 @@ readField: (fieldNameOrOptions?: string | ReadFieldOptions | undefined, from?: StoreObject | Reference) => StoreValue | undefined; | ||
export declare type PolicyActionCacheOperations = { | ||
evict: (options: Omit<Cache.EvictOptions, "broadcast">, fieldName?: string, args?: Record<string, any>) => boolean; | ||
evict: (options: Omit<Cache.EvictOptions, "broadcast">) => boolean; | ||
modify: (options: Omit<Cache.ModifyOptions, "broadcast">) => boolean; | ||
@@ -71,0 +71,0 @@ readField: (fieldNameOrOptions?: string | ReadFieldOptions | undefined, from?: StoreObject | Reference) => StoreValue | undefined; |
{ | ||
"name": "apollo-invalidation-policies", | ||
"version": "1.0.0-beta13", | ||
"version": "1.0.0-beta14", | ||
"description": "An extension to the InMemoryCache from Apollo for type-based invalidation 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
Sorry, the diff of this file is not supported yet
569303
0