You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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-beta11

4

CHANGELOG.md

@@ -0,1 +1,5 @@

1.0.0-beta11 (Dan Reynolds)
- Default the `readPolicy` function in the policy action to use the ROOT_QUERY similarly to how the policies module does in apollo/client
1.0.0-beta10 (Dan Reynolds)

@@ -2,0 +6,0 @@

8

dist/cache/InvalidationPolicyCache.js

@@ -60,3 +60,3 @@ "use strict";

}
return this.policies.readField(typeof fieldNameOrOptions === "string"
const options = typeof fieldNameOrOptions === "string"
? {

@@ -66,3 +66,7 @@ fieldName: fieldNameOrOptions,

}
: fieldNameOrOptions, {
: fieldNameOrOptions;
if (void 0 === options.from) {
options.from = { __ref: 'ROOT_QUERY' };
}
return this.policies.readField(options, {
store: this.entityStoreRoot,

@@ -69,0 +73,0 @@ });

{
"name": "apollo-invalidation-policies",
"version": "1.0.0-beta10",
"version": "1.0.0-beta11",
"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