@apollo/client 3.8.0-beta.2 → 3.8.0-beta.3
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/apollo-client.cjs +32 -19
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs.map +1 -1
- package/cache/core/cache.d.ts +1 -1
- package/cache/core/cache.d.ts.map +1 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +3 -3
- package/cache/core/types/Cache.d.ts.map +1 -1
- package/cache/core/types/Cache.js +1 -0
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/core/types/common.d.ts +17 -6
- package/cache/core/types/common.d.ts.map +1 -1
- package/cache/core/types/common.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts +1 -1
- package/cache/inmemory/entityStore.d.ts.map +1 -1
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +1 -1
- package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/types.d.ts +2 -2
- package/cache/inmemory/types.d.ts.map +1 -1
- package/cache/inmemory/types.js.map +1 -1
- package/core/QueryManager.d.ts.map +1 -1
- package/core/QueryManager.js +5 -3
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +5 -4
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +5 -4
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/link/batch-http/batch-http.cjs +5 -4
- package/link/batch-http/batch-http.cjs.map +1 -1
- package/link/batch-http/batch-http.cjs.native.js +5 -4
- package/link/batch-http/batchHttpLink.d.ts.map +1 -1
- package/link/batch-http/batchHttpLink.js +1 -1
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/http/createHttpLink.js +1 -1
- package/link/http/createHttpLink.js.map +1 -1
- package/link/http/http.cjs +2 -3
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +2 -3
- package/link/http/selectHttpOptionsAndBody.d.ts +1 -1
- package/link/http/selectHttpOptionsAndBody.d.ts.map +1 -1
- package/link/http/selectHttpOptionsAndBody.js +1 -1
- package/link/http/selectHttpOptionsAndBody.js.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 +2 -3
- package/link/persisted-queries/persisted-queries.cjs.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.native.js +2 -3
- package/link/subscriptions/index.js +1 -1
- package/link/subscriptions/index.js.map +1 -1
- package/link/subscriptions/subscriptions.cjs +2 -3
- package/link/subscriptions/subscriptions.cjs.map +1 -1
- package/link/subscriptions/subscriptions.cjs.native.js +2 -3
- package/link/utils/filterOperationVariables.d.ts +2 -2
- package/link/utils/filterOperationVariables.d.ts.map +1 -1
- package/link/utils/filterOperationVariables.js +5 -4
- package/link/utils/filterOperationVariables.js.map +1 -1
- package/link/utils/utils.cjs +4 -3
- package/link/utils/utils.cjs.map +1 -1
- package/link/utils/utils.cjs.native.js +4 -3
- package/package.json +1 -1
- package/react/cache/SuspenseCache.d.ts +0 -1
- package/react/cache/SuspenseCache.d.ts.map +1 -1
- package/react/cache/SuspenseCache.js +10 -10
- package/react/cache/SuspenseCache.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +14 -5
- package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useSuspenseQuery.d.ts +0 -1
- package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/react.cjs +10 -10
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +10 -10
- package/react/types/types.d.ts +1 -0
- package/react/types/types.d.ts.map +1 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/core.cjs +2 -3
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +2 -3
- package/testing/core/mocking/mockLink.d.ts.map +1 -1
- package/testing/core/mocking/mockLink.js +1 -2
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/matchers/index.js +2 -0
- package/testing/matchers/index.js.map +1 -1
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +12 -0
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts.map +1 -0
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +18 -0
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -0
- package/testing/matchers/toMatchDocument.d.ts.map +1 -1
- package/testing/matchers/toMatchDocument.js +1 -2
- package/testing/matchers/toMatchDocument.js.map +1 -1
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/graphql/print.d.ts +3 -0
- package/utilities/graphql/print.d.ts.map +1 -0
- package/utilities/graphql/print.js +13 -0
- package/utilities/graphql/print.js.map +1 -0
- package/utilities/index.d.ts +1 -0
- package/utilities/index.d.ts.map +1 -1
- package/utilities/index.js +1 -0
- package/utilities/index.js.map +1 -1
- package/utilities/utilities.cjs +12 -0
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +12 -0
- package/version.js +1 -1
|
@@ -519,6 +519,17 @@ var DocumentTransform = (function () {
|
|
|
519
519
|
return DocumentTransform;
|
|
520
520
|
}());
|
|
521
521
|
|
|
522
|
+
var printCache = canUseWeakMap ? new WeakMap() : undefined;
|
|
523
|
+
var print = function (ast) {
|
|
524
|
+
var result;
|
|
525
|
+
result = printCache === null || printCache === void 0 ? void 0 : printCache.get(ast);
|
|
526
|
+
if (!result) {
|
|
527
|
+
result = graphql.print(ast);
|
|
528
|
+
printCache === null || printCache === void 0 ? void 0 : printCache.set(ast, result);
|
|
529
|
+
}
|
|
530
|
+
return result;
|
|
531
|
+
};
|
|
532
|
+
|
|
522
533
|
var isArray = Array.isArray;
|
|
523
534
|
function isNonEmptyArray(value) {
|
|
524
535
|
return Array.isArray(value) && value.length > 0;
|
|
@@ -1629,6 +1640,7 @@ exports.mergeIncrementalData = mergeIncrementalData;
|
|
|
1629
1640
|
exports.mergeOptions = mergeOptions;
|
|
1630
1641
|
exports.offsetLimitPagination = offsetLimitPagination;
|
|
1631
1642
|
exports.omitDeep = omitDeep;
|
|
1643
|
+
exports.print = print;
|
|
1632
1644
|
exports.relayStylePagination = relayStylePagination;
|
|
1633
1645
|
exports.removeArgumentsFromDocument = removeArgumentsFromDocument;
|
|
1634
1646
|
exports.removeClientSetsFromDocument = removeClientSetsFromDocument;
|
package/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = '3.8.0-beta.
|
|
1
|
+
export var version = '3.8.0-beta.3';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|