mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: React DevTools has gotten pretty outdated in React Native. Let's fix that! Last time I tried this it caused a lot of churn for tools like Flipper, so I approached this in two steps ([detailed in this post](https://fb.workplace.com/groups/rnsyncsquad/permalink/808063140086959/)). First was a short term plan (as implemented in [PR 21344](https://github.com/facebook/react/pull/21344)) to: 1. Branch and make a patch release of DevTools 4.10 that adds a protocol check to the frontend (to detect any newer backends). 2. Upgrade Flipper (and recommend upgrade for the OSS React Native Debugger as well) to this new frontend. 3. Wait for the updated frontend to roll out. The short term plan is now done, at least for the internal build of Flipper, and both GitHub PRs to update Flipper and React Native Debugger have been merged. So this diff moves forward with the longer term plan (implemented in [PR 21331](https://github.com/facebook/react/pull/21331)): 1. Add an explicit version to the protocol used by the DevTools "backend" and "frontend" components to talk to each other. 2. Check this protocol during initialization to ensure it matches. 3. Show upgrade/downgrade instructions if there's a mismatch (or if the check times out without a response– indicating an older backend). 4. Release this as 4.13. --- Changelog: [General][Changed] - Upgrade `react-devtools-core` from ~4.6.0 to ^4.13.0 Reviewed By: yungsters Differential Revision: D28103394 fbshipit-source-id: 21114294144bde9aede63cb3ba98a240082299bd
165 lines
6.7 KiB
JSON
165 lines
6.7 KiB
JSON
{
|
|
"name": "react-native",
|
|
"private": true,
|
|
"version": "1000.0.0",
|
|
"bin": "./cli.js",
|
|
"description": "A framework for building native apps using React",
|
|
"license": "MIT",
|
|
"repository": "github:facebook/react-native",
|
|
"engines": {
|
|
"node": ">=12"
|
|
},
|
|
"jest-junit": {
|
|
"outputDirectory": "reports/junit",
|
|
"outputName": "js-test-results.xml"
|
|
},
|
|
"files": [
|
|
"!template/node_modules",
|
|
"!template/package-lock.json",
|
|
"!template/yarn.lock",
|
|
"android",
|
|
"cli.js",
|
|
"flow",
|
|
"flow-typed",
|
|
"index.js",
|
|
"interface.js",
|
|
"jest-preset.js",
|
|
"jest",
|
|
"Libraries",
|
|
"LICENSE",
|
|
"local-cli",
|
|
"React-Core.podspec",
|
|
"react-native.config.js",
|
|
"react.gradle",
|
|
"React.podspec",
|
|
"React",
|
|
"ReactAndroid",
|
|
"ReactCommon",
|
|
"README.md",
|
|
"rn-get-polyfills.js",
|
|
"scripts/compose-source-maps.js",
|
|
"scripts/find-node.sh",
|
|
"scripts/generate-specs.sh",
|
|
"scripts/generate-specs-cli.js",
|
|
"scripts/ios-configure-glog.sh",
|
|
"scripts/launchPackager.bat",
|
|
"scripts/launchPackager.command",
|
|
"scripts/node-binary.sh",
|
|
"scripts/packager.sh",
|
|
"scripts/react_native_pods.rb",
|
|
"scripts/react-native-xcode.sh",
|
|
"template.config.js",
|
|
"template",
|
|
"third-party-podspecs"
|
|
],
|
|
"scripts": {
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"",
|
|
"flow": "flow",
|
|
"flow-check-ios": "flow check",
|
|
"flow-check-android": "flow check --flowconfig-name .flowconfig.android",
|
|
"lint": "eslint .",
|
|
"lint-ci": "./scripts/circleci/analyze_code.sh && yarn shellcheck",
|
|
"lint-java": "node ./scripts/lint-java.js",
|
|
"shellcheck": "./scripts/circleci/analyze_scripts.sh",
|
|
"clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}",
|
|
"format": "npm run prettier && npm run clang-format",
|
|
"prettier": "prettier --write \"./**/*.{js,md,yml}\"",
|
|
"format-check": "prettier --list-different \"./**/*.{js,md,yml}\"",
|
|
"update-lock": "npx yarn-deduplicate",
|
|
"docker-setup-android": "docker pull reactnativecommunity/react-native-android:3.2",
|
|
"docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .",
|
|
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh",
|
|
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh",
|
|
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh --android --js",
|
|
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
|
|
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
|
|
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
|
|
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
|
|
"build-ios-e2e": "detox build -c ios.sim.release",
|
|
"test-ios-e2e": "detox test -c ios.sim.release packages/rn-tester/e2e",
|
|
"test-ios": "./scripts/objc-test.sh test"
|
|
},
|
|
"workspaces": [
|
|
"packages/!(eslint-config-react-native-community)",
|
|
"repo-config"
|
|
],
|
|
"peerDependencies": {
|
|
"react": "17.0.2"
|
|
},
|
|
"dependencies": {
|
|
"@jest/create-cache-key-function": "^26.5.0",
|
|
"@react-native-community/cli": "^5.0.1-alpha.0",
|
|
"@react-native-community/cli-platform-android": "^5.0.1-alpha.0",
|
|
"@react-native-community/cli-platform-ios": "^5.0.1-alpha.0",
|
|
"@react-native/assets": "1.0.0",
|
|
"@react-native/normalize-color": "1.0.0",
|
|
"@react-native/polyfills": "1.0.0",
|
|
"abort-controller": "^3.0.0",
|
|
"anser": "^1.4.9",
|
|
"base64-js": "^1.1.2",
|
|
"event-target-shim": "^5.0.1",
|
|
"hermes-engine": "~0.8.0",
|
|
"invariant": "^2.2.4",
|
|
"jsc-android": "^245459.0.0",
|
|
"metro-babel-register": "0.66.0",
|
|
"metro-react-native-babel-transformer": "0.66.0",
|
|
"metro-runtime": "0.66.0",
|
|
"metro-source-map": "0.66.0",
|
|
"nullthrows": "^1.1.1",
|
|
"pretty-format": "^26.5.2",
|
|
"promise": "^8.0.3",
|
|
"prop-types": "^15.7.2",
|
|
"react-devtools-core": "^4.13.0",
|
|
"react-refresh": "^0.4.0",
|
|
"regenerator-runtime": "^0.13.2",
|
|
"scheduler": "^0.20.1",
|
|
"stacktrace-parser": "^0.1.3",
|
|
"use-subscription": "^1.0.0",
|
|
"whatwg-fetch": "^3.0.0",
|
|
"ws": "^6.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"flow-bin": "^0.149.0",
|
|
"react": "17.0.2"
|
|
},
|
|
"detox": {
|
|
"test-runner": "jest",
|
|
"runner-config": "packages/rn-tester/e2e/config.json",
|
|
"specs": "",
|
|
"configurations": {
|
|
"android.emu.release": {
|
|
"binaryPath": "packages/rn-tester/android/app/build/outputs/apk/hermes/release/app-hermes-x86-release.apk",
|
|
"testBinaryPath": "packages/rn-tester/android/app/build/outputs/apk/androidTest/hermes/release/app-hermes-release-androidTest.apk",
|
|
"build": "./gradlew :packages:rn-tester:android:app:assembleRelease :packages:rn-tester:android:app:assembleAndroidTest -DtestBuildType=release",
|
|
"type": "android.emulator",
|
|
"device": {
|
|
"avdName": "Nexus_6_API_29"
|
|
}
|
|
},
|
|
"android.emu.debug": {
|
|
"binaryPath": "packages/rn-tester/android/app/build/outputs/apk/hermes/debug/app-hermes-x86-debug.apk",
|
|
"testBinaryPath": "packages/rn-tester/android/app/build/outputs/apk/androidTest/hermes/debug/app-hermes-debug-androidTest.apk",
|
|
"build": "./gradlew :packages:rn-tester:android:app:assembleDebug :packages:rn-tester:android:app:assembleAndroidTest -DtestBuildType=debug",
|
|
"type": "android.emulator",
|
|
"device": {
|
|
"avdName": "Nexus_6_API_29"
|
|
}
|
|
},
|
|
"ios.sim.release": {
|
|
"binaryPath": "packages/rn-tester/build/Build/Products/Release-iphonesimulator/RNTester.app/",
|
|
"build": "xcodebuild -workspace packages/rn-tester/RNTesterPods.xcworkspace -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath packages/rn-tester/build -UseModernBuildSystem=NO -quiet",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone 8"
|
|
},
|
|
"ios.sim.debug": {
|
|
"binaryPath": "packages/rn-tester/build/Build/Products/Debug-iphonesimulator/RNTester.app/",
|
|
"build": "xcodebuild -workspace packages/rn-tester/RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -sdk iphonesimulator -derivedDataPath packages/rn-tester/build -UseModernBuildSystem=NO -quiet",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone 8"
|
|
}
|
|
}
|
|
}
|
|
}
|