@apollo/client 4.0.0-rc.8 → 4.0.0-rc.9

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 (114) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/__cjs/cache/inmemory/writeToStore.cjs +1 -1
  3. package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  4. package/__cjs/core/ObservableQuery.cjs +1 -1
  5. package/__cjs/core/ObservableQuery.cjs.map +1 -1
  6. package/__cjs/core/QueryInfo.cjs +2 -6
  7. package/__cjs/core/QueryInfo.cjs.map +1 -1
  8. package/__cjs/link/batch/batchLink.cjs +30 -2
  9. package/__cjs/link/batch/batchLink.cjs.map +1 -1
  10. package/__cjs/link/batch/batchLink.d.cts +69 -2
  11. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs +156 -0
  12. package/__cjs/link/batch-http/BaseBatchHttpLink.cjs.map +1 -0
  13. package/__cjs/link/batch-http/BaseBatchHttpLink.d.cts +68 -0
  14. package/__cjs/link/batch-http/batchHttpLink.cjs +3 -128
  15. package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
  16. package/__cjs/link/batch-http/batchHttpLink.d.cts +4 -20
  17. package/__cjs/link/batch-http/index.cjs +2 -1
  18. package/__cjs/link/batch-http/index.cjs.map +1 -1
  19. package/__cjs/link/batch-http/index.d.cts +2 -1
  20. package/__cjs/link/client-awareness/ClientAwarenessLink.cjs +3 -3
  21. package/__cjs/link/client-awareness/ClientAwarenessLink.cjs.map +1 -1
  22. package/__cjs/link/client-awareness/ClientAwarenessLink.d.cts +20 -1
  23. package/__cjs/link/context/index.cjs +19 -0
  24. package/__cjs/link/context/index.cjs.map +1 -1
  25. package/__cjs/link/context/index.d.cts +64 -2
  26. package/__cjs/link/http/BaseHttpLink.cjs +59 -8
  27. package/__cjs/link/http/BaseHttpLink.cjs.map +1 -1
  28. package/__cjs/link/http/BaseHttpLink.d.cts +256 -2
  29. package/__cjs/link/http/HttpLink.cjs +1 -1
  30. package/__cjs/link/http/HttpLink.cjs.map +1 -1
  31. package/__cjs/link/http/HttpLink.d.cts +5 -208
  32. package/__cjs/link/http/rewriteURIForGET.cjs.map +1 -1
  33. package/__cjs/link/http/rewriteURIForGET.d.cts +2 -2
  34. package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
  35. package/__cjs/link/http/selectHttpOptionsAndBody.d.cts +7 -7
  36. package/__cjs/link/persisted-queries/index.cjs +16 -0
  37. package/__cjs/link/persisted-queries/index.cjs.map +1 -1
  38. package/__cjs/link/persisted-queries/index.d.cts +181 -0
  39. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +48 -0
  40. package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -1
  41. package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +115 -0
  42. package/__cjs/link/retry/retryLink.cjs +25 -3
  43. package/__cjs/link/retry/retryLink.cjs.map +1 -1
  44. package/__cjs/link/retry/retryLink.d.cts +82 -9
  45. package/__cjs/link/schema/index.cjs +20 -0
  46. package/__cjs/link/schema/index.cjs.map +1 -1
  47. package/__cjs/link/schema/index.d.cts +128 -6
  48. package/__cjs/link/ws/index.cjs +18 -0
  49. package/__cjs/link/ws/index.cjs.map +1 -1
  50. package/__cjs/link/ws/index.d.cts +56 -5
  51. package/__cjs/react/hooks/useSyncExternalStore.cjs +2 -6
  52. package/__cjs/react/hooks/useSyncExternalStore.cjs.map +1 -1
  53. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +2 -6
  54. package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs.map +1 -1
  55. package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
  56. package/__cjs/version.cjs +1 -1
  57. package/cache/inmemory/writeToStore.js +1 -1
  58. package/cache/inmemory/writeToStore.js.map +1 -1
  59. package/core/ObservableQuery.js +1 -1
  60. package/core/ObservableQuery.js.map +1 -1
  61. package/core/QueryInfo.js +1 -2
  62. package/core/QueryInfo.js.map +1 -1
  63. package/link/batch/batchLink.d.ts +69 -2
  64. package/link/batch/batchLink.js +30 -2
  65. package/link/batch/batchLink.js.map +1 -1
  66. package/link/batch-http/BaseBatchHttpLink.d.ts +68 -0
  67. package/link/batch-http/BaseBatchHttpLink.js +152 -0
  68. package/link/batch-http/BaseBatchHttpLink.js.map +1 -0
  69. package/link/batch-http/batchHttpLink.d.ts +5 -21
  70. package/link/batch-http/batchHttpLink.js +1 -125
  71. package/link/batch-http/batchHttpLink.js.map +1 -1
  72. package/link/batch-http/index.d.ts +2 -1
  73. package/link/batch-http/index.js +2 -1
  74. package/link/batch-http/index.js.map +1 -1
  75. package/link/client-awareness/ClientAwarenessLink.d.ts +21 -2
  76. package/link/client-awareness/ClientAwarenessLink.js +3 -3
  77. package/link/client-awareness/ClientAwarenessLink.js.map +1 -1
  78. package/link/context/index.d.ts +65 -3
  79. package/link/context/index.js +19 -0
  80. package/link/context/index.js.map +1 -1
  81. package/link/http/BaseHttpLink.d.ts +257 -3
  82. package/link/http/BaseHttpLink.js +59 -8
  83. package/link/http/BaseHttpLink.js.map +1 -1
  84. package/link/http/HttpLink.d.ts +6 -209
  85. package/link/http/HttpLink.js +1 -1
  86. package/link/http/HttpLink.js.map +1 -1
  87. package/link/http/rewriteURIForGET.d.ts +2 -2
  88. package/link/http/rewriteURIForGET.js.map +1 -1
  89. package/link/http/selectHttpOptionsAndBody.d.ts +7 -7
  90. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  91. package/link/persisted-queries/index.d.ts +182 -1
  92. package/link/persisted-queries/index.js +16 -0
  93. package/link/persisted-queries/index.js.map +1 -1
  94. package/link/remove-typename/removeTypenameFromVariables.d.ts +115 -0
  95. package/link/remove-typename/removeTypenameFromVariables.js +48 -0
  96. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
  97. package/link/retry/retryLink.d.ts +83 -10
  98. package/link/retry/retryLink.js +25 -3
  99. package/link/retry/retryLink.js.map +1 -1
  100. package/link/schema/index.d.ts +129 -7
  101. package/link/schema/index.js +20 -0
  102. package/link/schema/index.js.map +1 -1
  103. package/link/ws/index.d.ts +56 -5
  104. package/link/ws/index.js +18 -0
  105. package/link/ws/index.js.map +1 -1
  106. package/package.json +1 -1
  107. package/react/hooks/useSyncExternalStore.js +1 -1
  108. package/react/hooks/useSyncExternalStore.js.map +1 -1
  109. package/react/hooks-compiled/useSyncExternalStore.js +1 -1
  110. package/react/hooks-compiled/useSyncExternalStore.js.map +1 -1
  111. package/utilities/internal/removeDirectivesFromDocument.js +1 -2
  112. package/utilities/internal/removeDirectivesFromDocument.js.map +1 -1
  113. package/utilities/subscriptions/relay/index.js.map +1 -1
  114. package/version.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 4.0.0-rc.9
4
+
5
+ ### Minor Changes
6
+
7
+ - [#12828](https://github.com/apollographql/apollo-client/pull/12828) [`81b03d8`](https://github.com/apollographql/apollo-client/commit/81b03d86ad7e7384124708477829bcbf63d4fa2c) Thanks [@phryneas](https://github.com/phryneas)! - `invariant.error` will now also log in production builds, not only dev builds
8
+
9
+ ### Patch Changes
10
+
11
+ - [#12822](https://github.com/apollographql/apollo-client/pull/12822) [`103664d`](https://github.com/apollographql/apollo-client/commit/103664dc93c0a7097eaec1a5144e769eb4fb7a31) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Ensure `HttpLink.ContextOptions` and `BatchHttpLink.ContextOptions` include `ClientAwarenessLink.ContextOptions`.
12
+
13
+ - [#12650](https://github.com/apollographql/apollo-client/pull/12650) [`2a32ac6`](https://github.com/apollographql/apollo-client/commit/2a32ac6d38de2be0be6891a969ee4f5e3bbca629) Thanks [@phryneas](https://github.com/phryneas)! - Fix a situation where a passed-in `AbortSignal` would override internal unsubscription cancellation behaviour.
14
+
3
15
  ## 4.0.0-rc.8
4
16
 
5
17
  ### Major Changes
@@ -223,7 +223,7 @@ class StoreWriter {
223
223
  // provide a default value, so its absence from the written data should
224
224
  // not be cause for alarm.
225
225
  !policies.getReadFunction(typename, field.name.value)) {
226
- __DEV__ && invariant_1.invariant.error(106, (0, internal_1.resultKeyNameFromField)(field), result);
226
+ invariant_1.invariant.error(106, (0, internal_1.resultKeyNameFromField)(field), result);
227
227
  }
228
228
  });
229
229
  // Identify the result object, even if dataId was already provided,