@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.
Files changed (111) hide show
  1. package/apollo-client.cjs +32 -19
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -1
  4. package/cache/cache.cjs.map +1 -1
  5. package/cache/core/cache.d.ts +1 -1
  6. package/cache/core/cache.d.ts.map +1 -1
  7. package/cache/core/cache.js.map +1 -1
  8. package/cache/core/types/Cache.d.ts +3 -3
  9. package/cache/core/types/Cache.d.ts.map +1 -1
  10. package/cache/core/types/Cache.js +1 -0
  11. package/cache/core/types/Cache.js.map +1 -1
  12. package/cache/core/types/common.d.ts +17 -6
  13. package/cache/core/types/common.d.ts.map +1 -1
  14. package/cache/core/types/common.js.map +1 -1
  15. package/cache/inmemory/entityStore.d.ts +1 -1
  16. package/cache/inmemory/entityStore.d.ts.map +1 -1
  17. package/cache/inmemory/entityStore.js.map +1 -1
  18. package/cache/inmemory/inMemoryCache.d.ts +1 -1
  19. package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
  20. package/cache/inmemory/inMemoryCache.js.map +1 -1
  21. package/cache/inmemory/types.d.ts +2 -2
  22. package/cache/inmemory/types.d.ts.map +1 -1
  23. package/cache/inmemory/types.js.map +1 -1
  24. package/core/QueryManager.d.ts.map +1 -1
  25. package/core/QueryManager.js +5 -3
  26. package/core/QueryManager.js.map +1 -1
  27. package/core/core.cjs +5 -4
  28. package/core/core.cjs.map +1 -1
  29. package/core/core.cjs.native.js +5 -4
  30. package/dev/dev.cjs +1 -1
  31. package/dev/dev.cjs.map +1 -1
  32. package/dev/dev.cjs.native.js +1 -1
  33. package/link/batch-http/batch-http.cjs +5 -4
  34. package/link/batch-http/batch-http.cjs.map +1 -1
  35. package/link/batch-http/batch-http.cjs.native.js +5 -4
  36. package/link/batch-http/batchHttpLink.d.ts.map +1 -1
  37. package/link/batch-http/batchHttpLink.js +1 -1
  38. package/link/batch-http/batchHttpLink.js.map +1 -1
  39. package/link/http/createHttpLink.js +1 -1
  40. package/link/http/createHttpLink.js.map +1 -1
  41. package/link/http/http.cjs +2 -3
  42. package/link/http/http.cjs.map +1 -1
  43. package/link/http/http.cjs.native.js +2 -3
  44. package/link/http/selectHttpOptionsAndBody.d.ts +1 -1
  45. package/link/http/selectHttpOptionsAndBody.d.ts.map +1 -1
  46. package/link/http/selectHttpOptionsAndBody.js +1 -1
  47. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  48. package/link/persisted-queries/index.js +1 -1
  49. package/link/persisted-queries/index.js.map +1 -1
  50. package/link/persisted-queries/persisted-queries.cjs +2 -3
  51. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  52. package/link/persisted-queries/persisted-queries.cjs.native.js +2 -3
  53. package/link/subscriptions/index.js +1 -1
  54. package/link/subscriptions/index.js.map +1 -1
  55. package/link/subscriptions/subscriptions.cjs +2 -3
  56. package/link/subscriptions/subscriptions.cjs.map +1 -1
  57. package/link/subscriptions/subscriptions.cjs.native.js +2 -3
  58. package/link/utils/filterOperationVariables.d.ts +2 -2
  59. package/link/utils/filterOperationVariables.d.ts.map +1 -1
  60. package/link/utils/filterOperationVariables.js +5 -4
  61. package/link/utils/filterOperationVariables.js.map +1 -1
  62. package/link/utils/utils.cjs +4 -3
  63. package/link/utils/utils.cjs.map +1 -1
  64. package/link/utils/utils.cjs.native.js +4 -3
  65. package/package.json +1 -1
  66. package/react/cache/SuspenseCache.d.ts +0 -1
  67. package/react/cache/SuspenseCache.d.ts.map +1 -1
  68. package/react/cache/SuspenseCache.js +10 -10
  69. package/react/cache/SuspenseCache.js.map +1 -1
  70. package/react/hooks/useBackgroundQuery.d.ts +14 -5
  71. package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
  72. package/react/hooks/useBackgroundQuery.js.map +1 -1
  73. package/react/hooks/useSuspenseQuery.d.ts +0 -1
  74. package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
  75. package/react/hooks/useSuspenseQuery.js.map +1 -1
  76. package/react/react.cjs +10 -10
  77. package/react/react.cjs.map +1 -1
  78. package/react/react.cjs.native.js +10 -10
  79. package/react/types/types.d.ts +1 -0
  80. package/react/types/types.d.ts.map +1 -1
  81. package/react/types/types.js.map +1 -1
  82. package/testing/core/core.cjs +2 -3
  83. package/testing/core/core.cjs.map +1 -1
  84. package/testing/core/core.cjs.native.js +2 -3
  85. package/testing/core/mocking/mockLink.d.ts.map +1 -1
  86. package/testing/core/mocking/mockLink.js +1 -2
  87. package/testing/core/mocking/mockLink.js.map +1 -1
  88. package/testing/matchers/index.js +2 -0
  89. package/testing/matchers/index.js.map +1 -1
  90. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +12 -0
  91. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts.map +1 -0
  92. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +18 -0
  93. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -0
  94. package/testing/matchers/toMatchDocument.d.ts.map +1 -1
  95. package/testing/matchers/toMatchDocument.js +1 -2
  96. package/testing/matchers/toMatchDocument.js.map +1 -1
  97. package/utilities/globals/globals.cjs +1 -1
  98. package/utilities/globals/globals.cjs.map +1 -1
  99. package/utilities/globals/globals.cjs.native.js +1 -1
  100. package/utilities/graphql/print.d.ts +3 -0
  101. package/utilities/graphql/print.d.ts.map +1 -0
  102. package/utilities/graphql/print.js +13 -0
  103. package/utilities/graphql/print.js.map +1 -0
  104. package/utilities/index.d.ts +1 -0
  105. package/utilities/index.d.ts.map +1 -1
  106. package/utilities/index.js +1 -0
  107. package/utilities/index.js.map +1 -1
  108. package/utilities/utilities.cjs +12 -0
  109. package/utilities/utilities.cjs.map +1 -1
  110. package/utilities/utilities.cjs.native.js +12 -0
  111. 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.2';
1
+ export var version = '3.8.0-beta.3';
2
2
  //# sourceMappingURL=version.js.map