@apollo/client 3.6.1 → 3.7.0-alpha.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
3
+ Copyright (c) 2022 Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/apollo-client.cjs CHANGED
@@ -1298,7 +1298,7 @@ var concat = ApolloLink.concat;
1298
1298
 
1299
1299
  var execute = ApolloLink.execute;
1300
1300
 
1301
- var version = '3.6.1';
1301
+ var version = '3.7.0-alpha.1';
1302
1302
 
1303
1303
  var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
1304
1304
  function parseAndCheckHttpResponse(operations) {
@@ -6004,17 +6004,17 @@ function getApolloContext() {
6004
6004
 
6005
6005
  var ApolloConsumer = function (props) {
6006
6006
  var ApolloContext = getApolloContext();
6007
- return React__namespace.createElement(ApolloContext.Consumer, null, function (context) {
6007
+ return (React__namespace.createElement(ApolloContext.Consumer, null, function (context) {
6008
6008
  __DEV__ ? tsInvariant.invariant(context && context.client, 'Could not find "client" in the context of ApolloConsumer. ' +
6009
6009
  'Wrap the root component in an <ApolloProvider>.') : tsInvariant.invariant(context && context.client, 25);
6010
6010
  return props.children(context.client);
6011
- });
6011
+ }));
6012
6012
  };
6013
6013
 
6014
6014
  var ApolloProvider = function (_a) {
6015
6015
  var client = _a.client, children = _a.children;
6016
6016
  var ApolloContext = getApolloContext();
6017
- return React__namespace.createElement(ApolloContext.Consumer, null, function (context) {
6017
+ return (React__namespace.createElement(ApolloContext.Consumer, null, function (context) {
6018
6018
  if (context === void 0) { context = {}; }
6019
6019
  if (client && context.client !== client) {
6020
6020
  context = Object.assign({}, context, { client: client });
@@ -6022,7 +6022,7 @@ var ApolloProvider = function (_a) {
6022
6022
  __DEV__ ? tsInvariant.invariant(context.client, 'ApolloProvider was not passed a client instance. Make ' +
6023
6023
  'sure you pass in your client via the "client" prop.') : tsInvariant.invariant(context.client, 26);
6024
6024
  return (React__namespace.createElement(ApolloContext.Provider, { value: context }, children));
6025
- });
6025
+ }));
6026
6026
  };
6027
6027
 
6028
6028
  function useApolloClient(override) {
@@ -6218,7 +6218,7 @@ var InternalState = (function () {
6218
6218
  obsQuery,
6219
6219
  this.renderPromises,
6220
6220
  this.client.disableNetworkFetches,
6221
- ]), function () { return _this.getCurrentResult(); });
6221
+ ]), function () { return _this.getCurrentResult(); }, function () { return _this.getCurrentResult(); });
6222
6222
  this.unsafeHandlePartialRefetch(result);
6223
6223
  return this.toQueryResult(result);
6224
6224
  };