react-relay 0.0.0-main-eeac8b2d → 0.0.0-main-81391e09
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
CHANGED
package/ReactRelayTypes.js.flow
CHANGED
|
@@ -97,14 +97,20 @@ export type $FragmentRef<T> = {
|
|
|
97
97
|
...
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
/* $FlowExpectedError[unclear-type]: Intentional so that it won't fail,
|
|
101
|
+
* even if the type we want to exclude doesn't exist in Props */
|
|
102
|
+
type LooseOmitRelayProps<Props, K: $Keys<any>> = Pick<
|
|
103
|
+
Props,
|
|
104
|
+
Exclude<$Keys<Props>, K>,
|
|
105
|
+
>;
|
|
100
106
|
/**
|
|
101
107
|
* A utility type that takes the Props of a component and the type of
|
|
102
108
|
* `props.relay` and returns the props of the container.
|
|
103
109
|
*/
|
|
104
110
|
// prettier-ignore
|
|
105
111
|
// $FlowFixMe[extra-type-arg] xplat redux flow type error
|
|
106
|
-
export type $RelayProps<Props,
|
|
107
|
-
|
|
112
|
+
export type $RelayProps<Props, _RelayPropT = RelayProp> = MapRelayProps<
|
|
113
|
+
LooseOmitRelayProps<Props, 'relay'>,
|
|
108
114
|
>;
|
|
109
115
|
|
|
110
116
|
type MapRelayProps<Props> = {[K in keyof Props]: MapRelayProp<Props[K]>};
|
|
@@ -138,14 +138,7 @@ module.exports = {
|
|
|
138
138
|
return bad ? 'not good' : ok;
|
|
139
139
|
}
|
|
140
140
|
render(): React.MixedElement {
|
|
141
|
-
return
|
|
142
|
-
<Bar
|
|
143
|
-
componentRef={(ref: empty) => {
|
|
144
|
-
this._barRef = (ref: empty);
|
|
145
|
-
}}
|
|
146
|
-
requiredProp="bar"
|
|
147
|
-
/>
|
|
148
|
-
);
|
|
141
|
+
return <Bar requiredProp="bar" />;
|
|
149
142
|
}
|
|
150
143
|
}
|
|
151
144
|
return <ProxyChecker />;
|
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-81391e09",
|
|
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-81391e09"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17 || ^18"
|