mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58391 Regenerate API snapshots after the bump. `flow-api-translator` picks up the fix in https://github.com/facebook/flow/pull/9486, which stops treating `async` functions with no explicit return annotation as `void` — updating `DependencyGraph#end` and `MetroServer#end` to their correct `Promise<void>` return type in `packages/metro/API.md`. Changelog: [Internal] Changelog: **[Types]**: `DependencyGraph#end` and `MetroServer#end` are now correctly declared as returning `Promise<void>` rather than `void` X-link: https://github.com/react/metro/pull/1909 Test Plan: ``` yarn typecheck yarn lint yarn build yarn run verify-api-snapshots ``` All pass. Reviewed By: mweststrate Differential Revision: D119090467 Pulled By: javache fbshipit-source-id: 21b65f90ed511e0cb035917eaf1b0ca399ece855
38 lines
855 B
JSON
38 lines
855 B
JSON
{
|
|
"name": "@react-native/metro-babel-transformer",
|
|
"version": "0.87.0-main",
|
|
"description": "Babel transformer for React Native applications.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/react/react-native.git",
|
|
"directory": "packages/react-native-babel-transformer"
|
|
},
|
|
"keywords": [
|
|
"transformer",
|
|
"react-native",
|
|
"metro"
|
|
],
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "^22.13.0 || ^24.3.0 || >= 26.0.0"
|
|
},
|
|
"main": "src/index.js",
|
|
"files": [
|
|
"src",
|
|
"README.md",
|
|
"!**/__docs__/**",
|
|
"!**/__fixtures__/**",
|
|
"!**/__mocks__/**",
|
|
"!**/__tests__/**"
|
|
],
|
|
"dependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@react-native/babel-preset": "0.87.0-main",
|
|
"flow-parser": "0.331.0",
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@babel/core": "*"
|
|
}
|
|
}
|