react-relay 0.0.0-main-5a7f35aa → 0.0.0-main-4dcb3ffa
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 +10 -10
- 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-4dcb3ffa",
|
|
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-4dcb3ffa"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17 || ^18 || ^19"
|
|
@@ -48,7 +48,7 @@ export type LoadQueryOptions = {
|
|
|
48
48
|
+__nameForWarning?: ?string,
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export type PreloadableConcreteRequest
|
|
51
|
+
export type PreloadableConcreteRequest<out TQuery extends OperationType> = {
|
|
52
52
|
kind: 'PreloadableConcreteRequest',
|
|
53
53
|
params: RequestParameters,
|
|
54
54
|
// Note: the phantom type parameter here helps ensures that the
|
|
@@ -62,14 +62,14 @@ export type PreloadableConcreteRequest<+TQuery extends OperationType> = {
|
|
|
62
62
|
export type EnvironmentProviderOptions = {+[string]: unknown, ...};
|
|
63
63
|
|
|
64
64
|
export type PreloadedQuery<
|
|
65
|
-
|
|
65
|
+
out TQuery extends OperationType,
|
|
66
66
|
TEnvironmentProviderOptions = EnvironmentProviderOptions,
|
|
67
67
|
> =
|
|
68
68
|
| PreloadedQueryInner_DEPRECATED<TQuery, TEnvironmentProviderOptions>
|
|
69
69
|
| PreloadedQueryInner<TQuery, TEnvironmentProviderOptions>;
|
|
70
70
|
|
|
71
71
|
export type PreloadedQueryInner_DEPRECATED<
|
|
72
|
-
|
|
72
|
+
out TQuery extends OperationType,
|
|
73
73
|
TEnvironmentProviderOptions = EnvironmentProviderOptions,
|
|
74
74
|
> = {
|
|
75
75
|
+kind: 'PreloadedQuery_DEPRECATED',
|
|
@@ -86,7 +86,7 @@ export type PreloadedQueryInner_DEPRECATED<
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
export type PreloadedQueryInner<
|
|
89
|
-
|
|
89
|
+
out TQuery extends OperationType,
|
|
90
90
|
TEnvironmentProviderOptions = EnvironmentProviderOptions,
|
|
91
91
|
> = {
|
|
92
92
|
// Releases query data and cancels network request if still in flight
|
|
@@ -129,9 +129,9 @@ the preloaders (routeParams, query variables)
|
|
|
129
129
|
TEntryPointComponent - the root components
|
|
130
130
|
*/
|
|
131
131
|
export type EntryPoint<
|
|
132
|
-
|
|
132
|
+
in TEntryPointParams,
|
|
133
133
|
// $FlowExpectedError[unclear-type] accepts any root component
|
|
134
|
-
|
|
134
|
+
out TEntryPointComponent extends EntryPointComponent<any, any, any, any, any>,
|
|
135
135
|
> = Readonly<{
|
|
136
136
|
getPreloadProps: (
|
|
137
137
|
entryPointParams: TEntryPointParams,
|
|
@@ -178,7 +178,7 @@ export type EntryPointComponent<
|
|
|
178
178
|
TPreloadedEntryPoints = {},
|
|
179
179
|
TRuntimeProps = {},
|
|
180
180
|
TExtraProps = null,
|
|
181
|
-
|
|
181
|
+
out TRenders extends React.Node = React.Node,
|
|
182
182
|
> = component(
|
|
183
183
|
...EntryPointProps<
|
|
184
184
|
TPreloadedQueries,
|
|
@@ -215,7 +215,7 @@ export type PreloadedEntryPoint<TEntryPointComponent> = Readonly<{
|
|
|
215
215
|
}>;
|
|
216
216
|
|
|
217
217
|
export type EntryPointElementConfig<
|
|
218
|
-
|
|
218
|
+
out TEntryPoint extends EntryPoint<
|
|
219
219
|
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
|
220
220
|
any,
|
|
221
221
|
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
|
@@ -230,7 +230,7 @@ export type EntryPointElementConfig<
|
|
|
230
230
|
: empty;
|
|
231
231
|
|
|
232
232
|
export type ThinQueryParams<
|
|
233
|
-
|
|
233
|
+
out TQuery extends OperationType,
|
|
234
234
|
TEnvironmentProviderOptions,
|
|
235
235
|
> = Readonly<{
|
|
236
236
|
environmentProviderOptions?: ?TEnvironmentProviderOptions,
|
|
@@ -281,7 +281,7 @@ export type ExtractQueryTypes<
|
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
// $FlowFixMe[unclear-type]: we don't care about the props
|
|
284
|
-
export type RootComponentRenders
|
|
284
|
+
export type RootComponentRenders<out C extends component(...any)> =
|
|
285
285
|
// $FlowFixMe[unclear-type]: we don't care about the props
|
|
286
286
|
C extends component(...any) renders infer R extends React.Node ? R : empty;
|
|
287
287
|
|
package/rsc_EXPERIMENTAL.js
CHANGED