mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: @public This sync includes the following changes: - **[6bf5e8598](https://github.com/facebook/react/commit/6bf5e8598)**: Fix scheduler setTimeout() re-entrancy check (#14384) //<Brian Vaughn>// - **[7a48c900b](https://github.com/facebook/react/commit/7a48c900b)**: Prevent a v8 deopt when profiling (#14383) //<Brian Vaughn>// - **[f00c2755b](https://github.com/facebook/react/commit/f00c2755b)**: Removed unnecessary externals from Jest bundles (#14372) //<Brian Vaughn>// - **[52bea95cf](https://github.com/facebook/react/commit/52bea95cf)**: Fixed scheduler setTimeout fallback (#14358) //<Brian Vaughn>// - **[1d25aa578](https://github.com/facebook/react/commit/1d25aa578)**: [Fizz] New Server Rendering Infra (#14144) //<Sebastian Markbåge>// - **[f1bf28160](https://github.com/facebook/react/commit/f1bf28160)**: Fix bug in cloneHook (#14364) //<Imre Osswald>// - **[16e120438](https://github.com/facebook/react/commit/16e120438)**: [Fire] Add initial build infrastructure (#14359) //<Dan Abramov>// - **[d14ba87b1](https://github.com/facebook/react/commit/d14ba87b1)**: Validate propTypes for lazy() and memo() and warn about invalid patterns (#14298) //<Dan Abramov>// - **[4f964f09c](https://github.com/facebook/react/commit/4f964f09c)**: Adding isMemo check to react-is package (#14313) //<Jinto Jose>// - **[c2a2d8a53](https://github.com/facebook/react/commit/c2a2d8a53)**: Remove useMutationEffect (#14336) //<Sophie Alpert>// - **[48f1e5b3c](https://github.com/facebook/react/commit/48f1e5b3c)**: Add a null type test for memo (#14325) //<chun shang>// - **[f93f3402f](https://github.com/facebook/react/commit/f93f3402f)**: Make useEffect(async) warning more verbose (#14327) //<Dan Abramov>// - **[ee3ef3a07](https://github.com/facebook/react/commit/ee3ef3a07)**: Fix regression: Errors not emitted in streams (#14314) //<Pelle Wessman>// - **[33f6f5e53](https://github.com/facebook/react/commit/33f6f5e53)**: Remove usage of `fbjs/lib/invariant` in ReactNativeViewConfigRegistry. (#14330) //<Christoph Nakazawa>// - **[686f1060a](https://github.com/facebook/react/commit/686f1060a)**: Publish a local release (canary or stable) to NPM (#14260) //<Brian Vaughn>// - **[7475120ce](https://github.com/facebook/react/commit/7475120ce)**: Prevent deopts from modifying exports object in stable builds (#14309) //<Dan Abramov>// - **[0c7189d92](https://github.com/facebook/react/commit/0c7189d92)**: Fix resolution of outer props with React.memo() (#14312) //<Dan Abramov>// - **[14be29b2b](https://github.com/facebook/react/commit/14be29b2b)**: Add more test coverage for nested memo() (#14311) //<Dan Abramov>// - **[dc0dd4bbf](https://github.com/facebook/react/commit/dc0dd4bbf)**: Use |0 to coerce to number (#14297) //<Dan Abramov>// - **[dd8205cef](https://github.com/facebook/react/commit/dd8205cef)**: List ignored types instead of included types in the stack (#14308) //<Dan Abramov>// - **[a9fdf8a32](https://github.com/facebook/react/commit/a9fdf8a32)**: Warn about reassigning this.props (#14277) //<Dan Abramov>// - **[327cf0ee3](https://github.com/facebook/react/commit/327cf0ee3)**: Fix support for mixing react-dom/server@16.6 and react@<16.6 (#14291) //<Dan Abramov>// - **[c954efa70](https://github.com/facebook/react/commit/c954efa70)**: Remove `import * as` pattern from the codebase (#14282) //<Sebastian Markbåge>// - **[ccb14e270](https://github.com/facebook/react/commit/ccb14e270)**: Fix SSR useCallback in render phase (#14279) //<Dan Abramov>// - **[0e9cb3f5d](https://github.com/facebook/react/commit/0e9cb3f5d)**: Clear fields on unmount of fiber to avoid memory leak (#14276) //<Dominic Gannaway>// - **[592676503](https://github.com/facebook/react/commit/592676503)**: Revert "Clear memoizedState on unmount of fiber to avoid memory leak (#14218)" (#14275) //<Dominic Gannaway>// - **[9b2fb24f9](https://github.com/facebook/react/commit/9b2fb24f9)**: Clear memoizedState on unmount of fiber to avoid memory leak (#14218) //<Dominic Gannaway>// - **[a22fabc2a](https://github.com/facebook/react/commit/a22fabc2a)**: Reduce scheduler serialization overhead (#14249) //<Jason Miller>// - **[21d5f7d32](https://github.com/facebook/react/commit/21d5f7d32)**: Wrap shorthand CSS property collision warning in feature flag (#14245) //<Andrew Clark>// - **[8feeed10d](https://github.com/facebook/react/commit/8feeed10d)**: [scheduler] Remove window.postMessage fallback //<Andrew Clark>// - **[5bce0ef10](https://github.com/facebook/react/commit/5bce0ef10)**: [scheduler] Post to MessageChannel instead of window (#14234) //<Andrew Clark>// - **[f55795c8e](https://github.com/facebook/react/commit/f55795c8e)**: Add regression test for #14188 (#14197) //<Dan Abramov>// - **[b98adb648](https://github.com/facebook/react/commit/b98adb648)**: Simplify CSS shorthand property warning (#14183) //<Sophie Alpert>// - **[f8bfd5868](https://github.com/facebook/react/commit/f8bfd5868)**: fix typo //<Sebastian Markbage>// - **[961eb65b4](https://github.com/facebook/react/commit/961eb65b4)**: Use unique thread ID for each partial render to access Context (#14182) //<Sebastian Markbåge>// - **[1a6ab1e9b](https://github.com/facebook/react/commit/1a6ab1e9b)**: SimpleMemoComponent should warn if a ref is given (#14178) //<Sophie Alpert>// - **[8ae867e6b](https://github.com/facebook/react/commit/8ae867e6b)**: Warn about conflicting style values during updates (#14181) //<Sophie Alpert>// - **[d5e1bf07d](https://github.com/facebook/react/commit/d5e1bf07d)**: Renamed outdated schedule/tracing referecnes (#14177) //<Brian Vaughn>// - **[2dd4ba11e](https://github.com/facebook/react/commit/2dd4ba11e)**: ESlint -> ESLint //<Andrew Clark>// - **[9cc631a53](https://github.com/facebook/react/commit/9cc631a53)**: Don't run danger on bad build (#14143) //<Sophie Alpert>// - **[1034e26fe](https://github.com/facebook/react/commit/1034e26fe)**: Fix typos (#14124) //<Heaven>// - **[5618da49d](https://github.com/facebook/react/commit/5618da49d)**: Fix comment typo (#14156) //<Bartosz Gordon>// - **[9fb919945](https://github.com/facebook/react/commit/9fb919945)**: Add global to ESLint plugin bundle config //<Andrew Clark>// - **[c174f8592](https://github.com/facebook/react/commit/c174f8592)**: Add fb build of ESLint plugin (#14165) //<Andrew Clark>// - **[02e4848e3](https://github.com/facebook/react/commit/02e4848e3)**: Improved suspense support in ReactDOMServer (#14161) //<Alex Taylor>// - **[4b163fee1](https://github.com/facebook/react/commit/4b163fee1)**: Remove errant return assignment (#14164) //<Andrew Clark>// - **[e58ecda9a](https://github.com/facebook/react/commit/e58ecda9a)**: Suspense fuzz tester (#14147) //<Andrew Clark>// - **[7fd1661f8](https://github.com/facebook/react/commit/7fd1661f8)**: Don't warn if an unmounted component is pinged (#14158) //<Andrew Clark>// - **[f9e9913f0](https://github.com/facebook/react/commit/f9e9913f0)**: [Synchronous Suspense] Don't delete children of suspended component (#14157) //<Andrew Clark>// - **[7c560131b](https://github.com/facebook/react/commit/7c560131b)**: Adding logger pri (#14155) //<Nathan Schloss>// - **[3d8bda70e](https://github.com/facebook/react/commit/3d8bda70e)**: Refactor ESLint configuration to enable better IDE integration (#13914) //<Minh Nguyen>// - **[051272f20](https://github.com/facebook/react/commit/051272f20)**: Use Entry in `yarn build ...` Instead of Label (#14148) //<Sebastian Markbåge>// Release Notes: [GENERAL] [FEATURE] [React] - React sync for revisions 3ff2c7c...6bf5e85 Reviewed By: bvaughn Differential Revision: D13288288 fbshipit-source-id: 89a4837a9198c53fc79306933f589ef25d8bb4b6
257 lines
8.3 KiB
JSON
257 lines
8.3 KiB
JSON
{
|
|
"name": "react-native",
|
|
"version": "1000.0.0",
|
|
"description": "A framework for building native apps using React",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/react-native.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=8.3"
|
|
},
|
|
"prettier": {
|
|
"requirePragma": true,
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"bracketSpacing": false,
|
|
"jsxBracketSameLine": true,
|
|
"parser": "flow"
|
|
},
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/jest/assetFileTransformer.js",
|
|
".*": "./jest/preprocessor.js"
|
|
},
|
|
"setupFiles": [
|
|
"./jest/setup.js"
|
|
],
|
|
"timers": "fake",
|
|
"moduleNameMapper": {
|
|
"^React$": "<rootDir>/Libraries/react-native/React.js"
|
|
},
|
|
"testRegex": "/__tests__/.*-test\\.js$",
|
|
"testPathIgnorePatterns": [
|
|
"Libraries/Renderer",
|
|
"/node_modules/",
|
|
"local-cli/templates/",
|
|
"RNTester/e2e"
|
|
],
|
|
"haste": {
|
|
"defaultPlatform": "ios",
|
|
"hasteImplModulePath": "<rootDir>/jest/hasteImpl.js",
|
|
"providesModuleNodeModules": [
|
|
"react-native"
|
|
],
|
|
"platforms": [
|
|
"ios",
|
|
"android"
|
|
]
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/",
|
|
"node_modules/react/node_modules/fbjs/",
|
|
"node_modules/react/lib/ReactDOM.js",
|
|
"node_modules/fbjs/lib/Map.js",
|
|
"node_modules/fbjs/lib/Promise.js",
|
|
"node_modules/fbjs/lib/fetch.js",
|
|
"node_modules/fbjs/lib/ErrorUtils.js",
|
|
"node_modules/fbjs/lib/URI.js",
|
|
"node_modules/fbjs/lib/Deferred.js",
|
|
"node_modules/fbjs/lib/PromiseMap.js",
|
|
"node_modules/fbjs/lib/UserAgent.js",
|
|
"node_modules/fbjs/lib/areEqual.js",
|
|
"node_modules/fbjs/lib/base62.js",
|
|
"node_modules/fbjs/lib/crc32.js",
|
|
"node_modules/fbjs/lib/everyObject.js",
|
|
"node_modules/fbjs/lib/fetchWithRetries.js",
|
|
"node_modules/fbjs/lib/filterObject.js",
|
|
"node_modules/fbjs/lib/flattenArray.js",
|
|
"node_modules/fbjs/lib/forEachObject.js",
|
|
"node_modules/fbjs/lib/isEmpty.js",
|
|
"node_modules/fbjs/lib/removeFromArray.js",
|
|
"node_modules/fbjs/lib/resolveImmediate.js",
|
|
"node_modules/fbjs/lib/someObject.js",
|
|
"node_modules/fbjs/lib/sprintf.js",
|
|
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
|
|
"node_modules/jest-cli",
|
|
"node_modules/react/dist",
|
|
"node_modules/fbjs/.*/__mocks__/",
|
|
"node_modules/fbjs/node_modules/"
|
|
],
|
|
"unmockedModulePathPatterns": [
|
|
"node_modules/react/",
|
|
"Libraries/Renderer",
|
|
"promise",
|
|
"source-map",
|
|
"fastpath",
|
|
"denodeify",
|
|
"fbjs"
|
|
],
|
|
"testEnvironment": "node",
|
|
"collectCoverageFrom": [
|
|
"Libraries/**/*.js",
|
|
"local-cli/**/*.js"
|
|
],
|
|
"coveragePathIgnorePatterns": [
|
|
"/__tests__/",
|
|
"/vendor/",
|
|
"<rootDir>/Libraries/react-native/",
|
|
"<rootDir>/local-cli/templates/"
|
|
]
|
|
},
|
|
"main": "Libraries/react-native/react-native-implementation.js",
|
|
"files": [
|
|
".flowconfig",
|
|
"android",
|
|
"cli.js",
|
|
"flow",
|
|
"flow-github",
|
|
"init.sh",
|
|
"scripts/ios-configure-glog.sh",
|
|
"scripts/ios-install-third-party.sh",
|
|
"scripts/launchPackager.bat",
|
|
"scripts/launchPackager.command",
|
|
"scripts/packager.sh",
|
|
"scripts/react-native-xcode.sh",
|
|
"jest-preset.json",
|
|
"jest",
|
|
"lib",
|
|
"rn-get-polyfills.js",
|
|
"setupBabel.js",
|
|
"Libraries",
|
|
"LICENSE",
|
|
"local-cli",
|
|
"packager",
|
|
"react.gradle",
|
|
"React.podspec",
|
|
"React",
|
|
"ReactAndroid",
|
|
"ReactCommon",
|
|
"README.md",
|
|
"third-party-podspecs"
|
|
],
|
|
"scripts": {
|
|
"start": "node ./local-cli/cli.js start",
|
|
"test": "jest",
|
|
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"",
|
|
"flow": "flow",
|
|
"flow-check-ios": "flow check",
|
|
"flow-check-android": "flow check --flowconfig-name .flowconfig.android",
|
|
"lint": "eslint .",
|
|
"prettier": "prettier \"./**/*.js\" --write",
|
|
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
|
|
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
|
|
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",
|
|
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh",
|
|
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh",
|
|
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash ContainerShip/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 --cleanup"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "16.6.3"
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.0.0",
|
|
"absolute-path": "^0.0.0",
|
|
"art": "^0.10.0",
|
|
"base64-js": "^1.1.2",
|
|
"chalk": "^2.4.1",
|
|
"commander": "^2.9.0",
|
|
"compression": "^1.7.1",
|
|
"connect": "^3.6.5",
|
|
"create-react-class": "^15.6.3",
|
|
"debug": "^2.2.0",
|
|
"denodeify": "^1.2.1",
|
|
"envinfo": "^5.7.0",
|
|
"errorhandler": "^1.5.0",
|
|
"escape-string-regexp": "^1.0.5",
|
|
"event-target-shim": "^1.0.5",
|
|
"fbjs": "^1.0.0",
|
|
"fbjs-scripts": "^1.0.0",
|
|
"fs-extra": "^1.0.0",
|
|
"glob": "^7.1.1",
|
|
"graceful-fs": "^4.1.3",
|
|
"inquirer": "^3.0.6",
|
|
"invariant": "^2.2.4",
|
|
"jest": "24.0.0-alpha.6",
|
|
"jest-junit": "5.2.0",
|
|
"lodash": "^4.17.5",
|
|
"metro": "0.50.0",
|
|
"metro-babel-register": "0.50.0",
|
|
"metro-core": "0.50.0",
|
|
"metro-memory-fs": "0.50.0",
|
|
"mime": "^1.3.4",
|
|
"minimist": "^1.2.0",
|
|
"mkdirp": "^0.5.1",
|
|
"morgan": "^1.9.0",
|
|
"node-fetch": "^2.2.0",
|
|
"node-notifier": "^5.2.1",
|
|
"npmlog": "^2.0.4",
|
|
"nullthrows": "^1.1.0",
|
|
"opn": "^3.0.2",
|
|
"optimist": "^0.6.1",
|
|
"plist": "^3.0.0",
|
|
"pretty-format": "24.0.0-alpha.6",
|
|
"promise": "^7.1.1",
|
|
"prop-types": "^15.5.8",
|
|
"react-clone-referenced-element": "^1.0.1",
|
|
"react-devtools-core": "^3.4.2",
|
|
"react-native-local-cli": "1.0.0-alpha.4",
|
|
"regenerator-runtime": "^0.11.0",
|
|
"rimraf": "^2.5.4",
|
|
"semver": "^5.0.3",
|
|
"serve-static": "^1.13.1",
|
|
"shell-quote": "1.6.1",
|
|
"stacktrace-parser": "^0.1.3",
|
|
"ws": "^1.1.0",
|
|
"xcode": "^1.0.0",
|
|
"xmldoc": "^0.4.0",
|
|
"yargs": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0",
|
|
"@reactions/component": "^2.0.2",
|
|
"async": "^2.4.0",
|
|
"babel-eslint": "9.0.0",
|
|
"babel-generator": "^6.26.0",
|
|
"detox": "9.0.4",
|
|
"coveralls": "^3.0.2",
|
|
"eslint": "5.1.0",
|
|
"eslint-config-fb-strict": "22.1.0",
|
|
"eslint-config-fbjs": "2.0.1",
|
|
"eslint-plugin-eslint-comments": "^3.0.1",
|
|
"eslint-plugin-flowtype": "2.43.0",
|
|
"eslint-plugin-jest": "21.8.0",
|
|
"eslint-plugin-prettier": "2.6.0",
|
|
"eslint-plugin-react": "7.8.2",
|
|
"eslint-plugin-react-native": "3.5.0",
|
|
"flow-bin": "^0.87.0",
|
|
"jest": "24.0.0-alpha.6",
|
|
"jest-junit": "5.2.0",
|
|
"prettier": "1.13.6",
|
|
"react": "16.6.3",
|
|
"react-native-dummy": "0.1.0",
|
|
"react-test-renderer": "16.6.3",
|
|
"shelljs": "^0.7.8"
|
|
},
|
|
"detox": {
|
|
"test-runner": "jest",
|
|
"runner-config": "RNTester/e2e/config.json",
|
|
"specs": "RNTester/e2e",
|
|
"configurations": {
|
|
"ios.sim.release": {
|
|
"binaryPath": "RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/",
|
|
"build": "xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet",
|
|
"type": "ios.simulator",
|
|
"name": "iPhone 8"
|
|
}
|
|
}
|
|
}
|
|
}
|