apollo-client
Advanced tools
Comparing version 2.4.3-local-state-alpha.5 to 2.4.3-local-state-alpha.6
@@ -23,2 +23,6 @@ import { ApolloLink, FetchResult, GraphQLRequest } from 'apollo-link'; | ||
defaultOptions?: DefaultOptions; | ||
localState?: { | ||
initializers?: LocalStateInitializers; | ||
resolvers?: LocalStateResolvers; | ||
}; | ||
}; | ||
@@ -25,0 +29,0 @@ export default class ApolloClient<TCacheShape> implements DataProxy { |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
this.resetStoreCallbacks = []; | ||
var link = options.link, cache = options.cache, _a = options.ssrMode, ssrMode = _a === void 0 ? false : _a, _b = options.ssrForceFetchDelay, ssrForceFetchDelay = _b === void 0 ? 0 : _b, connectToDevTools = options.connectToDevTools, _c = options.queryDeduplication, queryDeduplication = _c === void 0 ? true : _c, defaultOptions = options.defaultOptions; | ||
var link = options.link, cache = options.cache, _a = options.ssrMode, ssrMode = _a === void 0 ? false : _a, _b = options.ssrForceFetchDelay, ssrForceFetchDelay = _b === void 0 ? 0 : _b, connectToDevTools = options.connectToDevTools, _c = options.queryDeduplication, queryDeduplication = _c === void 0 ? true : _c, defaultOptions = options.defaultOptions, localState = options.localState; | ||
if (!link || !cache) { | ||
@@ -71,2 +71,6 @@ throw new Error("\n In order to initialize Apollo Client, you must specify link & cache properties on the config object.\n This is part of the required upgrade when migrating from Apollo Client 1.0 to Apollo Client 2.0.\n For more information, please visit:\n https://www.apollographql.com/docs/react/basics/setup.html\n to help you get started.\n "); | ||
this.version = version; | ||
if (localState) { | ||
this.addLocalStateInitializers(localState.initializers); | ||
this.addLocalStateResolvers(localState.resolvers); | ||
} | ||
} | ||
@@ -73,0 +77,0 @@ ApolloClient.prototype.watchQuery = function (options) { |
{ | ||
"name": "apollo-client", | ||
"version": "2.4.3-local-state-alpha.5", | ||
"version": "2.4.3-local-state-alpha.6", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -28,7 +28,7 @@ "main": "bundle.umd.js", | ||
"@types/zen-observable": "^0.8.0", | ||
"apollo-cache": "1.1.18-local-state-alpha.5", | ||
"apollo-cache": "1.1.18-local-state-alpha.6", | ||
"apollo-link": "^1.0.0", | ||
"apollo-link-dedup": "^1.0.0", | ||
"apollo-utilities": "1.0.22-local-state-alpha.5", | ||
"graphql-anywhere": "4.1.20-local-state-alpha.5", | ||
"apollo-utilities": "1.0.22-local-state-alpha.6", | ||
"graphql-anywhere": "4.1.20-local-state-alpha.6", | ||
"symbol-observable": "^1.0.2", | ||
@@ -35,0 +35,0 @@ "zen-observable": "^0.8.0" |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.4.3-local-state-alpha.5"; | ||
export declare const version = "2.4.3-local-state-alpha.6"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,1 +0,1 @@ | ||
exports.version = "2.4.3-local-state-alpha.5" | ||
exports.version = "2.4.3-local-state-alpha.6" |
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
Sorry, the diff of this file is not supported yet
501823
4852
+ Addedapollo-cache@1.1.18-local-state-alpha.6(transitive)
+ Addedapollo-utilities@1.0.22-local-state-alpha.6(transitive)
+ Addedgraphql-anywhere@4.1.20-local-state-alpha.6(transitive)
- Removedapollo-cache@1.1.18-local-state-alpha.5(transitive)
- Removedapollo-utilities@1.0.22-local-state-alpha.5(transitive)
- Removedgraphql-anywhere@4.1.20-local-state-alpha.5(transitive)