You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

apollo-invalidation-policies

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-invalidation-policies - npm Package Compare versions

Comparing version

to
1.0.0-beta14

4

CHANGELOG.md

@@ -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 @@

6

dist/cache/InvalidationPolicyCache.js

@@ -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