@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 +1 -1
- package/apollo-client.cjs +6 -6
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/invariantErrorCodes.js +1 -1
- package/link/persisted-queries/index.d.ts +2 -1
- package/link/persisted-queries/index.d.ts.map +1 -1
- package/link/persisted-queries/index.js +26 -13
- package/link/persisted-queries/index.js.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs +25 -12
- package/link/persisted-queries/persisted-queries.cjs.map +1 -1
- package/package.json +11 -11
- package/react/context/ApolloConsumer.js +2 -2
- package/react/context/ApolloProvider.js +2 -2
- package/react/context/context.cjs +4 -4
- package/react/context/context.cjs.map +1 -1
- package/react/hooks/hooks.cjs +1 -1
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/useQuery.d.ts.map +1 -1
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useQuery.js.map +1 -1
- package/testing/core/mocking/mockQueryManager.js +1 -1
- package/testing/core/mocking/mockWatchQuery.js +1 -1
- package/testing/core/wrap.js +1 -1
- package/utilities/globals/global.js +1 -2
- package/version.js +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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.
|
|
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
|
};
|