@apollo/client 3.4.15 → 3.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/apollo-client.cjs.js +12 -11
- package/apollo-client.cjs.js.map +1 -1
- package/apollo-client.cjs.min.js +1 -1
- package/core/ApolloClient.d.ts.map +1 -1
- package/core/ApolloClient.js +6 -2
- package/core/ApolloClient.js.map +1 -1
- package/core/QueryManager.d.ts +2 -3
- package/core/QueryManager.d.ts.map +1 -1
- package/core/QueryManager.js +5 -8
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs.js +12 -11
- package/core/core.cjs.js.map +1 -1
- package/invariantErrorCodes.js +1 -1
- package/package.json +4 -4
- package/utilities/globals/{graphql.d.ts → fix-graphql.d.ts} +1 -1
- package/utilities/globals/fix-graphql.d.ts.map +1 -0
- package/utilities/globals/fix-graphql.js +6 -0
- package/utilities/globals/fix-graphql.js.map +1 -0
- package/utilities/globals/globals.cjs.js +1 -2
- package/utilities/globals/globals.cjs.js.map +1 -1
- package/utilities/globals/index.js +1 -1
- package/utilities/globals/index.js.map +1 -1
- package/version.js +1 -1
- package/utilities/globals/graphql.d.ts.map +0 -1
- package/utilities/globals/graphql.js +0 -7
- package/utilities/globals/graphql.js.map +0 -1
package/README.md
CHANGED
|
@@ -28,11 +28,13 @@ Learn how to use Apollo Client with self-paced hands-on training on Odyssey, Apo
|
|
|
28
28
|
|
|
29
29
|
## Who is Apollo?
|
|
30
30
|
|
|
31
|
-
[Apollo
|
|
31
|
+
[Apollo](https://apollographql.com/) builds open-source software and a graph platform to unify GraphQL across your apps and services. We help you ship faster with:
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
* [Apollo Studio](https://www.apollographql.com/studio/develop/) – A free, end-to-end platform for managing your GraphQL lifecycle. Track your GraphQL schemas in a hosted registry to create a source of truth for everything in your graph. Studio provides an IDE (Apollo Explorer) so you can explore data, collaborate on queries, observe usage, and safely make schema changes.
|
|
34
|
+
* [Apollo Federation](https://www.apollographql.com/apollo-federation) – The industry-standard open architecture for building a distributed graph. Use Apollo’s open-source gateway to compose a unified graph from multiple subgraphs, determine a query plan, and route requests across your services.
|
|
35
|
+
* [Apollo Client](https://www.apollographql.com/apollo-client/) – The most popular GraphQL client for the web. Apollo also builds and maintains [Apollo iOS](https://github.com/apollographql/apollo-ios) and [Apollo Android](https://github.com/apollographql/apollo-android).
|
|
36
|
+
* [Apollo Server](https://www.apollographql.com/docs/apollo-server/) – A production-ready JavaScript GraphQL server that connects to any microservice, API, or database. Compatible with all popular JavaScript frameworks and deployable in serverless environments.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
## Learn how to build with Apollo
|
|
39
|
+
|
|
40
|
+
Check out the [Odyssey](https://odyssey.apollographql.com/) learning platform, the perfect place to start your GraphQL journey with videos and interactive code challenges. Join the [Apollo Community](https://community.apollographql.com/) to interact with and get technical help from the GraphQL community.
|
package/apollo-client.cjs.js
CHANGED
|
@@ -1286,7 +1286,7 @@ var concat = ApolloLink.concat;
|
|
|
1286
1286
|
|
|
1287
1287
|
var execute = ApolloLink.execute;
|
|
1288
1288
|
|
|
1289
|
-
var version = '3.4.
|
|
1289
|
+
var version = '3.4.16';
|
|
1290
1290
|
|
|
1291
1291
|
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1292
1292
|
function parseAndCheckHttpResponse(operations) {
|
|
@@ -5043,7 +5043,10 @@ var QueryManager = (function () {
|
|
|
5043
5043
|
if (queryInfo)
|
|
5044
5044
|
queryInfo.stop();
|
|
5045
5045
|
};
|
|
5046
|
-
QueryManager.prototype.clearStore = function () {
|
|
5046
|
+
QueryManager.prototype.clearStore = function (options) {
|
|
5047
|
+
if (options === void 0) { options = {
|
|
5048
|
+
discardWatches: true,
|
|
5049
|
+
}; }
|
|
5047
5050
|
this.cancelPendingFetches(__DEV__ ? new tsInvariant.InvariantError('Store reset while query was in flight (not completed in link chain)') : new tsInvariant.InvariantError(20));
|
|
5048
5051
|
this.queries.forEach(function (queryInfo) {
|
|
5049
5052
|
if (queryInfo.observableQuery) {
|
|
@@ -5056,13 +5059,7 @@ var QueryManager = (function () {
|
|
|
5056
5059
|
if (this.mutationStore) {
|
|
5057
5060
|
this.mutationStore = Object.create(null);
|
|
5058
5061
|
}
|
|
5059
|
-
return this.cache.reset();
|
|
5060
|
-
};
|
|
5061
|
-
QueryManager.prototype.resetStore = function () {
|
|
5062
|
-
var _this = this;
|
|
5063
|
-
return this.clearStore().then(function () {
|
|
5064
|
-
return _this.reFetchObservableQueries();
|
|
5065
|
-
});
|
|
5062
|
+
return this.cache.reset(options);
|
|
5066
5063
|
};
|
|
5067
5064
|
QueryManager.prototype.getObservableQueries = function (include) {
|
|
5068
5065
|
var _this = this;
|
|
@@ -5674,14 +5671,18 @@ var ApolloClient = (function () {
|
|
|
5674
5671
|
ApolloClient.prototype.resetStore = function () {
|
|
5675
5672
|
var _this = this;
|
|
5676
5673
|
return Promise.resolve()
|
|
5677
|
-
.then(function () { return _this.queryManager.clearStore(
|
|
5674
|
+
.then(function () { return _this.queryManager.clearStore({
|
|
5675
|
+
discardWatches: false,
|
|
5676
|
+
}); })
|
|
5678
5677
|
.then(function () { return Promise.all(_this.resetStoreCallbacks.map(function (fn) { return fn(); })); })
|
|
5679
5678
|
.then(function () { return _this.reFetchObservableQueries(); });
|
|
5680
5679
|
};
|
|
5681
5680
|
ApolloClient.prototype.clearStore = function () {
|
|
5682
5681
|
var _this = this;
|
|
5683
5682
|
return Promise.resolve()
|
|
5684
|
-
.then(function () { return _this.queryManager.clearStore(
|
|
5683
|
+
.then(function () { return _this.queryManager.clearStore({
|
|
5684
|
+
discardWatches: true,
|
|
5685
|
+
}); })
|
|
5685
5686
|
.then(function () { return Promise.all(_this.clearStoreCallbacks.map(function (fn) { return fn(); })); });
|
|
5686
5687
|
};
|
|
5687
5688
|
ApolloClient.prototype.onResetStore = function (cb) {
|