@apollo/client
Advanced tools
Comparing version 3.0.0-beta.23 to 3.0.0-beta.24
const allExports = require('../apollo-client.cjs'); | ||
const names = new Set(["ApolloCache","Cache","InMemoryCache","defaultDataIdFromObject"]); | ||
const names = new Set(["ApolloCache","Cache","isReference","makeReference","InMemoryCache","defaultDataIdFromObject"]); | ||
Object.keys(allExports).forEach(name => { | ||
@@ -4,0 +4,0 @@ if (names.has(name)) { |
export { Transaction, ApolloCache } from './core/cache'; | ||
export { Cache } from './core/types/Cache'; | ||
export { DataProxy } from './core/types/DataProxy'; | ||
export { Reference, isReference, makeReference, } from '../utilities/graphql/storeUtils'; | ||
export { InMemoryCache, InMemoryCacheConfig, } from './inmemory/inMemoryCache'; | ||
@@ -5,0 +6,0 @@ export { defaultDataIdFromObject } from './inmemory/policies'; |
export { ApolloCache } from './core/cache'; | ||
export { Cache } from './core/types/Cache'; | ||
export { isReference, makeReference, } from '../utilities/graphql/storeUtils'; | ||
export { InMemoryCache, } from './inmemory/inMemoryCache'; | ||
export { defaultDataIdFromObject } from './inmemory/policies'; | ||
//# sourceMappingURL=index.js.map |
@@ -29,3 +29,3 @@ import { __assign, __extends } from 'tslib'; | ||
return storeObject; | ||
if (hasOwn.call(storeObject, fieldName)) { | ||
if (storeObject && hasOwn.call(storeObject, fieldName)) { | ||
return storeObject[fieldName]; | ||
@@ -32,0 +32,0 @@ } |
@@ -42,3 +42,5 @@ import './fixPolyfills'; | ||
private maybeBroadcastWatch; | ||
makeLocalVar<T>(value: T): LocalVar<T>; | ||
} | ||
export declare type LocalVar<T> = (newValue?: T) => T; | ||
//# sourceMappingURL=inMemoryCache.d.ts.map |
@@ -5,3 +5,3 @@ import { __extends, __assign } from 'tslib'; | ||
import './fixPolyfills.js'; | ||
import { wrap } from 'optimism'; | ||
import { wrap, dep } from 'optimism'; | ||
import { EntityStore, supportsResultCaching } from './entityStore.js'; | ||
@@ -184,6 +184,21 @@ import { StoreReader } from './readFromStore.js'; | ||
}; | ||
InMemoryCache.prototype.makeLocalVar = function (value) { | ||
return function LocalVar(newValue) { | ||
if (arguments.length > 0) { | ||
if (value !== newValue) { | ||
value = newValue; | ||
localVarDep.dirty(LocalVar); | ||
} | ||
} | ||
else { | ||
localVarDep(LocalVar); | ||
} | ||
return value; | ||
}; | ||
}; | ||
return InMemoryCache; | ||
}(ApolloCache)); | ||
var localVarDep = dep(); | ||
export { InMemoryCache }; | ||
//# sourceMappingURL=inMemoryCache.js.map |
import { DocumentNode } from 'graphql'; | ||
import { Transaction } from '../core/cache'; | ||
import { StoreValue } from '../../utilities/graphql/storeUtils'; | ||
export { StoreValue }; | ||
export interface IdGetterObj extends Object { | ||
@@ -5,0 +6,0 @@ __typename?: string; |
export { default as Observable } from 'zen-observable'; | ||
export { isReference, makeReference } from './utilities/graphql/storeUtils.js'; | ||
export { getMainDefinition } from './utilities/graphql/getFromAST.js'; | ||
@@ -3,0 +4,0 @@ export { ApolloLink } from './link/core/ApolloLink.js'; |
{ | ||
"name": "@apollo/client", | ||
"version": "3.0.0-beta.23", | ||
"version": "3.0.0-beta.24", | ||
"description": "A fully-featured caching GraphQL client.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2042205
19618