@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 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 Graph, Inc.](https://apollographql.com/) creates industry-leading tools for building applications with GraphQL:
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
- - [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).
34
- - [Apollo Server](https://www.apollographql.com/docs/apollo-server/) – Build a production-ready JavaScript GraphQL server with a schema-first approach.
35
- - [Apollo Studio](https://www.apollographql.com/studio/develop/) – A turnkey portal for GraphQL developers, featuring a powerful GraphQL IDE (the [Apollo Explorer](https://www.apollographql.com/docs/studio/explorer/)), metrics reporting, schema search, and documentation.
36
- - [Apollo Federation](https://www.apollographql.com/apollo-federation) – Create and manage a single data graph composed of subgraphs that can be developed independently.
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
- We are fully committed to advancing the frontier of graph development with open-source libraries, hosted software tooling, developer extensions, and community contributions.
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.
@@ -1286,7 +1286,7 @@ var concat = ApolloLink.concat;
1286
1286
 
1287
1287
  var execute = ApolloLink.execute;
1288
1288
 
1289
- var version = '3.4.15';
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) {