react-relay 0.0.0-main-56b49352 → 0.0.0-main-3eb44287
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/ReactRelayContext.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/package.json +2 -2
- package/relay-hooks/EntryPointTypes.flow.js.flow +3 -11
- package/rsc-client_EXPERIMENTAL.js +1 -1
- package/rsc_EXPERIMENTAL.js +1 -1
package/ReactRelayContext.js
CHANGED
package/hooks.js
CHANGED
package/index.js
CHANGED
package/legacy.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-relay",
|
|
3
3
|
"description": "A framework for building GraphQL-driven React applications.",
|
|
4
|
-
"version": "0.0.0-main-
|
|
4
|
+
"version": "0.0.0-main-3eb44287",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
7
7
|
"relay",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"fbjs": "^3.0.2",
|
|
21
21
|
"invariant": "^2.2.4",
|
|
22
22
|
"nullthrows": "^1.1.1",
|
|
23
|
-
"relay-runtime": "0.0.0-main-
|
|
23
|
+
"relay-runtime": "0.0.0-main-3eb44287"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17 || ^18 || ^19"
|
|
@@ -22,10 +22,13 @@ import type {
|
|
|
22
22
|
IEnvironment,
|
|
23
23
|
Observable,
|
|
24
24
|
OperationType,
|
|
25
|
+
PreloadableConcreteRequest,
|
|
25
26
|
RequestParameters,
|
|
26
27
|
VariablesOf as _VariablesOf,
|
|
27
28
|
} from 'relay-runtime';
|
|
28
29
|
|
|
30
|
+
export type {PreloadableConcreteRequest};
|
|
31
|
+
|
|
29
32
|
export type VariablesOf<T> = _VariablesOf<T>;
|
|
30
33
|
|
|
31
34
|
export type PreloadFetchPolicy =
|
|
@@ -46,17 +49,6 @@ export type LoadQueryOptions = {
|
|
|
46
49
|
readonly __nameForWarning?: ?string,
|
|
47
50
|
};
|
|
48
51
|
|
|
49
|
-
export type PreloadableConcreteRequest<out TQuery extends OperationType> = {
|
|
50
|
-
kind: 'PreloadableConcreteRequest',
|
|
51
|
-
params: RequestParameters,
|
|
52
|
-
// Note: the phantom type parameter here helps ensures that the
|
|
53
|
-
// $Parameters.js value matches the type param provided to preloadQuery.
|
|
54
|
-
// We also need to add usage of this generic here,
|
|
55
|
-
// becuase not using the generic in the definition makes it
|
|
56
|
-
// unconstrained in the call to a function that accepts PreloadableConcreteRequest<T>
|
|
57
|
-
readonly __phantom__?: ?TQuery,
|
|
58
|
-
};
|
|
59
|
-
|
|
60
52
|
export type EnvironmentProviderOptions = {readonly [string]: unknown, ...};
|
|
61
53
|
|
|
62
54
|
export type PreloadedQuery<
|
package/rsc_EXPERIMENTAL.js
CHANGED