Skip to content

Commit

Permalink
fbsource deploy
Browse files Browse the repository at this point in the history
Reviewed By: gabelevi, bestander

Differential Revision: D3753032

fbshipit-source-id: 47aadb8a54f47c40f0133966df588d42cdbe0d80
  • Loading branch information
jeffmo authored and Facebook Github Bot 2 committed Aug 23, 2016
1 parent 85e6f1b commit a5355ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-flow-vars": "^0.4.0",
"eslint-plugin-react": "^5.2.2",
"fbjs-scripts": "^0.7.1",
"flow-bin": "^0.30.0",
"flow-bin": "^0.31.1",
"graphql": "0.6.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
Expand Down
6 changes: 3 additions & 3 deletions src/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*relay[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(30\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*relay[a-z,_]*\\)?)\\)? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-1]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*relay[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-1]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*relay[a-z,_]*\\)?)\\)? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

[version]
^0.30.0
^0.31.0
1 change: 1 addition & 0 deletions src/container/RelayContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ function createContainerComponent(
fragmentName
);
const dataIDs = [];
// $FlowFixMe(>=0.31.0)
queryData.forEach((data, ii) => {
const dataID = RelayRecord.getDataIDForObject(data);
if (dataID) {
Expand Down
2 changes: 2 additions & 0 deletions src/traversal/transformRelayQueryPayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class RelayPayloadTransformer extends RelayQueryVisitor<PayloadState> {
if (serverData == null) {
server[serializationKey] = serverData = [];
}
// $FlowFixMe(>=0.31.0)
clientData.forEach((clientItem, index) => {
invariant(
Array.isArray(serverData),
Expand All @@ -154,6 +155,7 @@ class RelayPayloadTransformer extends RelayQueryVisitor<PayloadState> {
if (serverItem == null) {
serverData[index] = serverItem = {};
}
// $FlowFixMe(>=0.31.0)
this.traverse(node, {
client: clientItem,
server: serverItem,
Expand Down

0 comments on commit a5355ba

Please sign in to comment.