@react-native/codegen 0.88.0-nightly-20260729-ca750feef → 0.88.0-nightly-20260801-c7d62a125

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.
@@ -15,6 +15,11 @@ import type {
15
15
  PropTypeAnnotation,
16
16
  } from '../../CodegenSchema';
17
17
  import type {SchemaType} from '../../CodegenSchema';
18
+ import type {
19
+ ObjectMethod as BabelNodeObjectMethod,
20
+ ObjectProperty as BabelNodeObjectProperty,
21
+ SpreadElement as BabelNodeSpreadElement,
22
+ } from '@babel/types';
18
23
 
19
24
  const core = require('@babel/core');
20
25
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const hermesParser = require('hermes-parser');
3
+ const flowParser = require('flow-parser');
4
4
  function parseFlowAndThrowErrors(code, options = {}) {
5
5
  let ast;
6
6
  try {
7
- ast = hermesParser.parse(code, {
7
+ ast = flowParser.parse(code, {
8
8
  babel: false,
9
9
  flow: 'all',
10
10
  reactRuntimeTarget: '19',
@@ -10,9 +10,9 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- import type {Program as ESTreeProgram} from 'hermes-estree';
13
+ import type {Program as ESTreeProgram} from 'flow-estree';
14
14
 
15
- const hermesParser = require('hermes-parser');
15
+ const flowParser = require('flow-parser');
16
16
 
17
17
  function parseFlowAndThrowErrors(
18
18
  code: string,
@@ -20,7 +20,7 @@ function parseFlowAndThrowErrors(
20
20
  ): ESTreeProgram {
21
21
  let ast;
22
22
  try {
23
- ast = hermesParser.parse(code, {
23
+ ast = flowParser.parse(code, {
24
24
  // Produce an ESTree-compliant AST
25
25
  babel: false,
26
26
  // Parse Flow without a pragma
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.88.0-nightly-20260729-ca750feef",
3
+ "version": "0.88.0-nightly-20260801-c7d62a125",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,6 +31,7 @@
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.25.2",
33
33
  "@babel/parser": "^7.29.0",
34
+ "flow-parser": "0.325.0",
34
35
  "hermes-parser": "0.37.0",
35
36
  "invariant": "^2.2.4",
36
37
  "nullthrows": "^1.1.1",
@@ -46,6 +47,7 @@
46
47
  "@babel/plugin-transform-optional-chaining": "^7.24.8",
47
48
  "@babel/preset-env": "^7.25.3",
48
49
  "babel-plugin-syntax-hermes-parser": "0.37.0",
50
+ "flow-estree": "0.325.0",
49
51
  "hermes-estree": "0.37.0",
50
52
  "micromatch": "^4.0.4",
51
53
  "prettier": "3.9.4",