Skip to content

Commit

Permalink
Flow 0.123.0 in xplat/js
Browse files Browse the repository at this point in the history
Reviewed By: gkz

Differential Revision: D21159821

fbshipit-source-id: e106fcb43e4fc525b9185f8fc8a246e6c3a6b14f
  • Loading branch information
panagosg7 authored and facebook-github-bot committed Apr 22, 2020
1 parent 31d51a2 commit 0ac7714
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ untyped-import
untyped-type-import

[version]
^0.122.0
^0.123.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"fb-watchman": "^2.0.0",
"fbjs": "^1.0.0",
"fbjs-scripts": "^1.1.0",
"flow-bin": "^0.122.0",
"flow-bin": "^0.123.0",
"graphql": "^14.2.0",
"gulp": "4.0.0",
"gulp-babel": "8.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/relay-compiler/codegen/ReaderCodeGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ function generate(schema: Schema, node: Fragment): ReaderFragment {
if (refetch != null && typeof refetch === 'object') {
metadata = metadata ?? {};
metadata.refetch = {
// $FlowFixMe
connection: refetch.connection,
// $FlowFixMe
fragmentPathInResult: refetch.fragmentPathInResult,
operation: CodeMarker.moduleDependency(
// $FlowFixMe
Expand Down
6 changes: 3 additions & 3 deletions packages/relay-compiler/transforms/RelayDirectiveTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ function visitRelayMetadata<T: Fragment | FragmentSpread>(
directives: node.directives.filter(
directive => directive !== relayDirective,
),
/* $FlowFixMe(>=0.123.0) This comment suppresses an
* error found when Flow v0.123.0 was deployed. To see the error, delete
* this comment and run Flow. */
metadata: {
...(node.metadata || {}),
/* $FlowFixMe(>=0.111.0) This comment suppresses an error found when
* Flow v0.111.0 was deployed. To see the error, delete this comment
* and run Flow. */
...metadata,
},
});
Expand Down
4 changes: 0 additions & 4 deletions packages/relay-experimental/useLoadMoreFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function useLoadMoreFunction<TQuery: OperationType>(
disposeFetch,
completeFetch,
} = useFetchTrackingRef();
// $FlowFixMe
const identifierValue =
identifierField != null &&
fragmentData != null &&
Expand Down Expand Up @@ -203,9 +202,6 @@ function useLoadMoreFunction<TQuery: OperationType>(
const baseVariables = {
...parentVariables,
...fragmentVariables,
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when
* Flow v0.120 was deployed. To see the error, delete this comment and
* run Flow. */
...extraVariables,
};
const paginationVariables = getPaginationVariables(
Expand Down
6 changes: 0 additions & 6 deletions packages/relay-test-utils/RelayMockPayloadGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ class RelayMockPayloadGenerator {
* Flow. */
this._mockResolvers = {
...DEFAULT_MOCK_RESOLVERS,
/* $FlowFixMe(>=0.111.0) This comment suppresses an error found when Flow
* v0.111.0 was deployed. To see the error, delete this comment and run
* Flow. */
...(options.mockResolvers ?? {}),
};
this._selectionMetadata = options.selectionMetadata ?? {};
Expand Down Expand Up @@ -442,9 +439,6 @@ class RelayMockPayloadGenerator {
[getModuleComponentKey(
documentName,
)]: defaultValues.__module_component,
/* $FlowFixMe(>=0.111.0) This comment suppresses an error found
* when Flow v0.111.0 was deployed. To see the error, delete this
* comment and run Flow. */
...this._traverseSelections(
splitOperation.selections,
typeName,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3069,10 +3069,10 @@ flat-cache@^1.2.1:
rimraf "~2.6.2"
write "^0.2.1"

flow-bin@^0.122.0:
version "0.122.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.122.0.tgz#c723a2b33b1a70bd10204704ae1dc776d5d89d79"
integrity sha512-my8N5jgl/A+UVby9E7NDppHdhLgRbWgKbmFZSx2MSYMRh3d9YGnM2MM+wexpUpl0ftY1IM6ZcUwaAhrypLyvlA==
flow-bin@^0.123.0:
version "0.123.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.123.0.tgz#7ba61a0b8775928cf4943ccf78eed2b1b05f7b3a"
integrity sha512-Ylcf8YDIM/KrqtxkPuq+f8O+6sdYA2Nuz5f+sWHlp539DatZz3YMcsO1EiXaf1C11HJgpT/3YGYe7xZ9/UZmvQ==

flush-write-stream@^1.0.0, flush-write-stream@^1.0.2:
version "1.1.1"
Expand Down

0 comments on commit 0ac7714

Please sign in to comment.