relay-runtime 13.0.0-rc.1 → 13.0.0-rc.2

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 (215) hide show
  1. package/README.md +67 -0
  2. package/handlers/RelayDefaultHandlerProvider.js.flow +1 -1
  3. package/handlers/connection/ConnectionHandler.js.flow +1 -1
  4. package/handlers/connection/ConnectionInterface.js.flow +1 -1
  5. package/handlers/connection/MutationHandlers.js.flow +1 -1
  6. package/index.js +1 -1
  7. package/index.js.flow +1 -1
  8. package/lib/handlers/RelayDefaultHandlerProvider.js +1 -1
  9. package/lib/handlers/connection/ConnectionHandler.js +1 -1
  10. package/lib/handlers/connection/ConnectionInterface.js +1 -1
  11. package/lib/handlers/connection/MutationHandlers.js +1 -1
  12. package/lib/index.js +1 -1
  13. package/lib/multi-actor-environment/ActorIdentifier.js +1 -1
  14. package/lib/multi-actor-environment/ActorSpecificEnvironment.js +1 -1
  15. package/lib/multi-actor-environment/ActorUtils.js +1 -1
  16. package/lib/multi-actor-environment/MultiActorEnvironment.js +1 -1
  17. package/lib/multi-actor-environment/MultiActorEnvironmentTypes.js +1 -1
  18. package/lib/multi-actor-environment/index.js +1 -1
  19. package/lib/mutations/RelayDeclarativeMutationConfig.js +1 -1
  20. package/lib/mutations/RelayRecordProxy.js +1 -1
  21. package/lib/mutations/RelayRecordSourceMutator.js +1 -1
  22. package/lib/mutations/RelayRecordSourceProxy.js +1 -1
  23. package/lib/mutations/RelayRecordSourceSelectorProxy.js +1 -1
  24. package/lib/mutations/applyOptimisticMutation.js +1 -1
  25. package/lib/mutations/commitLocalUpdate.js +1 -1
  26. package/lib/mutations/commitMutation.js +1 -1
  27. package/lib/mutations/readUpdatableQuery_EXPERIMENTAL.js +5 -1
  28. package/lib/mutations/validateMutation.js +1 -1
  29. package/lib/network/ConvertToExecuteFunction.js +1 -1
  30. package/lib/network/RelayNetwork.js +1 -1
  31. package/lib/network/RelayNetworkTypes.js +1 -1
  32. package/lib/network/RelayObservable.js +1 -1
  33. package/lib/network/RelayQueryResponseCache.js +1 -1
  34. package/lib/network/wrapNetworkWithLogObserver.js +1 -1
  35. package/lib/query/GraphQLTag.js +1 -1
  36. package/lib/query/PreloadableQueryRegistry.js +1 -1
  37. package/lib/query/fetchQuery.js +1 -1
  38. package/lib/query/fetchQueryInternal.js +1 -1
  39. package/lib/query/fetchQuery_DEPRECATED.js +1 -1
  40. package/lib/store/ClientID.js +1 -1
  41. package/lib/store/DataChecker.js +1 -1
  42. package/lib/store/OperationExecutor.js +1 -1
  43. package/lib/store/RelayConcreteVariables.js +1 -1
  44. package/lib/store/RelayExperimentalGraphResponseHandler.js +3 -3
  45. package/lib/store/RelayExperimentalGraphResponseTransform.js +21 -21
  46. package/lib/store/RelayModernEnvironment.js +1 -1
  47. package/lib/store/RelayModernFragmentSpecResolver.js +1 -1
  48. package/lib/store/RelayModernOperationDescriptor.js +1 -1
  49. package/lib/store/RelayModernRecord.js +1 -1
  50. package/lib/store/RelayModernSelector.js +1 -1
  51. package/lib/store/RelayModernStore.js +1 -1
  52. package/lib/store/RelayOperationTracker.js +1 -1
  53. package/lib/store/RelayOptimisticRecordSource.js +1 -1
  54. package/lib/store/RelayPublishQueue.js +1 -1
  55. package/lib/store/RelayReader.js +1 -3
  56. package/lib/store/RelayRecordSource.js +1 -1
  57. package/lib/store/RelayRecordState.js +1 -1
  58. package/lib/store/RelayReferenceMarker.js +1 -1
  59. package/lib/store/RelayResponseNormalizer.js +1 -1
  60. package/lib/store/RelayStoreReactFlightUtils.js +1 -1
  61. package/lib/store/RelayStoreSubscriptions.js +1 -1
  62. package/lib/store/RelayStoreTypes.js +1 -1
  63. package/lib/store/RelayStoreUtils.js +1 -1
  64. package/lib/store/ResolverCache.js +1 -1
  65. package/lib/store/ResolverFragments.js +1 -1
  66. package/lib/store/StoreInspector.js +1 -1
  67. package/lib/store/TypeID.js +1 -1
  68. package/lib/store/ViewerPattern.js +1 -1
  69. package/lib/store/cloneRelayHandleSourceField.js +1 -1
  70. package/lib/store/cloneRelayScalarHandleSourceField.js +1 -1
  71. package/lib/store/createFragmentSpecResolver.js +1 -1
  72. package/lib/store/createRelayContext.js +1 -1
  73. package/lib/store/defaultGetDataID.js +1 -1
  74. package/lib/store/defaultRequiredFieldLogger.js +1 -1
  75. package/lib/store/hasOverlappingIDs.js +1 -1
  76. package/lib/store/isRelayModernEnvironment.js +1 -1
  77. package/lib/store/normalizeRelayPayload.js +1 -1
  78. package/lib/store/readInlineData.js +1 -1
  79. package/lib/subscription/requestSubscription.js +1 -1
  80. package/lib/util/JSResourceTypes.flow.js +1 -1
  81. package/lib/util/NormalizationNode.js +1 -1
  82. package/lib/util/ReaderNode.js +1 -1
  83. package/lib/util/RelayConcreteNode.js +1 -1
  84. package/lib/util/RelayDefaultHandleKey.js +1 -1
  85. package/lib/util/RelayError.js +1 -1
  86. package/lib/util/RelayFeatureFlags.js +1 -2
  87. package/lib/util/RelayProfiler.js +1 -1
  88. package/lib/util/RelayReplaySubject.js +1 -1
  89. package/lib/util/RelayRuntimeTypes.js +1 -1
  90. package/lib/util/StringInterner.js +1 -1
  91. package/lib/util/createPayloadFor3DField.js +1 -1
  92. package/lib/util/deepFreeze.js +1 -1
  93. package/lib/util/generateID.js +1 -1
  94. package/lib/util/getAllRootVariables.js +29 -0
  95. package/lib/util/getFragmentIdentifier.js +1 -1
  96. package/lib/util/getOperation.js +1 -1
  97. package/lib/util/getPaginationMetadata.js +1 -1
  98. package/lib/util/getPaginationVariables.js +1 -1
  99. package/lib/util/getPendingOperationsForFragment.js +1 -1
  100. package/lib/util/getRefetchMetadata.js +1 -1
  101. package/lib/util/getRelayHandleKey.js +1 -1
  102. package/lib/util/getRequestIdentifier.js +1 -1
  103. package/lib/util/getValueAtPath.js +1 -1
  104. package/lib/util/isEmptyObject.js +1 -1
  105. package/lib/util/isPromise.js +1 -1
  106. package/lib/util/isScalarAndEqual.js +1 -1
  107. package/lib/util/recycleNodesInto.js +1 -1
  108. package/lib/util/registerEnvironmentWithDevTools.js +1 -1
  109. package/lib/util/reportMissingRequiredFields.js +1 -1
  110. package/lib/util/resolveImmediate.js +1 -1
  111. package/lib/util/stableCopy.js +1 -1
  112. package/lib/util/withDuration.js +1 -1
  113. package/multi-actor-environment/ActorIdentifier.js.flow +1 -1
  114. package/multi-actor-environment/ActorSpecificEnvironment.js.flow +1 -1
  115. package/multi-actor-environment/ActorUtils.js.flow +1 -1
  116. package/multi-actor-environment/MultiActorEnvironment.js.flow +1 -1
  117. package/multi-actor-environment/MultiActorEnvironmentTypes.js.flow +1 -1
  118. package/multi-actor-environment/index.js.flow +1 -1
  119. package/mutations/RelayDeclarativeMutationConfig.js.flow +1 -1
  120. package/mutations/RelayRecordProxy.js.flow +1 -1
  121. package/mutations/RelayRecordSourceMutator.js.flow +1 -1
  122. package/mutations/RelayRecordSourceProxy.js.flow +1 -1
  123. package/mutations/RelayRecordSourceSelectorProxy.js.flow +1 -1
  124. package/mutations/applyOptimisticMutation.js.flow +1 -1
  125. package/mutations/commitLocalUpdate.js.flow +1 -1
  126. package/mutations/commitMutation.js.flow +1 -1
  127. package/mutations/readUpdatableQuery_EXPERIMENTAL.js.flow +10 -1
  128. package/mutations/validateMutation.js.flow +1 -1
  129. package/network/ConvertToExecuteFunction.js.flow +1 -1
  130. package/network/RelayNetwork.js.flow +1 -1
  131. package/network/RelayNetworkTypes.js.flow +1 -1
  132. package/network/RelayObservable.js.flow +1 -1
  133. package/network/RelayQueryResponseCache.js.flow +1 -1
  134. package/network/wrapNetworkWithLogObserver.js.flow +2 -3
  135. package/package.json +2 -2
  136. package/query/GraphQLTag.js.flow +2 -2
  137. package/query/PreloadableQueryRegistry.js.flow +3 -2
  138. package/query/fetchQuery.js.flow +8 -6
  139. package/query/fetchQueryInternal.js.flow +1 -1
  140. package/query/fetchQuery_DEPRECATED.js.flow +1 -1
  141. package/relay-runtime.js +2 -2
  142. package/relay-runtime.min.js +2 -2
  143. package/store/ClientID.js.flow +1 -1
  144. package/store/DataChecker.js.flow +1 -1
  145. package/store/OperationExecutor.js.flow +1 -1
  146. package/store/RelayConcreteVariables.js.flow +1 -1
  147. package/store/RelayExperimentalGraphResponseHandler.js.flow +3 -6
  148. package/store/RelayExperimentalGraphResponseTransform.js.flow +16 -21
  149. package/store/RelayModernEnvironment.js.flow +1 -1
  150. package/store/RelayModernFragmentSpecResolver.js.flow +1 -1
  151. package/store/RelayModernOperationDescriptor.js.flow +1 -1
  152. package/store/RelayModernRecord.js.flow +1 -1
  153. package/store/RelayModernSelector.js.flow +1 -1
  154. package/store/RelayModernStore.js.flow +1 -1
  155. package/store/RelayOperationTracker.js.flow +1 -1
  156. package/store/RelayOptimisticRecordSource.js.flow +1 -1
  157. package/store/RelayPublishQueue.js.flow +1 -1
  158. package/store/RelayReader.js.flow +1 -8
  159. package/store/RelayRecordSource.js.flow +1 -1
  160. package/store/RelayRecordState.js.flow +1 -1
  161. package/store/RelayReferenceMarker.js.flow +1 -1
  162. package/store/RelayResponseNormalizer.js.flow +1 -1
  163. package/store/RelayStoreReactFlightUtils.js.flow +1 -1
  164. package/store/RelayStoreSubscriptions.js.flow +1 -1
  165. package/store/RelayStoreTypes.js.flow +1 -1
  166. package/store/RelayStoreUtils.js.flow +1 -1
  167. package/store/ResolverCache.js.flow +1 -1
  168. package/store/ResolverFragments.js.flow +1 -1
  169. package/store/StoreInspector.js.flow +1 -1
  170. package/store/TypeID.js.flow +1 -1
  171. package/store/ViewerPattern.js.flow +1 -1
  172. package/store/cloneRelayHandleSourceField.js.flow +1 -1
  173. package/store/cloneRelayScalarHandleSourceField.js.flow +1 -1
  174. package/store/createFragmentSpecResolver.js.flow +1 -1
  175. package/store/createRelayContext.js.flow +1 -1
  176. package/store/defaultGetDataID.js.flow +1 -1
  177. package/store/defaultRequiredFieldLogger.js.flow +1 -1
  178. package/store/hasOverlappingIDs.js.flow +1 -1
  179. package/store/isRelayModernEnvironment.js.flow +1 -1
  180. package/store/normalizeRelayPayload.js.flow +1 -1
  181. package/store/readInlineData.js.flow +1 -1
  182. package/subscription/requestSubscription.js.flow +1 -1
  183. package/util/JSResourceTypes.flow.js.flow +1 -1
  184. package/util/NormalizationNode.js.flow +1 -1
  185. package/util/ReaderNode.js.flow +1 -1
  186. package/util/RelayConcreteNode.js.flow +3 -3
  187. package/util/RelayDefaultHandleKey.js.flow +1 -1
  188. package/util/RelayError.js.flow +1 -1
  189. package/util/RelayFeatureFlags.js.flow +1 -3
  190. package/util/RelayProfiler.js.flow +1 -1
  191. package/util/RelayReplaySubject.js.flow +1 -1
  192. package/util/RelayRuntimeTypes.js.flow +1 -1
  193. package/util/StringInterner.js.flow +1 -1
  194. package/util/createPayloadFor3DField.js.flow +1 -1
  195. package/util/deepFreeze.js.flow +1 -1
  196. package/util/generateID.js.flow +1 -1
  197. package/util/getAllRootVariables.js.flow +36 -0
  198. package/util/getFragmentIdentifier.js.flow +1 -1
  199. package/util/getOperation.js.flow +1 -1
  200. package/util/getPaginationMetadata.js.flow +3 -6
  201. package/util/getPaginationVariables.js.flow +1 -1
  202. package/util/getPendingOperationsForFragment.js.flow +1 -1
  203. package/util/getRefetchMetadata.js.flow +3 -6
  204. package/util/getRelayHandleKey.js.flow +1 -1
  205. package/util/getRequestIdentifier.js.flow +1 -1
  206. package/util/getValueAtPath.js.flow +1 -1
  207. package/util/isEmptyObject.js.flow +1 -1
  208. package/util/isPromise.js.flow +1 -1
  209. package/util/isScalarAndEqual.js.flow +1 -1
  210. package/util/recycleNodesInto.js.flow +1 -1
  211. package/util/registerEnvironmentWithDevTools.js.flow +1 -1
  212. package/util/reportMissingRequiredFields.js.flow +1 -1
  213. package/util/resolveImmediate.js.flow +1 -1
  214. package/util/stableCopy.js.flow +1 -1
  215. package/util/withDuration.js.flow +1 -1
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ Relay Runtime
2
+ ---
3
+
4
+ A set of Relay APIs responsible for data fetching, reading and normalization of
5
+ the GraphQL data.
6
+
7
+ Example:
8
+
9
+ ```js
10
+
11
+ // @flow strict-local
12
+
13
+ import type {FetchFunction} from 'relay-runtime';
14
+
15
+ const {
16
+ Environment,
17
+ Network,
18
+ Observable,
19
+ RecordSource,
20
+ Store,
21
+ fetchQuery,
22
+ graphql,
23
+ } = require('relay-runtime');
24
+
25
+ const fetchFn: FetchFunction = function (request, variables) {
26
+ return new Observable.create(source => {
27
+ fetch('/my-graphql-api', {
28
+ method: 'POST',
29
+ body: JSON.stringify({
30
+ text: request.text,
31
+ variables,
32
+ }),
33
+ })
34
+ .then(response => response.json())
35
+ .then(data => source.next(data));
36
+ });
37
+ };
38
+
39
+ const network = Network.create(fetchFn);
40
+ const store = new Store(new RecordSource());
41
+ const environment = new Environment({
42
+ network,
43
+ store,
44
+ });
45
+
46
+ fetchQuery(
47
+ environment,
48
+ graphql`
49
+ query AppQuery($id: ID!) {
50
+ user(id: $id) {
51
+ name
52
+ }
53
+ }
54
+ `,
55
+ {id: 'my-node-id'},
56
+ ).subscribe({
57
+ error: error => {
58
+ console.error(error);
59
+ },
60
+ next: data => {
61
+ console.log(data);
62
+ },
63
+ });
64
+
65
+ ```
66
+
67
+ For complete API reference, visit https://relay.dev/.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v13.0.0-rc.1
2
+ * Relay v13.0.0-rc.2
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
package/index.js.flow CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -92,6 +92,10 @@ function updateProxyFromSelections(mutableUpdatableProxy, recordProxy, queryVari
92
92
 
93
93
  break;
94
94
 
95
+ case 'ClientExtension':
96
+ updateProxyFromSelections(mutableUpdatableProxy, recordProxy, queryVariables, selection.selections, root);
97
+ break;
98
+
95
99
  case 'FragmentSpread':
96
100
  // Explicitly ignore
97
101
  break;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -10,7 +10,7 @@ exports.handleGraphModeResponse = handleGraphModeResponse;
10
10
  var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
11
11
 
12
12
  /**
13
- * Copyright (c) Facebook, Inc. and its affiliates.
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
@@ -19,9 +19,9 @@ var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime
19
19
  *
20
20
  * @format
21
21
  */
22
- var invariant = require('invariant');
22
+ var RelayModernRecord = require('./RelayModernRecord');
23
23
 
24
- var RelayModernRecord = require('relay-runtime/store/RelayModernRecord');
24
+ var invariant = require('invariant');
25
25
  /**
26
26
  * Given a stream of GraphMode chunks, populate a MutableRecordSource.
27
27
  */
@@ -14,7 +14,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
14
14
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
15
 
16
16
  /**
17
- * Copyright (c) Facebook, Inc. and its affiliates.
17
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
18
18
  *
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
@@ -23,30 +23,30 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
23
23
  *
24
24
  * @format
25
25
  */
26
- var _require = require('./RelayConcreteVariables'),
27
- getLocalVariables = _require.getLocalVariables;
28
-
29
- var _require2 = require('./RelayModernSelector'),
30
- createNormalizationSelector = _require2.createNormalizationSelector;
31
-
32
- var invariant = require('invariant');
33
-
34
- var _require3 = require('relay-runtime'),
35
- generateClientID = _require3.generateClientID;
36
-
37
- var _require4 = require('relay-runtime/store/RelayStoreUtils'),
26
+ var _require = require('../util/RelayConcreteNode'),
27
+ CLIENT_EXTENSION = _require.CLIENT_EXTENSION,
28
+ CONDITION = _require.CONDITION,
29
+ DEFER = _require.DEFER,
30
+ FRAGMENT_SPREAD = _require.FRAGMENT_SPREAD,
31
+ INLINE_FRAGMENT = _require.INLINE_FRAGMENT,
32
+ LINKED_FIELD = _require.LINKED_FIELD,
33
+ SCALAR_FIELD = _require.SCALAR_FIELD;
34
+
35
+ var _require2 = require('./RelayConcreteVariables'),
36
+ getLocalVariables = _require2.getLocalVariables;
37
+
38
+ var _require3 = require('./RelayModernSelector'),
39
+ createNormalizationSelector = _require3.createNormalizationSelector;
40
+
41
+ var _require4 = require('./RelayStoreUtils'),
38
42
  ROOT_TYPE = _require4.ROOT_TYPE,
39
43
  TYPENAME_KEY = _require4.TYPENAME_KEY,
40
44
  getStorageKey = _require4.getStorageKey;
41
45
 
42
- var _require5 = require('relay-runtime/util/RelayConcreteNode'),
43
- CLIENT_EXTENSION = _require5.CLIENT_EXTENSION,
44
- CONDITION = _require5.CONDITION,
45
- DEFER = _require5.DEFER,
46
- FRAGMENT_SPREAD = _require5.FRAGMENT_SPREAD,
47
- INLINE_FRAGMENT = _require5.INLINE_FRAGMENT,
48
- LINKED_FIELD = _require5.LINKED_FIELD,
49
- SCALAR_FIELD = _require5.SCALAR_FIELD;
46
+ var invariant = require('invariant');
47
+
48
+ var _require5 = require('relay-runtime'),
49
+ generateClientID = _require5.generateClientID;
50
50
  /**
51
51
  * This module is an experiment to explore a proposal normalized response format for GraphQL.
52
52
  * See the Quip document: Canonical Normalized Response Format (“GraphMode”) Proposal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -260,8 +260,6 @@ var RelayReader = /*#__PURE__*/function () {
260
260
 
261
261
  switch (selection.kind) {
262
262
  case REQUIRED_FIELD:
263
- !RelayFeatureFlags.ENABLE_REQUIRED_DIRECTIVES ? process.env.NODE_ENV !== "production" ? invariant(false, 'RelayReader(): Encountered a `@required` directive at path "%s" in `%s` without the `ENABLE_REQUIRED_DIRECTIVES` feature flag enabled.', selection.path, this._selector.node.name) : invariant(false) : void 0;
264
-
265
263
  var fieldValue = this._readRequiredField(selection, record, data);
266
264
 
267
265
  if (fieldValue == null) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.