moved apollo-client to client code

This commit is contained in:
Eric Burel 2018-09-26 10:17:03 +02:00
parent a50fc3ddb3
commit 9cc23a1e4f
12 changed files with 53 additions and 4 deletions

48
package-lock.json generated
View file

@ -172,6 +172,25 @@
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
"integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8="
},
"apollo-cache": {
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/apollo-cache/-/apollo-cache-1.1.17.tgz",
"integrity": "sha512-7sp24n2HZO4vXgTaKNomLyIfGxG4gDdDkBB0jkRzRi7HhnKmfwhiF/RCiKNbgLdrPX151INdls0KwIVliD0dHQ==",
"requires": {
"apollo-utilities": "^1.0.21"
},
"dependencies": {
"apollo-utilities": {
"version": "1.0.21",
"resolved": "https://registry.npmjs.org/apollo-utilities/-/apollo-utilities-1.0.21.tgz",
"integrity": "sha512-ZcxELlEl+sDCYBgEMdNXJAsZtRVm8wk4HIA58bMsqYfd1DSAJQEtZ93F0GZgYNAGy3QyaoBeZtbb0/01++G8JQ==",
"requires": {
"fast-json-stable-stringify": "^2.0.0",
"fclone": "^1.0.11"
}
}
}
},
"apollo-cache-control": {
"version": "0.0.7",
"resolved": "https://registry.npmjs.org/apollo-cache-control/-/apollo-cache-control-0.0.7.tgz",
@ -180,6 +199,35 @@
"graphql-extensions": "^0.0.x"
}
},
"apollo-cache-inmemory": {
"version": "1.2.10",
"resolved": "https://registry.npmjs.org/apollo-cache-inmemory/-/apollo-cache-inmemory-1.2.10.tgz",
"integrity": "sha512-eBusPFVtYIuo+PIfJdAwUCQ4cs7AJ4mB7sTdXxNQCXToYw8mzE6EfHnV37kdVfBXSaa82BzE2rb/YUq/duuamw==",
"requires": {
"apollo-cache": "^1.1.17",
"apollo-utilities": "^1.0.21",
"graphql-anywhere": "^4.1.19"
},
"dependencies": {
"apollo-utilities": {
"version": "1.0.21",
"resolved": "https://registry.npmjs.org/apollo-utilities/-/apollo-utilities-1.0.21.tgz",
"integrity": "sha512-ZcxELlEl+sDCYBgEMdNXJAsZtRVm8wk4HIA58bMsqYfd1DSAJQEtZ93F0GZgYNAGy3QyaoBeZtbb0/01++G8JQ==",
"requires": {
"fast-json-stable-stringify": "^2.0.0",
"fclone": "^1.0.11"
}
},
"graphql-anywhere": {
"version": "4.1.19",
"resolved": "https://registry.npmjs.org/graphql-anywhere/-/graphql-anywhere-4.1.19.tgz",
"integrity": "sha512-mQlvbECzYPBcgBC9JsdM4v+DSvNmcIP+8Vwr+ij3gktbaLSE0Iza30mztuz40Jlf7ooMs+0emBZucNjLzqz7tA==",
"requires": {
"apollo-utilities": "^1.0.21"
}
}
}
},
"apollo-client": {
"version": "1.9.3",
"resolved": "https://registry.npmjs.org/apollo-client/-/apollo-client-1.9.3.tgz",

View file

@ -13,6 +13,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0-beta.38",
"analytics-node": "^2.1.1",
"apollo-cache-inmemory": "^1.2.10",
"apollo-client": "^1.2.2",
"apollo-engine": "^0.5.4",
"apollo-errors": "^1.4.0",

View file

@ -1,4 +1,4 @@
import { InMemoryCache } from 'apollo-client-inmemory'
import { InMemoryCache } from 'apollo-cache-inmemory'
const cache = new InMemoryCache()
export default cache

View file

@ -5,7 +5,7 @@
*/
import WatchedMutationLink from 'apollo-link-watched-mutation';
import { WatchedMutations } from '../updates';
import cache from '../updates'
import cache from '../cache'
const watchedMutationLink = new WatchedMutationLink(cache, WatchedMutations);
export default watchedMutationLink

View file

@ -5,4 +5,4 @@ export * from './mongo_redux.js';
export * from './render_context.js';
export * from './inject_data.js';
export * from './apollo2.js';
export * from './apollo-client/apollo2.js';

View file

@ -32,5 +32,5 @@ export * from './intl.js';
export * from './detect_locale.js';
export * from './graphql_templates.js';
export * from './validation.js';
export * from './apollo-client/updates.js';
// export * from './apollo-client/updates.js';
// export * from './resolvers.js';