@apollo/client 3.7.1 → 3.7.2

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
@@ -19,7 +19,7 @@ The Apollo Client API reference can be found at: <br/>
19
19
  Learn how to use Apollo Client with self-paced hands-on training on Odyssey, Apollo's official learning platform: <br/>
20
20
  [https://odyssey.apollographql.com/](https://odyssey.apollographql.com/)
21
21
 
22
- ## Apollo Maintainers
22
+ ## Maintainers
23
23
 
24
24
  - [@benjamn](https://github.com/benjamn)
25
25
  - [@alessbell](https://github.com/alessbell)
@@ -33,10 +33,10 @@ Learn how to use Apollo Client with self-paced hands-on training on Odyssey, Apo
33
33
 
34
34
  [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:
35
35
 
36
- * [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.
37
- * [Apollo Federation](https://www.apollographql.com/apollo-federation) – The industry-standard open architecture for building a distributed graph. Use Apollo’s gateway to compose a unified graph from multiple subgraphs, determine a query plan, and route requests across your services.
38
- * [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).
39
- * [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.
36
+ - [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.
37
+ - [Apollo Federation](https://www.apollographql.com/apollo-federation) – The industry-standard open architecture for building a distributed graph. Use Apollo’s gateway to compose a unified graph from multiple subgraphs, determine a query plan, and route requests across your services.
38
+ - [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).
39
+ - [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.
40
40
 
41
41
  ## Learn how to build with Apollo
42
42
 
package/apollo-client.cjs CHANGED
@@ -1300,7 +1300,7 @@ var concat = ApolloLink.concat;
1300
1300
 
1301
1301
  var execute = ApolloLink.execute;
1302
1302
 
1303
- var version = '3.7.1';
1303
+ var version = '3.7.2';
1304
1304
 
1305
1305
  function isNodeResponse(value) {
1306
1306
  return !!value.body;
@@ -4201,6 +4201,7 @@ var ApolloError = (function (_super) {
4201
4201
  function ApolloError(_a) {
4202
4202
  var graphQLErrors = _a.graphQLErrors, clientErrors = _a.clientErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo;
4203
4203
  var _this = _super.call(this, errorMessage) || this;
4204
+ _this.name = 'ApolloError';
4204
4205
  _this.graphQLErrors = graphQLErrors || [];
4205
4206
  _this.clientErrors = clientErrors || [];
4206
4207
  _this.networkError = networkError || null;
@@ -5850,7 +5851,6 @@ var QueryManager = (function () {
5850
5851
  };
5851
5852
  QueryManager.prototype.getResultsFromLink = function (queryInfo, cacheWriteBehavior, options) {
5852
5853
  var requestId = queryInfo.lastRequestId = this.generateRequestId();
5853
- options = cloneDeep(options);
5854
5854
  var linkDocument = this.cache.transformForLink(this.transform(queryInfo.document).document);
5855
5855
  return asyncMap(this.getObservableFromLink(linkDocument, options.context, options.variables), function (result) {
5856
5856
  var graphQLErrors = isNonEmptyArray(result.errors)
@@ -6149,7 +6149,7 @@ var ApolloClient = (function () {
6149
6149
  if (connectToDevTools && typeof window === 'object') {
6150
6150
  window.__APOLLO_CLIENT__ = this;
6151
6151
  }
6152
- if (!hasSuggestedDevtools && __DEV__) {
6152
+ if (!hasSuggestedDevtools && connectToDevTools && __DEV__) {
6153
6153
  hasSuggestedDevtools = true;
6154
6154
  if (typeof window !== 'undefined' &&
6155
6155
  window.document &&