relay-runtime 0.0.0-main-ff27db49 → 0.0.0-main-40e7b465
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/experimental.js +1 -1
- package/index.js +1 -1
- package/network/RelayNetworkTypes.js.flow +2 -2
- package/package.json +1 -1
- package/store/RelayRecordSource.js.flow +1 -1
- package/store/RelayResponseNormalizer.js.flow +1 -1
- package/store/RelayStoreTypes.js.flow +5 -5
- package/store/defaultGetDataID.js.flow +1 -1
- package/util/RelayRuntimeTypes.js.flow +8 -8
package/experimental.js
CHANGED
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export interface INetwork {
|
|
|
26
26
|
|
|
27
27
|
export type LogRequestInfoFunction = mixed => void;
|
|
28
28
|
|
|
29
|
-
export type PayloadData = {[key: string]: mixed};
|
|
29
|
+
export type PayloadData = {+[key: string]: mixed};
|
|
30
30
|
|
|
31
31
|
export type PayloadError = interface {
|
|
32
32
|
message: string,
|
|
@@ -134,4 +134,4 @@ export type SubscribeFunction = (
|
|
|
134
134
|
) => RelayObservable<GraphQLResponse>;
|
|
135
135
|
|
|
136
136
|
export type Uploadable = File | Blob;
|
|
137
|
-
export type UploadableMap = {[key: string]: Uploadable};
|
|
137
|
+
export type UploadableMap = {+[key: string]: Uploadable};
|
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ class RelayRecordSource implements MutableRecordSource {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
toJSON(): RecordSourceJSON {
|
|
89
|
-
const obj: RecordSourceJSON = {};
|
|
89
|
+
const obj: {...RecordSourceJSON} = {};
|
|
90
90
|
for (const [key, record] of this._records) {
|
|
91
91
|
obj[key] = RelayModernRecord.toJSON<null | void>(record);
|
|
92
92
|
}
|
|
@@ -245,7 +245,7 @@ export interface RecordSource {
|
|
|
245
245
|
/**
|
|
246
246
|
* A collection of records keyed by id.
|
|
247
247
|
*/
|
|
248
|
-
export type RecordSourceJSON = {[DataID]: ?RecordJSON};
|
|
248
|
+
export type RecordSourceJSON = {+[DataID]: ?RecordJSON};
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* A read/write interface for accessing and updating graph data.
|
|
@@ -258,10 +258,10 @@ export interface MutableRecordSource extends RecordSource {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
export type CheckOptions = {
|
|
261
|
-
handlers: $ReadOnlyArray<MissingFieldHandler>,
|
|
262
|
-
defaultActorIdentifier: ActorIdentifier,
|
|
263
|
-
getTargetForActor: (actorIdentifier: ActorIdentifier) => MutableRecordSource,
|
|
264
|
-
getSourceForActor: (actorIdentifier: ActorIdentifier) => RecordSource,
|
|
261
|
+
+handlers: $ReadOnlyArray<MissingFieldHandler>,
|
|
262
|
+
+defaultActorIdentifier: ActorIdentifier,
|
|
263
|
+
+getTargetForActor: (actorIdentifier: ActorIdentifier) => MutableRecordSource,
|
|
264
|
+
+getSourceForActor: (actorIdentifier: ActorIdentifier) => RecordSource,
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
export type OperationAvailability =
|
|
@@ -62,14 +62,14 @@ export type VariablesOf<T: OperationType> = T['variables'];
|
|
|
62
62
|
* a given instance of executing an operation.
|
|
63
63
|
*/
|
|
64
64
|
export type CacheConfig = {
|
|
65
|
-
force?: ?boolean,
|
|
66
|
-
poll?: ?number,
|
|
67
|
-
liveConfigId?: ?string,
|
|
68
|
-
onSubscribe?: () => void,
|
|
69
|
-
onResume?: (pauseTimeMs: number) => void,
|
|
70
|
-
onPause?: (mqttConnectionIsOk: boolean, internetIsOk: boolean) => void,
|
|
71
|
-
metadata?: {[key: string]: mixed, ...},
|
|
72
|
-
transactionId?: ?string,
|
|
65
|
+
+force?: ?boolean,
|
|
66
|
+
+poll?: ?number,
|
|
67
|
+
+liveConfigId?: ?string,
|
|
68
|
+
+onSubscribe?: () => void,
|
|
69
|
+
+onResume?: (pauseTimeMs: number) => void,
|
|
70
|
+
+onPause?: (mqttConnectionIsOk: boolean, internetIsOk: boolean) => void,
|
|
71
|
+
+metadata?: {+[key: string]: mixed, ...},
|
|
72
|
+
+transactionId?: ?string,
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
export type FetchQueryFetchPolicy = 'store-or-network' | 'network-only';
|