diff --git a/tools/hermes-parser/js/.flowconfig b/tools/hermes-parser/js/.flowconfig index d1a3c48b590..8a2702d8848 100644 --- a/tools/hermes-parser/js/.flowconfig +++ b/tools/hermes-parser/js/.flowconfig @@ -29,7 +29,7 @@ enums=true experimental.natural_inference.exports.primitive_const=true [version] -^0.256.0 +^0.257.0 [lints] untyped-type-import=error diff --git a/tools/hermes-parser/js/hermes-transform/__tests__/transform/mutations/test-utils.js b/tools/hermes-parser/js/hermes-transform/__tests__/transform/mutations/test-utils.js index 4cfaef55c13..90110174647 100644 --- a/tools/hermes-parser/js/hermes-transform/__tests__/transform/mutations/test-utils.js +++ b/tools/hermes-parser/js/hermes-transform/__tests__/transform/mutations/test-utils.js @@ -83,8 +83,10 @@ export async function parseAndGetAstAndNode( const {ast, scopeManager} = await parse(code); let target: T | null = null; + // $FlowFixMe[incompatible-call] traverse(code, ast, scopeManager, () => ({ // $FlowExpectedError[invalid-computed-prop] - this is guaranteed safe + // $FlowFixMe[incompatible-call] [type](node: T | null) { target = node; }, diff --git a/tools/hermes-parser/js/package.json b/tools/hermes-parser/js/package.json index 4d79ae1f500..218f9370df1 100644 --- a/tools/hermes-parser/js/package.json +++ b/tools/hermes-parser/js/package.json @@ -17,7 +17,7 @@ "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-jest": "^25.2.4", "eslint-plugin-prettier": "^4.2.1", - "flow-bin": "^0.256.0", + "flow-bin": "^0.257.0", "glob": "^8.0.3", "jest": "^29.2.2", "jest-specific-snapshot": "^5.0.0", diff --git a/tools/hermes-parser/js/yarn.lock b/tools/hermes-parser/js/yarn.lock index 7d0cf01b7e0..340db346e22 100644 --- a/tools/hermes-parser/js/yarn.lock +++ b/tools/hermes-parser/js/yarn.lock @@ -3003,10 +3003,10 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561" integrity sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA== -flow-bin@^0.256.0: - version "0.256.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.256.0.tgz#0cddc3b665b8e9cae34eb5896c8429d0f2961fdf" - integrity sha512-ujKn6fRfx9SujbqBLhT/lxFsXRsRDgrot2UuNhw4Z5W3QlVn4teV+7rBhs87FVHSnRvZeFAMKHHYYahWYw5W4w== +flow-bin@^0.257.0: + version "0.257.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.257.0.tgz#5e0ca987ca0533b65865d0378d2d5c902a11332a" + integrity sha512-tGl+GEBXVWw+DqMble1n/oiXN4iil9s9HG1U3GOaeSXUxKe+tedzIMetU3ZvS+BGC54OhdJvPGdR3MrG4V5vvw== flow-enums-runtime@^0.0.6: version "0.0.6"