@apollo/client 3.4.10 → 3.4.11
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 +2 -2
- package/apollo-client.cjs.js +4 -4
- package/apollo-client.cjs.js.map +1 -1
- package/apollo-core.cjs.js +8 -4
- package/apollo-core.cjs.js.map +1 -1
- package/apollo-core.cjs.min.js +1 -1
- package/core/core.cjs.js +1 -1
- package/core/core.cjs.js.map +1 -1
- package/invariantErrorCodes.js +1 -1
- package/link/persisted-queries/index.d.ts +1 -1
- package/link/persisted-queries/index.d.ts.map +1 -1
- package/link/persisted-queries/index.js +1 -1
- package/link/persisted-queries/index.js.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.js +3 -0
- package/link/persisted-queries/persisted-queries.cjs.js.map +1 -1
- package/package.json +10 -10
- package/utilities/common/mergeDeep.js +1 -1
- package/utilities/common/mergeDeep.js.map +1 -1
- package/utilities/globals/globals.cjs.js +1 -0
- package/utilities/globals/globals.cjs.js.map +1 -1
- package/utilities/globals/index.js +1 -0
- package/utilities/globals/index.js.map +1 -1
- package/utilities/graphql/fragments.js +1 -1
- package/utilities/graphql/fragments.js.map +1 -1
- package/utilities/graphql/transform.js +1 -1
- package/utilities/graphql/transform.js.map +1 -1
- package/utilities/policies/pagination.js +2 -2
- package/utilities/policies/pagination.js.map +1 -1
- package/utilities/testing/mocking/mockFetch.js +1 -1
- package/utilities/testing/mocking/mockFetch.js.map +1 -1
- package/utilities/testing/mocking/mockWatchQuery.js +1 -1
- package/utilities/testing/mocking/mockWatchQuery.js.map +1 -1
- package/utilities/testing/observableToPromise.js +1 -1
- package/utilities/testing/observableToPromise.js.map +1 -1
- package/utilities/utilities.cjs.js +5 -5
- package/utilities/utilities.cjs.js.map +1 -1
- package/version.js +1 -1
package/apollo-core.cjs.js
CHANGED
|
@@ -50,7 +50,11 @@ function removeTemporaryGlobals() {
|
|
|
50
50
|
return process$1.remove();
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
function checkDEV() {
|
|
54
|
+
__DEV__ ? tsInvariant.invariant("boolean" === typeof DEV, DEV) : tsInvariant.invariant("boolean" === typeof DEV, 38);
|
|
55
|
+
}
|
|
53
56
|
removeTemporaryGlobals();
|
|
57
|
+
checkDEV();
|
|
54
58
|
|
|
55
59
|
function shouldInclude(_a, variables) {
|
|
56
60
|
var directives = _a.directives;
|
|
@@ -145,7 +149,7 @@ function getFragmentQueryDocument(document, fragmentName) {
|
|
|
145
149
|
],
|
|
146
150
|
},
|
|
147
151
|
}
|
|
148
|
-
], document.definitions) });
|
|
152
|
+
], document.definitions, true) });
|
|
149
153
|
return query;
|
|
150
154
|
}
|
|
151
155
|
function createFragmentMap(fragments) {
|
|
@@ -581,7 +585,7 @@ var addTypenameToDocument = Object.assign(function (doc) {
|
|
|
581
585
|
field.directives.some(function (d) { return d.name.value === 'export'; })) {
|
|
582
586
|
return;
|
|
583
587
|
}
|
|
584
|
-
return tslib.__assign(tslib.__assign({}, node), { selections: tslib.__spreadArray(tslib.__spreadArray([], selections), [TYPENAME_FIELD]) });
|
|
588
|
+
return tslib.__assign(tslib.__assign({}, node), { selections: tslib.__spreadArray(tslib.__spreadArray([], selections, true), [TYPENAME_FIELD], false) });
|
|
585
589
|
},
|
|
586
590
|
},
|
|
587
591
|
});
|
|
@@ -760,7 +764,7 @@ var DeepMerger = (function () {
|
|
|
760
764
|
if (hasOwnProperty$3.call(target, sourceKey)) {
|
|
761
765
|
var targetValue = target[sourceKey];
|
|
762
766
|
if (source[sourceKey] !== targetValue) {
|
|
763
|
-
var result = _this.reconciler.apply(_this, tslib.__spreadArray([target, source, sourceKey], context));
|
|
767
|
+
var result = _this.reconciler.apply(_this, tslib.__spreadArray([target, source, sourceKey], context, false));
|
|
764
768
|
if (result !== targetValue) {
|
|
765
769
|
target = _this.shallowCopyForMerge(target);
|
|
766
770
|
target[sourceKey] = result;
|
|
@@ -1290,7 +1294,7 @@ var concat = ApolloLink.concat;
|
|
|
1290
1294
|
|
|
1291
1295
|
var execute = ApolloLink.execute;
|
|
1292
1296
|
|
|
1293
|
-
var version = '3.4.
|
|
1297
|
+
var version = '3.4.11';
|
|
1294
1298
|
|
|
1295
1299
|
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1296
1300
|
function parseAndCheckHttpResponse(operations) {
|