Christoph Nakazawa
eb413bc9e0
Remove "babel-core" and other babel 6 modules.
...
Summary: We are using babel 7 and should not be using babel 6 any longer, this removes some references to babel 6 modules.
Reviewed By: yungsters
Differential Revision: D13137326
fbshipit-source-id: 4a2db84522e5613f72a8005f0b1e9943e815f9ec
2018-12-10 18:12:05 -08:00
Josh Justice
fb16af7944
Detox debug build ( #22572 )
...
Summary:
Adds a Detox configuration and instructions for running the app in development mode in Detox. This speeds up developing tests, because changes to production code don't require a full rebuild.
Pull Request resolved: https://github.com/facebook/react-native/pull/22572
Differential Revision: D13396883
Pulled By: cpojer
fbshipit-source-id: 186cc8d75eccae411b602cb0f68f0e11856e0743
2018-12-10 02:33:31 -08:00
Christoph Nakazawa
896bb8a21e
Move react-native template
...
Summary: This diff moves the React Native template from `local-cli/templates/HelloWorld` to `template`. Keeping it in the react-native repo will allow us to make changes to the template and version it together with react-native, instead of moving it out into a separate repo and trying to keep the template in sync with RN.
Reviewed By: TheSavior
Differential Revision: D13372949
fbshipit-source-id: e68e267b4dcf6384535d7b48fc11e297a12e9676
2018-12-07 07:49:19 -08:00
Christoph Nakazawa
9d3f598c2c
Remove references to `local-cli`
...
Summary: This cleans up various configurations after the removal of this folder.
Reviewed By: hramos
Differential Revision: D13338515
fbshipit-source-id: 9d6877921e15a183e46861626af831231333f42a
2018-12-07 07:49:18 -08:00
Ivan Filenko
96ce6f9538
Bump ws package to 1.1.5 due to vulnerability issues ( #21769 )
...
Summary:
Update `ws` package from 1.1.0 to 1.1.5 due to vulnerability issues.
Here is `npm audit` report:
```
=== npm audit security report ===
┌──────────────────────────────────────────────────────────────────────────────┐
│ Manual Review │
│ Some vulnerabilities require your attention to resolve │
│ │
│ Visit https://go.npm.me/audit-guide for additional guidance │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High │ Denial of Service │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ ws │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >= 1.1.5 <2.0.0 || >=3.3.1 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ c635d8a886cde7688a0123f573cc5b1f0430780052ba848c8fa1dc8a4c3… │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ c635d8a886cde7688a0123f573cc5b1f0430780052ba848c8fa1dc8a4c3… │
│ │ > react-devtools-core > ws │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://nodesecurity.io/advisories/550 │
└───────────────┴──────────────────────────────────────────────────────────────┘
```
Pull Request resolved: https://github.com/facebook/react-native/pull/21769
Reviewed By: hramos
Differential Revision: D10379892
Pulled By: cpojer
fbshipit-source-id: 9d03f8231a90c5f55eb95ccac029aedd45a49a2d
2018-12-03 22:21:56 -08:00
Tim Yung
073ad6a036
React sync for revisions 3ff2c7c...6bf5e85
...
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
2018-12-03 16:29:53 -08:00
Christoph Nakazawa
4148976a83
Use `invariant` instead of `fbjs/lib/invariant`
...
Summary: This is one more step to remove `fbjs` from `react-native-github`. This changes both the internal and external code to use `invariant` from zertosh instead of the copy in fbjs.
Reviewed By: yungsters
Differential Revision: D13195941
fbshipit-source-id: 73564ca1715110e7da9c7ef56dc57374d61377e0
2018-12-03 00:07:02 -08:00
Mike Grabowski
cb6eb03776
Extract out CLI ( #22337 )
...
Summary:
Continuation of https://github.com/facebook/react-native/pull/22174 with an exception that `local-cli` folder is left in React Native repository to keep Facebook internal and React Native calls still working.
Separate strategy should be developed to remove all uses of `local-cli` in favor of dedicated utilities.
Pull Request resolved: https://github.com/facebook/react-native/pull/22337
Reviewed By: TheSavior
Differential Revision: D13172898
Pulled By: cpojer
fbshipit-source-id: 0217867f9944648307475ebe629eb729da7bfaaf
2018-12-02 22:21:43 -08:00
Héctor Ramos
69e9c9d371
Add Coveralls to package.json [1/2] ( #21017 )
...
Summary:
Adds a new step to the test suite. Test coverage is now collected and sent to Coveralls.
Initial configuration is limited to the Libraries/ and local-cli/ directories. Please let me know if additional directories should be considered.
I have enabled this repo on the coveralls service. The coveralls token has been added to React Native's Circle CI environment variables.
- Track coverage on PRs, and fail PRs that lower the coverage %
- Increase coverage :)
[INTERNAL] [ENHANCEMENT] [.circleci/config.yml] - Start tracking code coverage (JS)
Pull Request resolved: https://github.com/facebook/react-native/pull/21017
Differential Revision: D9724396
Pulled By: hramos
fbshipit-source-id: 61da4478877805f9a9a3c9670b54ddc4e40e958b
2018-11-30 19:49:00 -08:00
Eli White
3749da1312
Make RNTester build and pass again ( #22468 )
...
Summary:
Detox was failing because of build errors due to the new xcode10 build system. These errors were fixed by RSNara in b7349f9857
but this callsite was missed.
Pull Request resolved: https://github.com/facebook/react-native/pull/22468
Reviewed By: RSNara
Differential Revision: D13287386
Pulled By: TheSavior
fbshipit-source-id: 8a2df9801c69d851eabe7074ffc12b29c03a636a
2018-11-30 18:30:39 -08:00
Rafael Oleza
8d68a3e9f1
Upgrade metro in RN
...
Summary: Upgrade metro, yay! :)
Reviewed By: hramos
Differential Revision: D13267399
fbshipit-source-id: 37ec0daa2a282f56a70db0dfdfbf40e361813a15
2018-11-30 02:58:24 -08:00
Panagiotis Vekris
ef2084c6bd
0.87.0 in xplat/js
...
Summary: allow-large-files
Reviewed By: samwgoldman
Differential Revision: D13230018
fbshipit-source-id: f07e2371a3b7382de0592cc7c7b20e7f4faa6889
2018-11-28 17:32:50 -08:00
Tim Yung
4355b2df1b
JS: Upgrade to `chalk@^2.4.1`
...
Summary: Upgrades to `chalk@^2.4.1`. Verified no dependencies to the breaking changes in `chalk@2.0.0`.
Reviewed By: cpojer
Differential Revision: D13192150
fbshipit-source-id: 27a1a53d50a3c7628528a4f21e7166d452b2f205
2018-11-27 23:33:56 -08:00
Rubén Norte
922e196ed1
jest: make regex for tests stricter
...
Summary:
Updated the configuration for all projects on xplat/js to only consider tests that end with `-test.js`.
All tests were migrated in the previous diff of the stack.
Reviewed By: mjesun
Differential Revision: D13185676
fbshipit-source-id: baaba94fabc403acb30b0b5a0462788813d7a870
2018-11-26 10:30:12 -08:00
Rafael Oleza
3355c52467
Bump metro version in React Native
...
Summary: This is the tweak on the release process of metro: after publishing D13075199 and releasing a new version of Metro, this diff upgrades it in RN along with its yarn.lock file. This should allow us to publish new versions of metro without breaking the RN sanity scripts (or disable them).
Reviewed By: hramos
Differential Revision: D13084224
fbshipit-source-id: 19781ae142db11d7dd8b6ca4303366f7ccb32dcc
2018-11-22 12:27:10 -08:00
Panagiotis Vekris
8fb228f313
Flow v0.86.0 in xplat/js
...
Summary:
allow-large-files
bypass-lint
ignore-conflict-markers
ignore-signed-source
ignore-nocommit
drop-conflicts
Reviewed By: yungsters
Differential Revision: D13081129
fbshipit-source-id: fbb0ccaf3c0a2f224a56f6f6ac6c26811ebba583
2018-11-16 10:43:16 -08:00
Spencer Ahrens
a00940693e
New TextInput-test that would have prevented S168585
...
Summary: Adds a basic test that would have prevented S168585. We should expand coverage of this and other components as well.
Reviewed By: TheSavior
Differential Revision: D13038064
fbshipit-source-id: 14cf4742efd53d7bca2a3f8d1c5c34ebc6227674
2018-11-15 20:51:52 -08:00
Brian Vaughn
aacb06c594
Fix React Native AsyncMode and DevTools
...
Summary:
Fixes two problems I uncovered with React Native:
1. `FBCore/Prelude` points to `React.unstable_AsyncMode` which is not defined. (This type was renamed to `React.unstable_ConcurrentMode` in React v16.6.0. **As a result** people in the "react_native:async_rendering" GK will no longer get runtime errors on app start.
2. Updates `react-devtools` and (more importantly) `react-devtools-core` to 3.4.2 to handle the React-internal tag/type refactoring that happened prior to the release of 16.6.0. **As a result** DevTools will no longer cause a runtime error when connected to React Native.
For the second change, I ran `js1 upgrade react-devtools -v ^3.4.2`
Reviewed By: sebmarkbage
Differential Revision: D13030590
fbshipit-source-id: 603f7f6259f282839039820bcdba4310064a7965
2018-11-15 09:26:01 -08:00
Stephy Ma
984eef8f9e
Revert D12994045: Flow v0.86.0 in xplat/js [3/n]
...
Differential Revision:
D12994045
Original commit changeset: 04552bf081ba
fbshipit-source-id: 062b367b88a966a6efc895c99e9911f0ec0fe8ff
2018-11-14 23:04:04 -08:00
Panagiotis Vekris
43ad3a64e6
Flow v0.86.0 in xplat/js [3/n]
...
Summary:
allow-large-files
bypass-lint
ignore-conflict-markers
ignore-signed-source
ignore-nocommit
drop-conflicts
Reviewed By: avikchaudhuri
Differential Revision: D12994045
fbshipit-source-id: 04552bf081ba742de58e80fba08f8280cb86b1c3
2018-11-14 22:13:27 -08:00
Rafael Oleza
06c13b3e06
Upgrade jest to v24.0.0-alpha.6
...
Summary: yayyay
Reviewed By: mjesun
Differential Revision: D13027838
fbshipit-source-id: ce51a82fa4c6dfa62e202e52c2733d161ae52883
2018-11-14 15:26:55 -08:00
Rafael Oleza
de60e8643a
Bump metro@0.49.1
...
Summary: galavant-fistbump
Reviewed By: jeanlauliac
Differential Revision: D13027247
fbshipit-source-id: 3635527b6c745111b26d9f61666c30e696b04526
2018-11-12 11:31:28 -08:00
Tim Yung
0cb59b5c23
React sync for revisions 4773fdf...3ff2c7c
...
Summary:
@public
This sync includes the following changes:
- **[3ff2c7ccd](https://github.com/facebook/react/commit/3ff2c7ccd )**: Invalid actualDuration+treeBaseDuration for hidden+suspended trees (#14065 ) //<Brian Vaughn>//
- **[5afa1c4ed](https://github.com/facebook/react/commit/5afa1c4ed )**: Tag MemoComponent with PerformedWork effectTag for DevTools Profiler (#14141 ) //<Brian Vaughn>//
- **[e27720d7f](https://github.com/facebook/react/commit/e27720d7f )**: [Synchronous Suspense] Reuse deletions from primary tree (#14133 ) //<Andrew Clark>//
- **[aa1ffe4e7](https://github.com/facebook/react/commit/aa1ffe4e7 )**: Show deprecated context object warnings usage in ReactDOM server (#14033 ) //<Dominic Gannaway>//
- **[e3a7b9645](https://github.com/facebook/react/commit/e3a7b9645 )**: Make react-debug-tools a private package //<Andrew Clark>//
- **[ba1984423](https://github.com/facebook/react/commit/ba1984423 )**: Update bundle sizes for 16.6.1 release //<Andrew Clark>//
- **[b50e63ef5](https://github.com/facebook/react/commit/b50e63ef5 )**: Updating package versions for release 16.6.1 //<Andrew Clark>//
- **[8f2c89e96](https://github.com/facebook/react/commit/8f2c89e96 )**: Make react-debug-tools a private package //<Andrew Clark>//
- **[2aecbcd6f](https://github.com/facebook/react/commit/2aecbcd6f )**: "functional component" -> "function component" (#14123 ) //<locknono>//
- **[b4608dd24](https://github.com/facebook/react/commit/b4608dd24 )**: Remove unused simulated flag parameter (#14127 ) //<Nadav Kaner>//
- **[3c69a1881](https://github.com/facebook/react/commit/3c69a1881 )**: Recover from errors with a boundary in completion phase (#14104 ) //<Dan Abramov>//
- **[b020fb114](https://github.com/facebook/react/commit/b020fb114 )**: Check correct commit phase props in fuzz tester (#14129 ) //<Andrew Clark>//
- **[b67c1a2ee](https://github.com/facebook/react/commit/b67c1a2ee )**: Add DEV-only checks for assumption about instance properties (#14128 ) //<Dan Abramov>//
- **[f777d196e](https://github.com/facebook/react/commit/f777d196e )**: Fix lazy() with defaultProps (#14112 ) //<Dan Abramov>//
- **[e4512991c](https://github.com/facebook/react/commit/e4512991c )**: Fix unhiding in IE11 (#14126 ) //<Sophie Alpert>//
- **[affb2b50c](https://github.com/facebook/react/commit/affb2b50c )**: Enable hooks in www test renderer, too //<Andrew Clark>//
- **[0a0f503d5](https://github.com/facebook/react/commit/0a0f503d5 )**: Enable hooks in www build (#14116 ) //<Andrew Clark>//
- **[600651e68](https://github.com/facebook/react/commit/600651e68 )**: Restore the Hooks dispatcher after using SSR (#14105 ) //<Dan Abramov>//
- **[e9a2ec915](https://github.com/facebook/react/commit/e9a2ec915 )**: [suspense] Avoid double commit by re-rendering immediately and reusing primary children (#14083 ) //<Andrew Clark>//
- **[9d47143e8](https://github.com/facebook/react/commit/9d47143e8 )**: Implement {,un}hideInstance on RN renderer (#14115 ) //<Sophie Alpert>//
- **[ebdb47d2c](https://github.com/facebook/react/commit/ebdb47d2c )**: DCE hooks code when flag is off (#14111 ) //<Sophie Alpert>//
- **[8b87ebf5b](https://github.com/facebook/react/commit/8b87ebf5b )**: Rename .internal tests that aren't using internals (#14109 ) //<Sophie Alpert>//
- **[da04058a9](https://github.com/facebook/react/commit/da04058a9 )**: Use Function.prototype.apply in warningWithoutStack (#14107 ) //<Sophie Alpert>//
- **[fd1256a56](https://github.com/facebook/react/commit/fd1256a56 )**: Add Debug Tools Package for Introspection of Hooks (#14085 ) //<Sebastian Markbåge>//
- **[b305c4e03](https://github.com/facebook/react/commit/b305c4e03 )**: fix(react-dom): Fix crash during server render (#14103 ) //<Tiago Nunes>//
- **[d34d1c3ba](https://github.com/facebook/react/commit/d34d1c3ba )**: react-reconciler: Update README.md (#13953 ) //<Marcelo Jorge Vieira>//
- **[6c404d82a](https://github.com/facebook/react/commit/6c404d82a )**: Bugfix: Add back early return in setOffsets which was removed between 16.4.2 and 16.5.0. Fails in Edge in some scenarios. (#14095 ) //<einarq>//
- **[8eca0eff8](https://github.com/facebook/react/commit/8eca0eff8 )**: chore(tests): don't rely on jest fake timers scheduling real timers (#14003 ) //<Simen Bekkhus>//
- **[293fed899](https://github.com/facebook/react/commit/293fed899 )**: Warn for bad useEffect return value (#14069 ) //<Sophie Alpert>//
- **[ae196e84b](https://github.com/facebook/react/commit/ae196e84b )**: Rename inputsAreEqual to areHookInputsEqual & move it to shared (#14036 ) //<Mateusz Burzyński>//
- **[c898020e0](https://github.com/facebook/react/commit/c898020e0 )**: Warn for forwardRef(memo(...)) (#14070 ) //<Sophie Alpert>//
- **[bf9fadfcf](https://github.com/facebook/react/commit/bf9fadfcf )**: [Hooks] Remove dispatch callbacks (#14037 ) //<Andrew Clark>//
- **[8c67bbf18](https://github.com/facebook/react/commit/8c67bbf18 )**: [scheduler] Deadline object -> shouldYield (#14025 ) //<Andrew Clark>//
- **[e02086bfc](https://github.com/facebook/react/commit/e02086bfc )**: Warn about variable number of dependencies //<Andrew Clark>//
- **[b92cdef64](https://github.com/facebook/react/commit/b92cdef64 )**: Rename ReactHooks test suite //<Andrew Clark>//
- **[6efbbe068](https://github.com/facebook/react/commit/6efbbe068 )**: Prettier //<Sophie Alpert>//
- **[504576306](https://github.com/facebook/react/commit/504576306 )**: Swap order of function member in hook union types //<Andrew Clark>//
- **[ddbfe2ed5](https://github.com/facebook/react/commit/ddbfe2ed5 )**: Add ESLint rule for React Hooks //<Caleb Meredith>//
- **[acb489963](https://github.com/facebook/react/commit/acb489963 )**: Clear effect tags from a fiber that suspends in non-concurrent mode //<Andrew Clark>//
- **[933b64710](https://github.com/facebook/react/commit/933b64710 )**: Disable hook update callback (2nd arg to setState/dispatch) //<Andrew Clark>//
- **[5fc84efac](https://github.com/facebook/react/commit/5fc84efac )**: Skip updating effect tag when skipping effect //<Sophie Alpert>//
- **[9f34eb79a](https://github.com/facebook/react/commit/9f34eb79a )**: Add readContext to ReactPartialRendererHooks //<Alex Taylor>//
- **[f7cb9d2b2](https://github.com/facebook/react/commit/f7cb9d2b2 )**: Warn about useContext(Consumer|Provider) //<Dan Abramov>//
- **[63cc7d2b3](https://github.com/facebook/react/commit/63cc7d2b3 )**: Test useContext in pure, forwardRef, and PureComponent //<Dan Abramov>//
- **[3a7c6da8d](https://github.com/facebook/react/commit/3a7c6da8d )**: Make effects actually work with memo //<Sophie Alpert>//
- **[75a1c2e72](https://github.com/facebook/react/commit/75a1c2e72 )**: The Lost Effect, chapter 3 //<Sophie Alpert>//
- **[55a4b1f37](https://github.com/facebook/react/commit/55a4b1f37 )**: memo supports Hooks //<Sophie Alpert>//
- **[30aa4ad55](https://github.com/facebook/react/commit/30aa4ad55 )**: The Lost Effect, chapter 2 //<Sophie Alpert>//
- **[b772e0e26](https://github.com/facebook/react/commit/b772e0e26 )**: "functional component" -> "function component" in hooks error messages //<Sebastian Markbåge>//
- **[9e9e3970e](https://github.com/facebook/react/commit/9e9e3970e )**: Warn for Hook set-state on unmounted component //<Sophie Alpert>//
- **[6514697f0](https://github.com/facebook/react/commit/6514697f0 )**: Make sure deletions don't stop passive effects //<Sophie Alpert>//
- **[dd019d34d](https://github.com/facebook/react/commit/dd019d34d )**: Add support for hooks to ReactDOMServer //<Alex Taylor>//
- **[11d0781ee](https://github.com/facebook/react/commit/11d0781ee )**: Defer useEffect until after paint //<Andrew Clark>//
- **[105f2de54](https://github.com/facebook/react/commit/105f2de54 )**: Put hooks behind feature flag //<Andrew Clark>//
- **[7bee9fbdd](https://github.com/facebook/react/commit/7bee9fbdd )**: Initial hooks implementation //<Andrew Clark>//
- **[37c7fe0a5](https://github.com/facebook/react/commit/37c7fe0a5 )**: Update createRoot warning message based on `enableStableConcurrentModeAPIs` (#14017 ) //<Rauno Freiberg>//
- **[95f98a187](https://github.com/facebook/react/commit/95f98a187 )**: fix typo (#13955 ) //<Joseph>//
- **[e217f2f1a](https://github.com/facebook/react/commit/e217f2f1a )**: Updated comment for getEventModifierState (#13918 ) //<Patrick>//
- **[275e76e83](https://github.com/facebook/react/commit/275e76e83 )**: Enable stable concurrent APIs flag for 16.7 alpha (#13928 ) //<Brian Vaughn>//
- **[8b97a9c36](https://github.com/facebook/react/commit/8b97a9c36 )**: Update bundle sizes for 16.6.0 release //<Dan Abramov>//
- **[6c29eabf7](https://github.com/facebook/react/commit/6c29eabf7 )**: Updating package versions for release 16.6.0 //<Dan Abramov>//
- **[d520b358d](https://github.com/facebook/react/commit/d520b358d )**: Revert all package versions to 16.5.2 state //<Dan Abramov>//
- **[8f1ec7649](https://github.com/facebook/react/commit/8f1ec7649 )**: Bump versions to beta.0 //<Dan Abramov>//
- **[5055a83fa](https://github.com/facebook/react/commit/5055a83fa )**: Revert "Revert "Updating dependencies for react-noop-renderer"" //<Dan Abramov>//
- **[3e8b4a5b8](https://github.com/facebook/react/commit/3e8b4a5b8 )**: Revert "Updating dependencies for react-noop-renderer" //<Brian Vaughn>//
- **[d8e03de4a](https://github.com/facebook/react/commit/d8e03de4a )**: [react-cache] Remove `cache` as argument to `read` (#13865 ) //<Andrew Clark>//
- **[fefa1269e](https://github.com/facebook/react/commit/fefa1269e )**: Revert accidentally committed existence check (#13931 ) //<Andrew Clark>//
- **[80a0c05ce](https://github.com/facebook/react/commit/80a0c05ce )**: Removed react-cache from the bundle list for now (#13930 ) //<BrianVaughn>//
- **[915e4eab5](https://github.com/facebook/react/commit/915e4eab5 )**: Add "unstable_" prefix to react-cache and jest-react (#13929 ) //<Brian Vaughn>//
- **[cbbc2b6c4](https://github.com/facebook/react/commit/cbbc2b6c4 )**: [Synchronous Suspense] Suspending a class outside concurrent mode (#13926 ) //<Andrew Clark>//
- **[4947fcd76](https://github.com/facebook/react/commit/4947fcd76 )**: Fix lint (#13923 ) //<Sebastian Markbåge>//
- **[d75c69e0c](https://github.com/facebook/react/commit/d75c69e0c )**: Remove unstable_ prefix from Suspense (#13922 ) //<Sebastian Markbåge>//
- **[c8ef2feda](https://github.com/facebook/react/commit/c8ef2feda )**: Remove redundant word "the" (#13919 ) //<John Lin>//
- **[55444a6f4](https://github.com/facebook/react/commit/55444a6f4 )**: Try rendering again if a timed out tree receives an update (#13921 ) //<Andrew Clark>//
- **[04c4f2fce](https://github.com/facebook/react/commit/04c4f2fce )**: [reconciler] ReactFiberNewContext import maxSigned31BitInt twice (#13857 ) //<yongningfu>//
- **[409e472fc](https://github.com/facebook/react/commit/409e472fc )**: Add flow types in ReactControlledComponent (#13669 ) //<Abdul Rauf>//
- **[663835a43](https://github.com/facebook/react/commit/663835a43 )**: Add flow types in getEventModifierState (#13909 ) //<Abdul Rauf>//
- **[82710097f](https://github.com/facebook/react/commit/82710097f )**: Add flow types in getNodeForCharacterOffset (#13908 ) //<Abdul Rauf>//
- **[b753f76a7](https://github.com/facebook/react/commit/b753f76a7 )**: Fix failing async tests in Node 10 //<Andrew Clark>//
- **[b5c0852fd](https://github.com/facebook/react/commit/b5c0852fd )**: Bump version to 16.6.0-beta.0 (#13906 ) //<Dan Abramov>//
- **[769b1f270](https://github.com/facebook/react/commit/769b1f270 )**: pure -> memo (#13905 ) //<Dan Abramov>//
- **[8ecd4bd4f](https://github.com/facebook/react/commit/8ecd4bd4f )**: Add support for React.pure in ReactDOMServer (#13855 ) //<Alex Taylor>//
- **[15b11d23f](https://github.com/facebook/react/commit/15b11d23f )**: Allow arbitrary types to be wrapped in pure (#13903 ) //<Sebastian Markbåge>//
- **[e770af7a3](https://github.com/facebook/react/commit/e770af7a3 )**: Add back accidentally deleted `break` to prevent fallthrough //<Andrew Clark>//
- **[95a313ec0](https://github.com/facebook/react/commit/95a313ec0 )**: Unfork Lazy Component Branches (#13902 ) //<Sebastian Markbåge>//
- **[e16cdd5b1](https://github.com/facebook/react/commit/e16cdd5b1 )**: Always bail out timed out children even if they receive an update (#13901 ) //<Andrew Clark>//
- **[7268d97d2](https://github.com/facebook/react/commit/7268d97d2 )**: Centralize props memoization (#13900 ) //<Sebastian Markbåge>//
- **[0fc044679](https://github.com/facebook/react/commit/0fc044679 )**: Class component can suspend without losing state outside concurrent mode (#13899 ) //<Andrew Clark>//
- **[36db53822](https://github.com/facebook/react/commit/36db53822 )**: Bugfix for #13886 (#13896 ) //<Andrew Clark>//
- **[6938dcaac](https://github.com/facebook/react/commit/6938dcaac )**: SSR support for class contextType (#13889 ) //<Sebastian Markbåge>//
- **[fa65c58e1](https://github.com/facebook/react/commit/fa65c58e1 )**: Add readContext to SSR (#13888 ) //<Sebastian Markbåge>//
- **[d9a3cc070](https://github.com/facebook/react/commit/d9a3cc070 )**: React.lazy constructor must return result of a dynamic import (#13886 ) //<Andrew Clark>//
- **[d9659e499](https://github.com/facebook/react/commit/d9659e499 )**: Lazy components must use React.lazy (#13885 ) //<Andrew Clark>//
- **[0648ca618](https://github.com/facebook/react/commit/0648ca618 )**: Revert "React.pure automatically forwards ref" (#13887 ) //<Sophie Alpert>//
- **[4dd772ac1](https://github.com/facebook/react/commit/4dd772ac1 )**: Prettier :( //<Andrew Clark>//
- **[98bab66c3](https://github.com/facebook/react/commit/98bab66c3 )**: Fix lint //<Andrew Clark>//
- **[8ced545e3](https://github.com/facebook/react/commit/8ced545e3 )**: Suspense component does not capture if `fallback` is not defined (#13879 ) //<Andrew Clark>//
- **[b738ced47](https://github.com/facebook/react/commit/b738ced47 )**: Remove render prop option from Suspense (#13880 ) //<Andrew Clark>//
- **[55b827942](https://github.com/facebook/react/commit/55b827942 )**: Strict mode and default mode should have same Suspense semantics (#13882 ) //<Andrew Clark>//
- **[dac9202a9](https://github.com/facebook/react/commit/dac9202a9 )**: Hide timed-out children instead of deleting them so their state ispreserved (#13823 ) //<Andrew Clark>//
- **[4f0bd4590](https://github.com/facebook/react/commit/4f0bd4590 )**: Replacement of old links, by the new ones of the documentation. (#13871 ) //<Pablo Javier D. A>//
- **[7685b55d2](https://github.com/facebook/react/commit/7685b55d2 )**: Remove unstable_read() in favor of direct dispatcher call (#13861 )//<Dan Abramov>//
- **[21a79a1d9](https://github.com/facebook/react/commit/21a79a1d9 )**: [schedule] Call ensureHostCallbackIsScheduled without args (#13852 ) //<Trivikram Kamat>//
- **[9ea4bc6ed](https://github.com/facebook/react/commit/9ea4bc6ed )**: Fix false positive context warning when using an old React (#13850 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions 4773fdf...3ff2c7c
Reviewed By: sebmarkbage
Differential Revision: D12955345
fbshipit-source-id: db12076758fe85a519074ca4fe3aa5ede6f4fd49
2018-11-07 19:36:04 -08:00
Tim Yung
6448f4e2f1
RN: Revert React 16.6 Sync
...
Summary:
There are some critical bugs that require further investigation in the most recent upgrade to React 16.6 (and ReactNativeRenderer changes).
This revision reverts the sync until these issues have been resolved.
Reviewed By: mdvacca
Differential Revision: D12918541
fbshipit-source-id: 5c1ada185851ba599f3c86387158a2b41f3dcf3e
2018-11-04 01:08:40 -07:00
Tim Yung
8b275a8b8d
React sync for revisions 4773fdf...bf9fadf
...
Summary:
@public
This sync includes the following changes:
- **[bf9fadfcf](https://github.com/facebook/react/commit/bf9fadfcf )**: [Hooks] Remove dispatch callbacks (#14037 ) //<Andrew Clark>//
- **[8c67bbf18](https://github.com/facebook/react/commit/8c67bbf18 )**: [scheduler] Deadline object -> shouldYield (#14025 ) //<Andrew Clark>//
- **[e02086bfc](https://github.com/facebook/react/commit/e02086bfc )**: Warn about variable number of dependencies //<Andrew Clark>//
- **[b92cdef64](https://github.com/facebook/react/commit/b92cdef64 )**: Rename ReactHooks test suite //<Andrew Clark>//
- **[6efbbe068](https://github.com/facebook/react/commit/6efbbe068 )**: Prettier //<Sophie Alpert>//
- **[504576306](https://github.com/facebook/react/commit/504576306 )**: Swap order of function member in hook union types //<Andrew Clark>//
- **[ddbfe2ed5](https://github.com/facebook/react/commit/ddbfe2ed5 )**: Add ESLint rule for React Hooks //<Caleb Meredith>//
- **[acb489963](https://github.com/facebook/react/commit/acb489963 )**: Clear effect tags from a fiber that suspends in non-concurrent mode //<Andrew Clark>//
- **[933b64710](https://github.com/facebook/react/commit/933b64710 )**: Disable hook update callback (2nd arg to setState/dispatch) //<Andrew Clark>//
- **[5fc84efac](https://github.com/facebook/react/commit/5fc84efac )**: Skip updating effect tag when skipping effect //<Sophie Alpert>//
- **[9f34eb79a](https://github.com/facebook/react/commit/9f34eb79a )**: Add readContext to ReactPartialRendererHooks //<Alex Taylor>//
- **[f7cb9d2b2](https://github.com/facebook/react/commit/f7cb9d2b2 )**: Warn about useContext(Consumer|Provider) //<Dan Abramov>//
- **[63cc7d2b3](https://github.com/facebook/react/commit/63cc7d2b3 )**: Test useContext in pure, forwardRef, and PureComponent //<Dan Abramov>//
- **[3a7c6da8d](https://github.com/facebook/react/commit/3a7c6da8d )**: Make effects actually work with memo //<Sophie Alpert>//
- **[75a1c2e72](https://github.com/facebook/react/commit/75a1c2e72 )**: The Lost Effect, chapter 3 //<Sophie Alpert>//
- **[55a4b1f37](https://github.com/facebook/react/commit/55a4b1f37 )**: memo supports Hooks //<Sophie Alpert>//
- **[30aa4ad55](https://github.com/facebook/react/commit/30aa4ad55 )**: The Lost Effect, chapter 2 //<Sophie Alpert>//
- **[b772e0e26](https://github.com/facebook/react/commit/b772e0e26 )**: "functional component" -> "function component" in hooks error messages //<Sebastian Markbåge>//
- **[9e9e3970e](https://github.com/facebook/react/commit/9e9e3970e )**: Warn for Hook set-state on unmounted component //<Sophie Alpert>//
- **[6514697f0](https://github.com/facebook/react/commit/6514697f0 )**: Make sure deletions don't stop passive effects //<Sophie Alpert>//
- **[dd019d34d](https://github.com/facebook/react/commit/dd019d34d )**: Add support for hooks to ReactDOMServer //<Alex Taylor>//
- **[11d0781ee](https://github.com/facebook/react/commit/11d0781ee )**: Defer useEffect until after paint //<Andrew Clark>//
- **[105f2de54](https://github.com/facebook/react/commit/105f2de54 )**: Put hooks behind feature flag //<Andrew Clark>//
- **[7bee9fbdd](https://github.com/facebook/react/commit/7bee9fbdd )**: Initial hooks implementation //<Andrew Clark>//
- **[37c7fe0a5](https://github.com/facebook/react/commit/37c7fe0a5 )**: Update createRoot warning message based on `enableStableConcurrentModeAPIs` (#14017 ) //<Rauno Freiberg>//
- **[95f98a187](https://github.com/facebook/react/commit/95f98a187 )**: fix typo (#13955 ) //<Joseph>//
- **[e217f2f1a](https://github.com/facebook/react/commit/e217f2f1a )**: Updated comment for getEventModifierState (#13918 ) //<Patrick>//
- **[275e76e83](https://github.com/facebook/react/commit/275e76e83 )**: Enable stable concurrent APIs flag for 16.7 alpha (#13928 ) //<Brian Vaughn>//
- **[8b97a9c36](https://github.com/facebook/react/commit/8b97a9c36 )**: Update bundle sizes for 16.6.0 release //<Dan Abramov>//
- **[6c29eabf7](https://github.com/facebook/react/commit/6c29eabf7 )**: Updating package versions for release 16.6.0 //<Dan Abramov>//
- **[d520b358d](https://github.com/facebook/react/commit/d520b358d )**: Revert all package versions to 16.5.2 state //<Dan Abramov>//
- **[8f1ec7649](https://github.com/facebook/react/commit/8f1ec7649 )**: Bump versions to beta.0 //<Dan Abramov>//
- **[5055a83fa](https://github.com/facebook/react/commit/5055a83fa )**: Revert "Revert "Updating dependencies for react-noop-renderer"" //<Dan Abramov>//
- **[3e8b4a5b8](https://github.com/facebook/react/commit/3e8b4a5b8 )**: Revert "Updating dependencies for react-noop-renderer" //<Brian Vaughn>//
- **[d8e03de4a](https://github.com/facebook/react/commit/d8e03de4a )**: [react-cache] Remove `cache` as argument to `read` (#13865 ) //<Andrew Clark>//
- **[fefa1269e](https://github.com/facebook/react/commit/fefa1269e )**: Revert accidentally committed existence check (#13931 ) //<Andrew Clark>//
- **[80a0c05ce](https://github.com/facebook/react/commit/80a0c05ce )**: Removed react-cache from the bundle list for now (#13930 ) //<BrianVaughn>//
- **[915e4eab5](https://github.com/facebook/react/commit/915e4eab5 )**: Add "unstable_" prefix to react-cache and jest-react (#13929 ) //<Brian Vaughn>//
- **[cbbc2b6c4](https://github.com/facebook/react/commit/cbbc2b6c4 )**: [Synchronous Suspense] Suspending a class outside concurrent mode (#13926 ) //<Andrew Clark>//
- **[4947fcd76](https://github.com/facebook/react/commit/4947fcd76 )**: Fix lint (#13923 ) //<Sebastian Markbåge>//
- **[d75c69e0c](https://github.com/facebook/react/commit/d75c69e0c )**: Remove unstable_ prefix from Suspense (#13922 ) //<Sebastian Markbåge>//
- **[c8ef2feda](https://github.com/facebook/react/commit/c8ef2feda )**: Remove redundant word "the" (#13919 ) //<John Lin>//
- **[55444a6f4](https://github.com/facebook/react/commit/55444a6f4 )**: Try rendering again if a timed out tree receives an update (#13921 ) //<Andrew Clark>//
- **[04c4f2fce](https://github.com/facebook/react/commit/04c4f2fce )**: [reconciler] ReactFiberNewContext import maxSigned31BitInt twice (#13857 ) //<yongningfu>//
- **[409e472fc](https://github.com/facebook/react/commit/409e472fc )**: Add flow types in ReactControlledComponent (#13669 ) //<Abdul Rauf>//
- **[663835a43](https://github.com/facebook/react/commit/663835a43 )**: Add flow types in getEventModifierState (#13909 ) //<Abdul Rauf>//
- **[82710097f](https://github.com/facebook/react/commit/82710097f )**: Add flow types in getNodeForCharacterOffset (#13908 ) //<Abdul Rauf>//
- **[b753f76a7](https://github.com/facebook/react/commit/b753f76a7 )**: Fix failing async tests in Node 10 //<Andrew Clark>//
- **[b5c0852fd](https://github.com/facebook/react/commit/b5c0852fd )**: Bump version to 16.6.0-beta.0 (#13906 ) //<Dan Abramov>//
- **[769b1f270](https://github.com/facebook/react/commit/769b1f270 )**: pure -> memo (#13905 ) //<Dan Abramov>//
- **[8ecd4bd4f](https://github.com/facebook/react/commit/8ecd4bd4f )**: Add support for React.pure in ReactDOMServer (#13855 ) //<Alex Taylor>//
- **[15b11d23f](https://github.com/facebook/react/commit/15b11d23f )**: Allow arbitrary types to be wrapped in pure (#13903 ) //<Sebastian Markbåge>//
- **[e770af7a3](https://github.com/facebook/react/commit/e770af7a3 )**: Add back accidentally deleted `break` to prevent fallthrough //<Andrew Clark>//
- **[95a313ec0](https://github.com/facebook/react/commit/95a313ec0 )**: Unfork Lazy Component Branches (#13902 ) //<Sebastian Markbåge>//
- **[e16cdd5b1](https://github.com/facebook/react/commit/e16cdd5b1 )**: Always bail out timed out children even if they receive an update (#13901 ) //<Andrew Clark>//
- **[7268d97d2](https://github.com/facebook/react/commit/7268d97d2 )**: Centralize props memoization (#13900 ) //<Sebastian Markbåge>//
- **[0fc044679](https://github.com/facebook/react/commit/0fc044679 )**: Class component can suspend without losing state outside concurrent mode (#13899 ) //<Andrew Clark>//
- **[36db53822](https://github.com/facebook/react/commit/36db53822 )**: Bugfix for #13886 (#13896 ) //<Andrew Clark>//
- **[6938dcaac](https://github.com/facebook/react/commit/6938dcaac )**: SSR support for class contextType (#13889 ) //<Sebastian Markbåge>//
- **[fa65c58e1](https://github.com/facebook/react/commit/fa65c58e1 )**: Add readContext to SSR (#13888 ) //<Sebastian Markbåge>//
- **[d9a3cc070](https://github.com/facebook/react/commit/d9a3cc070 )**: React.lazy constructor must return result of a dynamic import (#13886 ) //<Andrew Clark>//
- **[d9659e499](https://github.com/facebook/react/commit/d9659e499 )**: Lazy components must use React.lazy (#13885 ) //<Andrew Clark>//
- **[0648ca618](https://github.com/facebook/react/commit/0648ca618 )**: Revert "React.pure automatically forwards ref" (#13887 ) //<Sophie Alpert>//
- **[4dd772ac1](https://github.com/facebook/react/commit/4dd772ac1 )**: Prettier :( //<Andrew Clark>//
- **[98bab66c3](https://github.com/facebook/react/commit/98bab66c3 )**: Fix lint //<Andrew Clark>//
- **[8ced545e3](https://github.com/facebook/react/commit/8ced545e3 )**: Suspense component does not capture if `fallback` is not defined (#13879 ) //<Andrew Clark>//
- **[b738ced47](https://github.com/facebook/react/commit/b738ced47 )**: Remove render prop option from Suspense (#13880 ) //<Andrew Clark>//
- **[55b827942](https://github.com/facebook/react/commit/55b827942 )**: Strict mode and default mode should have same Suspense semantics (#13882 ) //<Andrew Clark>//
- **[dac9202a9](https://github.com/facebook/react/commit/dac9202a9 )**: Hide timed-out children instead of deleting them so their state ispreserved (#13823 ) //<Andrew Clark>//
- **[4f0bd4590](https://github.com/facebook/react/commit/4f0bd4590 )**: Replacement of old links, by the new ones of the documentation. (#13871 ) //<Pablo Javier D. A>//
- **[7685b55d2](https://github.com/facebook/react/commit/7685b55d2 )**: Remove unstable_read() in favor of direct dispatcher call (#13861 )//<Dan Abramov>//
- **[21a79a1d9](https://github.com/facebook/react/commit/21a79a1d9 )**: [schedule] Call ensureHostCallbackIsScheduled without args (#13852 ) //<Trivikram Kamat>//
- **[9ea4bc6ed](https://github.com/facebook/react/commit/9ea4bc6ed )**: Fix false positive context warning when using an old React (#13850 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions 4773fdf...bf9fadf
Reviewed By: arcanis
Differential Revision: D12850275
fbshipit-source-id: b6d5c61a044c970c04c2ff3370fa77222afd1eb1
2018-11-02 18:35:04 -07:00
Sam Goldman
adc8a33fcf
Deploy Flow v0.85 to xplat/js
...
Reviewed By: fishythefish
Differential Revision: D12898653
fbshipit-source-id: 2ed11ce569600fe4c12528939a350dd827c9a29a
2018-11-02 00:28:28 -07:00
Rubén Norte
66aba09251
jest: upgrade to 24.0.0-alpha.4
...
Summary: Upgrade Jest to 24.0.0-alpha.4
Reviewed By: mjesun
Differential Revision: D12822581
fbshipit-source-id: 6e547ffbd2c3c4f93b8aa540d22dd666582d3f1e
2018-10-31 22:31:32 -07:00
Juuso Heikkinen
cdbf719307
Bump fbjs-scripts to ^1.0.0 ( #21880 )
...
Summary:
This PR bumps also fbjs-scripts to latest version. Benefit is smaller node_modules and less deps to download as newer version doesn't depend on babel6 anymore.
Pull Request resolved: https://github.com/facebook/react-native/pull/21880
Differential Revision: D12832002
Pulled By: hramos
fbshipit-source-id: fa801aeb70a2f22be6f9c05cd6d981d0af0a0da9
2018-10-30 13:36:59 -07:00
Alexandre Kirszenberg
31bb551e75
Bump metro@0.49.0
...
Summary:
trex_ship_with_fireworks
This releases contains the Delta client!
Reviewed By: rafeca
Differential Revision: D12824813
fbshipit-source-id: a34a32e6de309f00d0699443ce463152be247b42
2018-10-29 14:02:46 -07:00
Rafael Oleza
88882951e1
Bump metro@0.48.3
...
Summary: shipit-splash
Reviewed By: mjesun
Differential Revision: D12813972
fbshipit-source-id: 89a804206dee178055e1f299023fc299d611fc98
2018-10-28 17:20:47 -07:00
Rafael Oleza
f867db366a
Bump metro@0.48.2
...
Summary: corgi_shipit_gif
Reviewed By: mjesun
Differential Revision: D10854719
fbshipit-source-id: bf81e2e09e2b315f3bea3cffce1731d0c8662765
2018-10-26 16:28:38 -07:00
Rafael Oleza
1b4fd64325
Upgrade jest to v24.0.0-alpha.2
...
Summary:
This diff updates all `xplat/js` to use the latest version of `jest`.
This version provides performance improvements and fixes to make some tests less flaky
Reviewed By: mjesun
Differential Revision: D10466639
fbshipit-source-id: faa769dac1475c61e00bcd76ed30760b176a2898
2018-10-26 06:26:13 -07:00
Avik Chaudhuri
11552a7a7a
@allow-large-files flow 0.84 xplat deploy
...
Reviewed By: samwgoldman
Differential Revision: D10851695
fbshipit-source-id: 951c628844bbbc7331d4e75f62485db88e5ba7c4
2018-10-25 18:16:30 -07:00
Eli White
ec6829087e
Upgrade eslint-plugin-react-native to handle false positives with no-inline-styles
...
Summary: https://github.com/Intellicode/eslint-plugin-react-native/pull/188 was merged which fixes some false positives with no-inline-styles.
Reviewed By: alex288ms
Differential Revision: D10500330
fbshipit-source-id: 9f3331416e99293770c3e2823e1e46ce556f4608
2018-10-22 17:36:51 -07:00
Eli White
0bf520a821
Remove react-timer-mixin
...
Summary:
This mixin is no longer used!
closes https://github.com/facebook/react-native/issues/21485
Reviewed By: RSNara
Differential Revision: D10451307
fbshipit-source-id: 2315244b2f292cfff71241f95a3afcd9788d74be
2018-10-19 17:59:50 -07:00
Ratchanan Srirattanamet
b9514995a2
Bump xcode@1.0.0 ( #21766 )
...
Summary:
(cordova-node-)xcode 1.0.0 includes a fix for #13160 plus a few more
fixes. This should increase robustness in Xcode project handling
overall.
Fixes #13160 .
-------------------------
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.
If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
_Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!_
Pull Request resolved: https://github.com/facebook/react-native/pull/21766
Reviewed By: codytwinton
Differential Revision: D10384245
Pulled By: hramos
fbshipit-source-id: 488156be67cfc2d99ca81d7cb82747bab35984a7
2018-10-17 12:13:32 -07:00
Marshall Roch
7b150690b6
@allow-large-files [flow] update to v0.83
...
Reviewed By: fishythefish
Differential Revision: D10362346
fbshipit-source-id: 0f4cc9977cfaa947e3b23112dd1cf482642e2319
2018-10-13 01:32:48 -07:00
Tim Yung
8258b6a280
React: Bump Canary Version
...
Reviewed By: gaearon
Differential Revision: D10302487
fbshipit-source-id: 28a00f7076a53dc243ac55ff6c14dc2927318de2
2018-10-10 17:47:08 -07:00
Rafael Oleza
bf47589b8b
Bump metro@0.48.1
...
Summary: iffitsships
Reviewed By: pvdz
Differential Revision: D10255800
fbshipit-source-id: 6cf514dc210e2fcc706e9c6bd555a2b8c9326f21
2018-10-10 13:02:12 -07:00
Rafael Oleza
e7b0590f18
Remove sinon dependency
...
Summary:
This diff removes the `sinon` dependency from `metro` and `react-native-github`. It was only used in a handful of tests and having to learn and remember another mocking API just for these cases was not worth it IMO.
While doing the migration, most of the things that `sinon` provides can be done with `jest` in a very similar (and user friendly) way.
I've found, though, two small things that are more user friendly with `sinon`. I'm documenting them here because it may be worth adding them to jest:
With `sinon`:
```
stub.throws(new Error('foo'));
```
With `jest`:
```
mock.mockImplementation(() => {
throw new Error('foo');
});
```
Taking into account that `jest` has a `mockRejectedValue` method for mocks (to return a rejected promise) I don't see any reason why it does not have a `mockThrowError` method.
With `sinon`:
```
expect(mock1.calledBefore(mock2)).toBeTruthy();
```
With `jest`:
```
expect(mock1.mock.invocationCallOrder[0]).toBeLessThan(
mock2.mock.invocationCallOrder[0],
);
```
There's a community matcher that adds this matcher in `jest-extended`: https://github.com/jest-community/jest-extended#tohavebeencalledbefore , but we're not using `jest-extended` in `xplat/js`.
Reviewed By: jeanlauliac
Differential Revision: D10238331
fbshipit-source-id: 5441125b69596ad85bf8f56d203cfd20759bc358
2018-10-10 13:02:12 -07:00
Lorenzo Sciandra
15c05988e9
Update to Detox 9 ( #21570 )
...
Summary:
Updating to Detox 9 - this should help with better Xcode 10 support, and should fix https://github.com/facebook/react-native/issues/21539 .
I've updated to fixed `9.0.4` since it seems that each version is fairly different from the next, and I've followed the [migration guide](https://github.com/wix/detox/blob/master/docs/Guide.Migration.md#migrating-from-detox-8xx-to-9xx ) for the android native dependencies.
Release Notes:
[INTERNAL] [ENHANCEMENT] [DETOX] - Update to version 9.0.4
Pull Request resolved: https://github.com/facebook/react-native/pull/21570
Reviewed By: TheSavior
Differential Revision: D10242373
Pulled By: RSNara
fbshipit-source-id: bd29d554e0972f16d96b9b39b86c7143941d5b7c
2018-10-10 10:01:21 -07:00
Tim Yung
7142e9b1c5
React sync for revisions ade5e69...d836010
...
Summary:
This sync includes the following changes:
- **[d83601080](https://github.com/facebook/react/commit/d83601080 )**: Wrap retrySuspendedRoot using SchedulerTracing (#13776 ) //<Sophie Alpert>//
- **[40a521aa7](https://github.com/facebook/react/commit/40a521aa7 )**: Terminology: Functional -> Function Component (#13775 ) //<Dan Abramov>//
- **[605ab10a4](https://github.com/facebook/react/commit/605ab10a4 )**: Add envify transform to scheduler package (#13766 ) //<Michael Ridgway>//
- **[acc7f404c](https://github.com/facebook/react/commit/acc7f404c )**: Restart from root if promise pings before end of render phase (#13774 ) //<Andrew Clark>//
- **[cbc224028](https://github.com/facebook/react/commit/cbc224028 )**: fix - small misspelling (#13768 ) //<Spencer Davies>//
- **[4eabeef11](https://github.com/facebook/react/commit/4eabeef11 )**: Rename ReactSuspenseWithTestRenderer-test -> ReactSuspense-test //<Andrew Clark>//
- **[95a3e1c2e](https://github.com/facebook/react/commit/95a3e1c2e )**: Rename ReactSuspense-test -> ReactSuspenseWithNoopRenderer-test //<Andrew Clark>//
- **[96bcae9d5](https://github.com/facebook/react/commit/96bcae9d5 )**: Jest + test renderer helpers for concurrent mode (#13751 ) //<Andrew Clark>//
- **[5c783ee75](https://github.com/facebook/react/commit/5c783ee75 )**: Remove unreachable code (#13762 ) //<Heaven>//
- **[36c5d69ca](https://github.com/facebook/react/commit/36c5d69ca )**: Always warn about legacy context within StrictMode tree (#13760 ) //<Brian Vaughn>//
- **[3e9a5de88](https://github.com/facebook/react/commit/3e9a5de88 )**: UMD react-cache build (#13761 ) //<Maksim Markelov>//
- **[8315a30b9](https://github.com/facebook/react/commit/8315a30b9 )**: --save is no longer needed (#13756 ) //<Joe Cortopassi>//
- **[ce96e2df4](https://github.com/facebook/react/commit/ce96e2df4 )**: Rename simple-cache-provider to react-cache (#13755 ) //<Andrew Clark>//
- **[c5212646f](https://github.com/facebook/react/commit/c5212646f )**: Removed extra typeof checks for contextType.unstable_read (#13736 ) //<Brian Vaughn>//
- **[806eebdae](https://github.com/facebook/react/commit/806eebdae )**: Enable getDerivedStateFromError (#13746 ) //<Brian Vaughn>//
- **[a0733fe13](https://github.com/facebook/react/commit/a0733fe13 )**: pure (#13748 ) //<Andrew Clark>//
- **[4d17c3f05](https://github.com/facebook/react/commit/4d17c3f05 )**: [scheduler] Improve naive fallback version used in non-DOM environments //<Andrew Clark>//
- **[469005d87](https://github.com/facebook/react/commit/469005d87 )**: Revise `AttributeType` React Native Flow Type (#13737 ) //<Timothy Yung>//
- **[0dc0ddc1e](https://github.com/facebook/react/commit/0dc0ddc1e )**: Rename AsyncMode -> ConcurrentMode (#13732 ) //<Dominic Gannaway>//
- **[7601c3765](https://github.com/facebook/react/commit/7601c3765 )**: Ensure "addEventListener" exists on "window" for "scheduler" package (#13731 ) //<Dominic Gannaway>//
- **[d0c0ec98e](https://github.com/facebook/react/commit/d0c0ec98e )**: Added a PureComponent contextType test (#13729 ) //<Brian Vaughn>//
- **[4b68a6498](https://github.com/facebook/react/commit/4b68a6498 )**: Support class component static contextType attribute (#13728 ) //<Brian Vaughn>//
- **[f305d2a48](https://github.com/facebook/react/commit/f305d2a48 )**: [scheduler] Priority levels, continuations, and wrapped callbacks (#13720 ) //<Andrew Clark>//
- **[970a34bae](https://github.com/facebook/react/commit/970a34bae )**: Bump babel-eslint and remove flow supressions (#13727 ) //<Brian Ng>//
- **[13965b4d3](https://github.com/facebook/react/commit/13965b4d3 )**: Interaction tracking ref-counting bug fixes (WIP) (#13590 ) //<Brian Vaughn>//
- **[17e703cb9](https://github.com/facebook/react/commit/17e703cb9 )**: Restore global window.event after event dispatching (#13688 ) (#13697 ) //<Sergei Startsev>//
- **[a775a767a](https://github.com/facebook/react/commit/a775a767a )**: Remove redundant logic (#13502 ) //<Heaven>//
- **[e1a067dea](https://github.com/facebook/react/commit/e1a067dea )**: Fix circular dependency in TracingSubscriptions (#13689 ) //<Maksim Markelov>//
- **[518812eeb](https://github.com/facebook/react/commit/518812eeb )**: Clarify comment (#13684 ) //<Heaven>//
- **[eeb817785](https://github.com/facebook/react/commit/eeb817785 )**: Remove some old files from stats //<Dan>//
- **[7ea3ca1d1](https://github.com/facebook/react/commit/7ea3ca1d1 )**: Rename schedule to scheduler (#13683 ) //<Dan Abramov>//
- **[bec2ddaf1](https://github.com/facebook/react/commit/bec2ddaf1 )**: Update bundle sizes for 16.5.2 release //<Brian Vaughn>//
- **[4269fafb0](https://github.com/facebook/react/commit/4269fafb0 )**: Updating package versions for release 16.5.2 //<Brian Vaughn>//
- **[4380f9ba1](https://github.com/facebook/react/commit/4380f9ba1 )**: Revert "Updating package versions for release 16.6.0-alpha.0" //<Brian Vaughn>//
- **[72fad84e7](https://github.com/facebook/react/commit/72fad84e7 )**: Revert "Updating dependencies for react-noop-renderer" //<Brian Vaughn>//
- **[c3fad5acf](https://github.com/facebook/react/commit/c3fad5acf )**: Revert "Update bundle sizes for 16.6.0-alpha.0 release" //<Brian Vaughn>//
- **[dd9120561](https://github.com/facebook/react/commit/dd9120561 )**: Kepp calling peformWork consistent (#13596 ) //<Heaven>//
- **[42d12317a](https://github.com/facebook/react/commit/42d12317a )**: Update bundle sizes for 16.6.0-alpha.0 release //<Brian Vaughn>//
- **[489614c4f](https://github.com/facebook/react/commit/489614c4f )**: Updating dependencies for react-noop-renderer //<Brian Vaughn>//
- **[351c9015c](https://github.com/facebook/react/commit/351c9015c )**: Updating package versions for release 16.6.0-alpha.0 //<Brian Vaughn>//
- **[a210b5b44](https://github.com/facebook/react/commit/a210b5b44 )**: Revert "Do not bind topLevelType to dispatch" (#13674 ) //<Dan Abramov>//
- **[1d8a75fef](https://github.com/facebook/react/commit/1d8a75fef )**: remove flow typings from Schedule.js (#13662 ) //<Alexey Raspopov>//
- **[d92114b98](https://github.com/facebook/react/commit/d92114b98 )**: Resubmit: Fix updateWrapper causing re-render textarea, even though their data (#13643 ) //<Nathan Hunzaker>//
- **[0c9c591bf](https://github.com/facebook/react/commit/0c9c591bf )**: Do not bind topLevelType to dispatch (#13618 ) //<Nathan Hunzaker>//
- **[9f819a5ea](https://github.com/facebook/react/commit/9f819a5ea )**: [schedule] Refactor Schedule, remove React-isms (#13582 ) //<Andrew Clark>//
- **[9c961c0a2](https://github.com/facebook/react/commit/9c961c0a2 )**: Fix some iframe edge cases (#13650 ) //<Jérôme Steunou>//
- **[8bc0bcabe](https://github.com/facebook/react/commit/8bc0bcabe )**: Add UMD production+profiling entry points (#13642 ) //<Brian Vaughn>//
- **[b488a5d9c](https://github.com/facebook/react/commit/b488a5d9c )**: Fix test comment typo (#13568 ) //<Heaven>//
- **[4bcee5621](https://github.com/facebook/react/commit/4bcee5621 )**: Rename "tracking" API to "tracing" (#13641 ) //<Brian Vaughn>//
- **[72217d081](https://github.com/facebook/react/commit/72217d081 )**: Update bundle sizes for 16.5.1 release //<Dan Abramov>//
- **[8b93a60c5](https://github.com/facebook/react/commit/8b93a60c5 )**: Updating package versions for release 16.5.1 //<Dan Abramov>//
- **[ecbf7af40](https://github.com/facebook/react/commit/ecbf7af40 )**: Enhance dev warnings for forwardRef render function (#13627 ) (#13636 ) //<Andres Rojas>//
- **[228240085](https://github.com/facebook/react/commit/228240085 )**: Delete TapEventPlugin (#13630 ) //<Dan Abramov>//
- **[a079011f9](https://github.com/facebook/react/commit/a079011f9 )**: ð Stop syncing the value attribute on inputs (behind a feature flag) (#13526 ) //<Nathan Hunzaker>//
- **[a7bd7c3c0](https://github.com/facebook/react/commit/a7bd7c3c0 )**: Allow reading default feature flags from bundle tests (#13629 ) //<Dan Abramov>//
- **[d3bbfe09c](https://github.com/facebook/react/commit/d3bbfe09c )**: Fix IE version in comment //<Dan Abramov>//
- **[1b2646a40](https://github.com/facebook/react/commit/1b2646a40 )**: Fix warning without stack for ie9 (#13620 ) //<Aliaksandr Manzhula>//
- **[e49f3ca08](https://github.com/facebook/react/commit/e49f3ca08 )**: honor displayName set on ForwardRef if available (#13615 ) //<Evan Jacobs>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions ade5e69...d836010
Reviewed By: bvaughn
Differential Revision: D10118547
fbshipit-source-id: ecde7ada80331abdc8bd7d279e0f3dbe9acde071
2018-10-05 18:19:54 -07:00
Rafael Oleza
bd8b942ab9
Bump metro@0.48.0
...
Summary: llamadance
Reviewed By: jeanlauliac
Differential Revision: D10216618
fbshipit-source-id: 62284ab76651d3423b80f63b5d7bb355adbfaf06
2018-10-05 11:33:39 -07:00
Rafael Oleza
12ab08a5aa
Bump metro@0.47.1
...
Summary: We need a new version of Metro with D10119384 to make the new Embeds work well
Reviewed By: davidaurelio
Differential Revision: D10119385
fbshipit-source-id: db7fc71c75c450720af41add466fc88ac38f3066
2018-10-04 04:03:13 -07:00
Sam Goldman
8a4975051e
Upgrade xplat/js to Flow v0.82
...
Reviewed By: yungsters
Differential Revision: D10139929
fbshipit-source-id: ae44a8af7cab28c4acfd7c97e636467e44adcf37
2018-10-01 22:23:18 -07:00
Tim Yung
ee034596fe
FBJS: Upgrade to ^1.0.0
...
Summary: Upgrades all dependents of `fbjs` to the latest version.
Reviewed By: mjesun
Differential Revision: D10100661
fbshipit-source-id: 2e2af616cb2b5eab560872b6c6c60ed264e986b2
2018-09-29 03:17:27 -07:00
empyrical
57041ee44f
Add tests for out-of-tree platform support ( #20932 )
...
Summary:
This PR is a WIP for adding tests for out-of-tree platform support. [I originally had issues](https://github.com/facebook/react-native/pull/20825#issuecomment-416433611 ) with this, so I want to give it a try in a separate pull request. None of these issues appear on my machine while running these tests as of this rebase - if everything seems okay on CircleCI after this rebase against `master`, I will ditch the [WIP] tag. Otherwise, I will see if I can find a way to make this work.
The bunch of JS files that will give this a "Large PR" tag are in `RNTester/js/OutOfTreeTestPlatform` - they are only used by the bundler and not executed at any point in time. So if another file needs to be added when React Native's module structure changes, you do not need to have a functional JS file in there as a stub. `module.exports` could be `null` if you wanted. I just had copied over stubs from `Libraries` because I wanted a non-trivial haste module map to be in the test.
Pull Request resolved: https://github.com/facebook/react-native/pull/20932
Reviewed By: axe-fb
Differential Revision: D9818112
Pulled By: hramos
fbshipit-source-id: 0b53359b84430fdefb972587c95d19f85773c5fa
2018-09-27 13:19:32 -07:00
Rafael Oleza
4750f52b34
Bump metro@0.47.0
...
Summary: New version on the horizon :)
Reviewed By: mjesun
Differential Revision: D10051460
fbshipit-source-id: 982604bd7a38d1d3ec642f6cd6fea1a40ab0d34f
2018-09-27 07:35:52 -07:00
empyrical
99cacf4830
package.json: Add flow check commands for iOS and Android ( #21326 )
...
Summary:
This PR adds these two scripts to `package.json`:
* `flow-check-ios` - for running `flow check` on `.ios.js` files
* `flow-check-android` - for running `flow check` on `.android.js` files
The Android command makes use of the new `--flowconfig-name` option added to Flow in `0.80.0`
Pull Request resolved: https://github.com/facebook/react-native/pull/21326
Differential Revision: D10055702
Pulled By: hramos
fbshipit-source-id: e647f8d2995da0a9bd6af242218819fd5745df63
2018-09-26 17:03:07 -07:00
Rafael Oleza
4052816467
Remove duplicated config types
...
Summary: This diff removes the `convertNewToOld` config method, which was only used by the unit tests (since there's no need to convert a new config object into an old one). As part of this, the config tests have been tweaked and simplified a bit, while keeping similar assertions and adding some more checks.
Reviewed By: mjesun
Differential Revision: D10015079
fbshipit-source-id: ba4fbd09cd4f97168bc1a2dbcec2699a00243637
2018-09-26 16:48:48 -07:00
Janic Duplessis
458d56c0a1
Remove global babelHelpers and regenerator ( #21283 )
...
Summary:
Follow up to 8932a9caa8
Babel helpers and regenerator runtime will be imported automatically from `babel/runtime`. We still need to add the global regeneratorRuntime for jest tests since we disable babel-runtime currently.
Pull Request resolved: https://github.com/facebook/react-native/pull/21283
Reviewed By: mjesun
Differential Revision: D10010963
Pulled By: rafeca
fbshipit-source-id: da5e23dd901f8f8940d46816b4fc9290d0e28c76
2018-09-26 10:03:05 -07:00
Ramanpreet Nara
1323acd0bb
Fix RNTester build failure in CI ( #21304 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/21304
If you cd into `~/fbsource/xplat/js/react-native-github` and run:
```
xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -quiet
```
The command fails with the following error:
```
➜ react-native-github xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -quiet
=== BUILD TARGET RNTester OF PROJECT RNTester WITH CONFIGURATION Release ===
+ DEST=/Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app
+ [[ Release = *Debug* ]]
+ [[ -n '' ]]
+ case "$CONFIGURATION" in
+ DEV=false
+++ dirname /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/../scripts/react-native-xcode.sh
++ cd /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/../scripts/..
++ pwd
+ REACT_NATIVE_DIR=/Users/ramanpreet/fbsource/xplat/js/react-native-github
+ cd /Users/ramanpreet/fbsource/xplat/js/react-native-github/../..
+ '[' -z '' ']'
+ export NVM_DIR=/Users/ramanpreet/.nvm
+ NVM_DIR=/Users/ramanpreet/.nvm
+ [[ -s index.ios.js ]]
+ ENTRY_FILE=RNTester/js/RNTesterApp.ios.js
+ [[ -s /Users/ramanpreet/.nvm/nvm.sh ]]
++ command -v brew
+ [[ -x /usr/local/bin/brew ]]
++ brew --prefix nvm
+ [[ -s /usr/local/Cellar/nvm/0.33.11/nvm.sh ]]
+ [[ -x /Users/ramanpreet/.nodenv/bin/nodenv ]]
++ command -v brew
+ [[ -x /usr/local/bin/brew ]]
++ brew --prefix nodenv
+ [[ -x /usr/local/Cellar/nodenv/1.1.2/bin/nodenv ]]
+ '[' -z node ']'
+ '[' -z '' ']'
+ export CLI_PATH=/Users/ramanpreet/fbsource/xplat/js/react-native-github/local-cli/cli.js
+ CLI_PATH=/Users/ramanpreet/fbsource/xplat/js/react-native-github/local-cli/cli.js
+ '[' -z '' ']'
+ BUNDLE_COMMAND=bundle
+ [[ -z '' ]]
+ CONFIG_ARG=
+ type node
+ BUNDLE_FILE=/Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/main.jsbundle
+ node /Users/ramanpreet/fbsource/xplat/js/react-native-github/local-cli/cli.js bundle --entry-file RNTester/js/RNTesterApp.ios.js --platform ios --dev false --reset-cache --bundle-output /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/main.jsbundle --assets-dest /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app
warning: the transform cache was reset.
Loading dependency graph, done.
Unable to resolve module `babel/runtime/helpers/classCallCheck` from `/Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/js/RNTesterApp.ios.js`: Module `babel/runtime/helpers/classCallCheck` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
Error: Unable to resolve module `babel/runtime/helpers/classCallCheck` from `/Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/js/RNTesterApp.ios.js`: Module `babel/runtime/helpers/classCallCheck` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
at ModuleResolver.resolveDependency (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:209:1301)
at ResolutionRequest.resolveDependency (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:83:16)
at DependencyGraph.resolveDependency (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/node-haste/DependencyGraph.js:238:485)
at Object.resolve (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/lib/transformHelpers.js:180:25)
at dependencies.map.result (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/DeltaBundler/traverseDependencies.js:311:29)
at Array.map (<anonymous>)
at resolveDependencies (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/DeltaBundler/traverseDependencies.js:307:16)
at /Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/DeltaBundler/traverseDependencies.js:164:33
at Generator.next (<anonymous>)
at step (/Users/ramanpreet/fbsource/xplat/js/react-native-github/node_modules/metro/src/DeltaBundler/traverseDependencies.js:266:307)
+ [[ false != true ]]
+ [[ ! -f /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/main.jsbundle ]]
+ echo 'error: File /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/ramanpreet/fbsource/xplat/js/react-native-github/RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues '
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2
** BUILD FAILED **
```
Basically, we're missing the `babel/runtime/helpers/classCallCheck` function. Installing `babel/runtime` fixed the issue.
Reviewed By: mjesun
Differential Revision: D10021475
fbshipit-source-id: 3709bedb2fdaf552fa8c620c3515a5bc68deb771
2018-09-25 13:32:54 -07:00
Rafael Oleza
e741ff8aa1
Bump metro@0.46.0
...
Summary: monkey_publish
Reviewed By: jeanlauliac
Differential Revision: D10009619
fbshipit-source-id: cde0a979e44940140c61494b35ac495c822d6f30
2018-09-24 08:20:30 -07:00
Tim Yung
25119f95c8
React: Upgrade to react-devtools@^3.4.0
...
Summary:
Upgrades to `react-devtools@^3.4.0`.
Notably, this brings the improved coloring to the React Profiler.
Reviewed By: bvaughn
Differential Revision: D9985352
fbshipit-source-id: 64a76d194275e551f04dd52d775bf26bb16df6b8
2018-09-21 14:02:52 -07:00
Rafael Oleza
023f0a6855
Bump metro@0.45.6
...
Summary: shiptoasting
Reviewed By: pvdz
Differential Revision: D9968663
fbshipit-source-id: 4a1257f627c5bbc86dc686c3887c517f6972fe2b
2018-09-21 06:32:05 -07:00
Rafael Oleza
8e988117ee
Bump metro@0.45.5
...
Summary: shipship
Reviewed By: mjesun
Differential Revision: D9966914
fbshipit-source-id: a61e15e1e2a8f84eddabd5d1968ce850f23c0d48
2018-09-20 04:31:55 -07:00
Miguel Jimenez Esun
24679cd32b
Upgrade Metro to v0.45.4
...
Summary: garbagedoge
Reviewed By: rafeca
Differential Revision: D9934463
fbshipit-source-id: a570bf08a5bcdb2ad0118c715720d0093fe1623f
2018-09-19 14:20:16 -07:00
Nat Mote
b118f4ec3d
Upgrade xplat/js to Flow v0.81
...
Reviewed By: dsainati1, pakoito
Differential Revision: D9920018
fbshipit-source-id: 208fa08109d307dc09f0e0357f5caa6dfcfa5ddf
2018-09-18 13:47:57 -07:00
Rafael Oleza
44dc283bcd
Upgrade babel-eslint to 9.0.0
...
Summary: This diff updates babel-eslint to the stable 9.0.0 version, which uses babel 7.0.0 so we can get rid of babel-7.0.0-beta.52
Reviewed By: rubennorte
Differential Revision: D9894311
fbshipit-source-id: b5276ea7d1b10725fffef13eb1338fe6415dbd36
2018-09-18 06:48:25 -07:00
Rafael Oleza
238dec2787
Bump metro@0.45.3
...
Summary: This one gets rid of the dependency on `metro-visualizer`
Reviewed By: mjesun
Differential Revision: D9829876
fbshipit-source-id: e3a52a2771bee386f8c1276004065fe480b3fc52
2018-09-14 08:31:43 -07:00
Rafael Oleza
1d2808eee8
Bump metro@0.45.2
...
Summary: shipit
Reviewed By: mjesun
Differential Revision: D9788868
fbshipit-source-id: c7bb4ca1cb67006cf53ccd1e003c4161cc7081ff
2018-09-12 09:17:10 -07:00
Tim Yung
5491c3f942
React: Upgrade to react-devtools@3.3.4
...
Summary:
Upgrades `react-devtools` for React Native and Nuclide to v3.3.4.
Notably, this brings working support for the React Profiler!
Reviewed By: bvaughn
Differential Revision: D9721317
fbshipit-source-id: 898666d12a33d8b874fcb133e9353f483285edc2
2018-09-10 14:47:11 -07:00
Tim Yung
672528ffde
React sync for revisions bc1ea9c...ade5e69
...
Summary:
This sync includes the following changes:
- **[ade5e6928](https://github.com/facebook/react/commit/ade5e6928 )**: Manually update schedule dep in react-native-renderer (#13609 ) //<Brian Vaughn>//
- **[f260b14a8](https://github.com/facebook/react/commit/f260b14a8 )**: Fix host bailout for the persistent mode (#13611 ) //<Dan Abramov>//
- **[4a40d7624](https://github.com/facebook/react/commit/4a40d7624 )**: Fix a regression related to isReactComponent prototype check (#13608 ) //<Dan Abramov>//
- **[03ab1efeb](https://github.com/facebook/react/commit/03ab1efeb )**: Improve DX when combining react-dom/profiling and schedule/tracking (#13605 ) //<Brian Vaughn>//
- **[144328fe8](https://github.com/facebook/react/commit/144328fe8 )**: Enable no-use-before-define rule (#13606 ) //<Dan Abramov>//
- **[8a8d973d3](https://github.com/facebook/react/commit/8a8d973d3 )**: Use clearer wording //<Dan>//
- **[7d1169b2d](https://github.com/facebook/react/commit/7d1169b2d )**: Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub (#13598 ) //<Brandon Dail>//
- **[8d1038fc6](https://github.com/facebook/react/commit/8d1038fc6 )**: Break up ReactDOMServerIntegrationForm-test (#13600 ) //<Nathan Hunzaker>//
- **[b87aabdfe](https://github.com/facebook/react/commit/b87aabdfe )**: Drop the year from Facebook copyright headers and the LICENSE file. (#13593 ) //<Héctor Ramos>//
- **[e417e0bf7](https://github.com/facebook/react/commit/e417e0bf7 )**: Update ReactNativeViewConfigRegistry Flow Types (#13579 ) //<Timothy Yung>//
- **[71c0e05ba](https://github.com/facebook/react/commit/71c0e05ba )**: Update bundle sizes for 16.5.0 release //<Brian Vaughn>//
- **[6255cc394](https://github.com/facebook/react/commit/6255cc394 )**: Updating package versions for release 16.5.0 //<Brian Vaughn>//
- **[28cb37978](https://github.com/facebook/react/commit/28cb37978 )**: Added a test for Profiler onRender that throws (#13575 ) //<Brian Vaughn>//
- **[8963118b3](https://github.com/facebook/react/commit/8963118b3 )**: Update react-dom README //<Dan Abramov>//
- **[b47a28cb9](https://github.com/facebook/react/commit/b47a28cb9 )**: Tweak react-dom README //<Dan Abramov>//
- **[f765f0225](https://github.com/facebook/react/commit/f765f0225 )**: When a root expires, flush all expired work in a single batch (#13503 ) //<Andrew Clark>//
- **[550dd1d2e](https://github.com/facebook/react/commit/550dd1d2e )**: Call Profiler onRender after mutations (#13572 ) //<Brian Vaughn>//
- **[34348a45b](https://github.com/facebook/react/commit/34348a45b )**: Add enableSuspenseServerRenderer feature flag (#13573 ) //<Alex Taylor>//
- **[4e744be6e](https://github.com/facebook/react/commit/4e744be6e )**: Added react-dom/profiling entry point to NPM package (#13570 ) //<Brian Vaughn>//
- **[bb627228e](https://github.com/facebook/react/commit/bb627228e )**: test: add test for fragement props (#13565 ) //<laoxiong>//
- **[9a110ebd8](https://github.com/facebook/react/commit/9a110ebd8 )**: Cleaned up 'schedule' API wrt interactions and subscriber ref: (#13561 ) //<Brian Vaughn>//
- **[fb88fd9d8](https://github.com/facebook/react/commit/fb88fd9d8 )**: Fixed schedule/tracking require for www sync script (#13556 ) //<Brian Vaughn>//
- **[955393cab](https://github.com/facebook/react/commit/955393cab )**: refactor: remove emove type judgment when defining warning props (#13553 ) //<laoxiong>//
- **[ff9399602](https://github.com/facebook/react/commit/ff9399602 )**: Fix import of ReactDOM in server env //<Dan Abramov>//
- **[281bd64c0](https://github.com/facebook/react/commit/281bd64c0 )**: Fix test file name //<Dan Abramov>//
- **[d6b59e3d2](https://github.com/facebook/react/commit/d6b59e3d2 )**: Check document.documentMode once //<Dan Abramov>//
- **[52633c84e](https://github.com/facebook/react/commit/52633c84e )**: Try/finally //<Dan Abramov>//
- **[2d4705e75](https://github.com/facebook/react/commit/2d4705e75 )**: Make IE 11 not complain about non-crucial style attribute hydration mismatch (#13534 ) //<Michał Gołębiowski-Owczarek>//
- **[25d48a728](https://github.com/facebook/react/commit/25d48a728 )**: Add gridArea to unitless CSS properties (#13550 ) //<Michał Gołębiowski-Owczarek>//
- **[877f8bc6b](https://github.com/facebook/react/commit/877f8bc6b )**: Renamed schedule UMD forwarding methods to stay in-sync with SECRET_INTERNALS change (#13549 ) //<Brian Vaughn>//
- **[0a96f9057](https://github.com/facebook/react/commit/0a96f9057 )**: Revert "Extract common logic" (#13547 ) //<Dan Abramov>//
- **[17a57adde](https://github.com/facebook/react/commit/17a57adde )**: Fix test //<Dan Abramov>//
- **[605da8b42](https://github.com/facebook/react/commit/605da8b42 )**: Extract common logic (#13535 ) //<Heaven>//
- **[69f9f4127](https://github.com/facebook/react/commit/69f9f4127 )**: Document event bubble order (#13546 ) //<Philipp>//
- **[c1ba7b8cf](https://github.com/facebook/react/commit/c1ba7b8cf )**: Remove www scheduler fork (#13545 ) //<Dan Abramov>//
- **[b473d5f86](https://github.com/facebook/react/commit/b473d5f86 )**: Secret exports: Scheduler => Schedule (#13544 ) //<Dan Abramov>//
- **[6312efc34](https://github.com/facebook/react/commit/6312efc34 )**: Tweak README and description //<Dan Abramov>//
- **[b92f947af](https://github.com/facebook/react/commit/b92f947af )**: Rename "react-scheduler" package to "schedule" (#13543 ) //<Brian Vaughn>//
- **[3c1dcd349](https://github.com/facebook/react/commit/3c1dcd349 )**: Expose less internals for TestUtils (#13539 ) //<Dan Abramov>//
- **[0b74e95d7](https://github.com/facebook/react/commit/0b74e95d7 )**: Ignore noscript content on the client (#13537 ) //<Fredrik Höglund>//
- **[8a1e3962a](https://github.com/facebook/react/commit/8a1e3962a )**: Remove negative lookbehind from Rollup plugin that broke Node <= v8.9 (#13538 ) //<Brian Vaughn>//
- **[9604d26ae](https://github.com/facebook/react/commit/9604d26ae )**: Rename ReactDOMFiber* to ReactDOM* (#13540 ) //<Dan Abramov>//
- **[28b928902](https://github.com/facebook/react/commit/28b928902 )**: Tidied up scheduling UMD API forwarding test (#13533 ) //<Brian Vaughn>//
- **[bf8aa6092](https://github.com/facebook/react/commit/bf8aa6092 )**: Added Jest test to verify UMD API-forwarding for scheduling package (#13532 ) //<Brian Vaughn>//
- **[0040efc8d](https://github.com/facebook/react/commit/0040efc8d )**: Fix a typo (#13531 ) //<Heaven>//
- **[46950a3df](https://github.com/facebook/react/commit/46950a3df )**: Interaction tracking follow up (#13509 ) //<Brian Vaughn>//
- **[0452c9bba](https://github.com/facebook/react/commit/0452c9bba )**: Add a regression test for #4618 //<Dan Abramov>//
- **[c21bab694](https://github.com/facebook/react/commit/c21bab694 )**: Add SSR regression test for #6119 //<Dan Abramov>//
- **[0d3fc9de1](https://github.com/facebook/react/commit/0d3fc9de1 )**: Add regression test for #6119 //<Dan Abramov>//
- **[0f050ad7c](https://github.com/facebook/react/commit/0f050ad7c )**: Make regression test better //<Dan Abramov>//
- **[f94342323](https://github.com/facebook/react/commit/f94342323 )**: Add a more precise regression test for #6219 //<Dan Abramov>//
- **[a3e4d0008](https://github.com/facebook/react/commit/a3e4d0008 )**: Fixed typo (#13519 ) //<Ivan>//
- **[b3d8c5376](https://github.com/facebook/react/commit/b3d8c5376 )**: [RN] Remove isMounted() false positive warning (#13511 ) //<Dan Abramov>//
- **[d2123d656](https://github.com/facebook/react/commit/d2123d656 )**: Sync React Native Flow Changes (#13513 ) //<Timothy Yung>//
- **[1c0ba70b4](https://github.com/facebook/react/commit/1c0ba70b4 )**: Fix test to use AsyncMode //<Dan>//
- **[6e4f7c788](https://github.com/facebook/react/commit/6e4f7c788 )**: Profiler integration with interaction-tracking package (#13253 ) //<Brian Vaughn>//
- **[2967ebdbe](https://github.com/facebook/react/commit/2967ebdbe )**: Remove buggy unstable_deferredUpdates() (#13488 ) //<Dan Abramov>//
- **[1664b08f0](https://github.com/facebook/react/commit/1664b08f0 )**: added flow types to setInnerHTML (#13495 ) //<Bryan M>//
- **[672e859d3](https://github.com/facebook/react/commit/672e859d3 )**: Add warning to prevent setting this.state to this.props referentially (#11658 ) //<Veekas Shrivastava>//
- **[29287f088](https://github.com/facebook/react/commit/29287f088 )**: Rename lowestPendingInteractiveExpirationTime (#13484 ) //<Heaven>//
- **[d400d6d5e](https://github.com/facebook/react/commit/d400d6d5e )**: Replace magic number 1 with ELEMENT_NODE (#13479 ) //<Heaven>//
- **[340bfd939](https://github.com/facebook/react/commit/340bfd939 )**: Rename ReactTypeOfWork to ReactWorkTags, ReactTypeOfSideEffect to ReactSideEffectTags (#13476 ) //<Sophie Alpert>//
- **[5cefd9b1e](https://github.com/facebook/react/commit/5cefd9b1e )**: Stringify <option> children (#13465 ) //<Dan Abramov>//
- **[3661616c2](https://github.com/facebook/react/commit/3661616c2 )**: Improve test harness of submit events (#13463 ) //<Philipp Spieß>//
- **[a1be17140](https://github.com/facebook/react/commit/a1be17140 )**: Revert "Rely on bubbling for submit and reset events (#13358 )" (#13462 ) //<Dan Abramov>//
- **[90c92c700](https://github.com/facebook/react/commit/90c92c700 )**: Fix warning message //<Dan Abramov>//
- **[5cb0f2bf5](https://github.com/facebook/react/commit/5cb0f2bf5 )**: Change www error shim API (#13454 ) //<Dan Abramov>//
- **[e106b8c44](https://github.com/facebook/react/commit/e106b8c44 )**: Warn about unsafe toWarnDev() nesting in tests (#12457 ) //<Brian Vaughn>//
- **[026aa9c97](https://github.com/facebook/react/commit/026aa9c97 )**: Bumped version to 16.4.3-alpha.0 (#13448 ) //<Brian Vaughn>//
- **[d670bdc6b](https://github.com/facebook/react/commit/d670bdc6b )**: Warn about ReactDOM.createPortal usage within ReactTestRenderer (#12895 ) //<Brian Vaughn>//
- **[bf1abf478](https://github.com/facebook/react/commit/bf1abf478 )**: Fix React.lazy(forwardRef) (#13446 ) //<Dan Abramov>//
- **[e8571c798](https://github.com/facebook/react/commit/e8571c798 )**: Tweak ReactTypeOfWork order (#13444 ) //<Dan Abramov>//
- **[973496b40](https://github.com/facebook/react/commit/973496b40 )**: Fix component name for React.lazy (#13443 ) //<Dan Abramov>//
- **[0beb2ee76](https://github.com/facebook/react/commit/0beb2ee76 )**: Fix incorrect legacy context for factory components (#13441 ) //<Dan Abramov>//
- **[004cb21bb](https://github.com/facebook/react/commit/004cb21bb )**: Short circuit the logic for exporting a module (#13392 ) //<Joseph>//
- **[f7a538c91](https://github.com/facebook/react/commit/f7a538c91 )**: Remove getTextContentAccessor (#13434 ) //<Brandon Dail>//
- **[d1c42d2f1](https://github.com/facebook/react/commit/d1c42d2f1 )**: Remove addEventListener check in isEventSupported (#13435 ) //<Brandon Dail>//
- **[a869f992a](https://github.com/facebook/react/commit/a869f992a )**: Remove helper object from FallbackCompositionState (#13430 ) //<Brandon Dail>//
- **[0cd8d470d](https://github.com/facebook/react/commit/0cd8d470d )**: Do not toLowerCase lists of lowercase words (#13428 ) //<Nathan Hunzaker>//
- **[b3a4cfea5](https://github.com/facebook/react/commit/b3a4cfea5 )**: Trap click events for portal root (#11927 ) //<Brandon Dail>//
- **[0da5102cf](https://github.com/facebook/react/commit/0da5102cf )**: Add interaction-tracking/subscriptions (#13426 ) //<Brian Vaughn>//
- **[4b32f525e](https://github.com/facebook/react/commit/4b32f525e )**: Refactor away some namespace imports (#13427 ) //<Dan Abramov>//
- **[d2f5c3fbc](https://github.com/facebook/react/commit/d2f5c3fbc )**: Don't diff memoized host components in completion phase (#13423 ) //<Dan Abramov>//
- **[5e0f073d5](https://github.com/facebook/react/commit/5e0f073d5 )**: interaction-tracking package (#13234 ) //<Brian Vaughn>//
- **[d14e443d6](https://github.com/facebook/react/commit/d14e443d6 )**: Resume onSelect tracking after dragend (#13422 ) //<Dan Abramov>//
- **[d5edc1f51](https://github.com/facebook/react/commit/d5edc1f51 )**: Remove unused ReactCall & ReactReturn types (#13419 ) //<Esteban>//
- **[4fa20b53b](https://github.com/facebook/react/commit/4fa20b53b )**: Don't pass instanceHandle to clones (#13125 ) //<Sebastian Markbåge>//
- **[fe959eea7](https://github.com/facebook/react/commit/fe959eea7 )**: React.lazy (#13398 ) //<Andrew Clark>//
- **[2b3082800](https://github.com/facebook/react/commit/2b3082800 )**: Fix wrong Flow return type //<Andrew Clark>//
- **[5031ebf6b](https://github.com/facebook/react/commit/5031ebf6b )**: Accept promise as element type (#13397 ) //<Andrew Clark>//
- **[77b7a660b](https://github.com/facebook/react/commit/77b7a660b )**: fix: do not reconcile children that are iterable functions (#13416 ) //<Rauno Freiberg>//
- **[cb7745c6c](https://github.com/facebook/react/commit/cb7745c6c )**: remove unused state initialValue from ReactDOMFiberSelect (#13412 ) //<Kartik Lad>//
- **[9832a1b6d](https://github.com/facebook/react/commit/9832a1b6d )**: Avoid setting empty value on reset & submit inputs (#12780 ) //<Ellis Clayton>//
- **[8862172fa](https://github.com/facebook/react/commit/8862172fa )**: Provide a better error message (#12421 ) //<Aaron Brager>//
- **[581682917](https://github.com/facebook/react/commit/581682917 )**: De-duplicate commitUpdateQueue effect commit (#13403 ) //<Ruud Burger>//
- **[1bc975d07](https://github.com/facebook/react/commit/1bc975d07 )**: Don't stop context traversal at matching consumers (#13391 ) //<Andrew Clark>//
- **[83e446e1d](https://github.com/facebook/react/commit/83e446e1d )**: Refactor ReactErrorUtils (#13406 ) //<Dan Abramov>//
- **[13fa96a54](https://github.com/facebook/react/commit/13fa96a54 )**: Improve bad ref invariant (#13408 ) //<Dan Abramov>//
- **[b2adcfba3](https://github.com/facebook/react/commit/b2adcfba3 )**: Don't suppress jsdom error reporting in our tests (#13401 ) //<Dan Abramov>//
- **[69e2a0d73](https://github.com/facebook/react/commit/69e2a0d73 )**: Ability to access window.event in development (#11687 ) (#11696 ) //<Conrad Irwin>//
- **[ade4dd3f6](https://github.com/facebook/react/commit/ade4dd3f6 )**: Fix typo in a comment (#13373 ) //<davidblnc>//
- **[2c59076d2](https://github.com/facebook/react/commit/2c59076d2 )**: Warn when "false" or "true" is the value of a boolean DOM prop (#13372 ) //<Moti Zilberman>//
- **[de5102c4c](https://github.com/facebook/react/commit/de5102c4c )**: Ignore symbols and functions in select tag (#13389 ) //<Rauno Freiberg>//
- **[d04d03e47](https://github.com/facebook/react/commit/d04d03e47 )**: Fix passing symbols and functions to textarea (#13362 ) //<Rauno Freiberg>//
- **[5550ed4a8](https://github.com/facebook/react/commit/5550ed4a8 )**: Ensure arguments are coerced to strings in warnings (#13385 ) //<Nathan Hunzaker>//
- **[3938ccc88](https://github.com/facebook/react/commit/3938ccc88 )**: Allow the user to opt out of seeing "The above error..." addendum (#13384 ) //<Dan Abramov>//
- **[47e217a77](https://github.com/facebook/react/commit/47e217a77 )**: Provide component reference in ReactDOMFiberTextarea warnings (#13361 ) //<Rauno Freiberg>//
- **[a0190f828](https://github.com/facebook/react/commit/a0190f828 )**: Rename SafeValue to ToStringValue (#13376 ) //<Philipp Spieß>//
- **[33602d435](https://github.com/facebook/react/commit/33602d435 )**: Improve soundness of ReactDOMFiberInput typings (#13367 ) //<Philipp Spieß>//
- **[ae855cec2](https://github.com/facebook/react/commit/ae855cec2 )**: Support tangentialPressure and twist fields of pointer events (#13374 ) //<Moti Zilberman>//
- **[725e499cf](https://github.com/facebook/react/commit/725e499cf )**: Rely on bubbling for submit and reset events (#13358 ) //<Philipp Spieß>//
- **[e07a3cd28](https://github.com/facebook/react/commit/e07a3cd28 )**: fix typo on inline comment (#13364 ) //<Alex Rohleder>//
- **[e0204084a](https://github.com/facebook/react/commit/e0204084a )**: Fix typos detected by github.com/client9/misspell (#13349 ) //<Kazuhiro Sera>//
- **[be4533af7](https://github.com/facebook/react/commit/be4533af7 )**: Fix hydration of non-string dangerousSetInnerHTML.__html (#13353 ) //<Dan Abramov>//
- **[0072b5998](https://github.com/facebook/react/commit/0072b5998 )**: Improve scry() error message for bad first argument (#13351 ) //<Dan Abramov>//
- **[d59b993a7](https://github.com/facebook/react/commit/d59b993a7 )**: Make nicer stacks DEV-only //<Dan>//
- **[54d86eb82](https://github.com/facebook/react/commit/54d86eb82 )**: Improve display of filenames in component stack (#12059 ) //<Billy Janitsch>//
- **[067cc24f5](https://github.com/facebook/react/commit/067cc24f5 )**: Profiler actualDuration bugfix (#13313 ) //<Brian Vaughn>//
- **[3cfab14b9](https://github.com/facebook/react/commit/3cfab14b9 )**: Treat focusable as enumerated boolean SVG attribute (#13339 ) //<Dan Abramov>//
- **[3b3b7fcbb](https://github.com/facebook/react/commit/3b3b7fcbb )**: Don't search beyond Sync roots for highest priority work (#13335 ) //<Dan Abramov>//
- **[08e32263f](https://github.com/facebook/react/commit/08e32263f )**: Fix Prettier "No parser" warning while building (#13323 ) //<Bartosz Kaszubowski>//
- **[ac7238856](https://github.com/facebook/react/commit/ac7238856 )**: Add support for auxclick event (#11571 ) //<Jason Quense>//
- **[75491a8f4](https://github.com/facebook/react/commit/75491a8f4 )**: Add a regression test for #12200 (#12242 ) //<Gareth Small>//
- **[2d0356a52](https://github.com/facebook/react/commit/2d0356a52 )**: Make sure that `select` has `multiple` attribute set to appropriate state before appending options (#13270 ) //<Dmytro Zasyadko>//
- **[b179bae0a](https://github.com/facebook/react/commit/b179bae0a )**: Enhance get derived state from props state warning - #12670 (#13317 ) //<Felix Wu>//
- **[15a8f0318](https://github.com/facebook/react/commit/15a8f0318 )**: Fix ambiguity in doc comment for isValidElement (#12826 ) //<Alexey>//
- **[5cff21207](https://github.com/facebook/react/commit/5cff21207 )**: add flowtype to function signature (#13285 ) //<ryota-murakami>//
- **[b565f4953](https://github.com/facebook/react/commit/b565f4953 )**: Minimally support iframes (nested browsing contexts) in selection event handling (#12037 ) //<Andrew Patton>//
- **[1609cf343](https://github.com/facebook/react/commit/1609cf343 )**: Warn about rendering Generators (#13312 ) //<Dan Abramov>//
- **[46d5afc54](https://github.com/facebook/react/commit/46d5afc54 )**: Replace console.error() with a throw in setTimeout() as last resort exception logging (#13310 ) //<Dan Abramov>//
- **[b3b80a483](https://github.com/facebook/react/commit/b3b80a483 )**: Inject react-art renderer into react-devtools (#13173 ) //<Yunchan Cho>//
- **[5e8beec84](https://github.com/facebook/react/commit/5e8beec84 )**: Add a regression test for #11602 //<Dan Abramov>//
- **[470377bbd](https://github.com/facebook/react/commit/470377bbd )**: Remove extraneous condition //<Dan Abramov>//
- **[6db080154](https://github.com/facebook/react/commit/6db080154 )**: Remove irrelevant suggestion of a legacy method from a warning (#13169 ) //<Ideveloper>//
- **[f60a7f722](https://github.com/facebook/react/commit/f60a7f722 )**: Fix SSR crash on a hasOwnProperty attribute (#13303 ) //<Dan Abramov>//
- **[ff41519ec](https://github.com/facebook/react/commit/ff41519ec )**: Sanitize unknown attribute names for SSR (#13302 ) //<Dan Abramov>//
- **[c44c2a216](https://github.com/facebook/react/commit/c44c2a216 )**: More helpful message when passing an element to createElement() (#13131 ) //<Dylan Cutler>//
- **[28cd494bd](https://github.com/facebook/react/commit/28cd494bd )**: Refactor validateDOMNesting a bit (#13300 ) //<Dan Abramov>//
- **[b381f4141](https://github.com/facebook/react/commit/b381f4141 )**: Allow Electrons <webview> tag (#13301 ) //<Philipp Spieß>//
- **[0182a7463](https://github.com/facebook/react/commit/0182a7463 )**: Fix a crash when using dynamic children in <option> tag (#13261 ) //<Konstantin Yakushin>//
- **[2a2ef7e0f](https://github.com/facebook/react/commit/2a2ef7e0f )**: Remove unnecessary branching from updateContextProvider (#13282 ) //<Andrew Clark>//
- **[840cb1a26](https://github.com/facebook/react/commit/840cb1a26 )**: Add an invariant to createRoot() to validate containers (#13279 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions bc1ea9c...ade5e69
Reviewed By: bvaughn
Differential Revision: D9561644
fbshipit-source-id: 3be120d7450f310af458897d54993a6c086cff2f
2018-09-10 14:47:11 -07:00
Tim Yung
5023b105e4
JS: Switch to `nullthrows` Package [1/4]
...
Summary:
Switches to the `nullthrows` package instead of using `fbjs/lib/nullthrows`.
The version of `nullthrows` in `fbjs` is outdated and already missing features that exist in the standalone `nullthrows` package.
Also, this mitigates the inevitable collision between `nullthrows` (as a Haste module) and `nullthrows` (as a `node_modules` dependency).
Reviewed By: zertosh
Differential Revision: D9733178
fbshipit-source-id: 1b589d48c1ed57cebf2088b796ad72e212534c0a
2018-09-10 01:46:48 -07:00
Rafael Oleza
9e63b5c5d2
Bump metro@0.45.1
...
Summary:
This version of metro contains experimental support for inlining import statements, which will unblock RAM bundling for opensource users that use imports, yay!!!
Publishing as a minor version, since there are no breaking changes. This way, this will also be available already in RN 0.57, since it depends on Metro 0.57 (https://fburl.com/t2j2k2sw ).
/cc @[805780135:Eli White], @[1268286274:David Vacca], @[121800083:Héctor Ramos]
Reviewed By: mjesun
Differential Revision: D9682357
fbshipit-source-id: ddd450649e55ee37701667cdff0e81165875e76d
2018-09-07 10:26:20 -07:00
Gabe Levi
66bd4992b8
Deploy v0.80.0 to xplat/js
...
Reviewed By: samwgoldman
Differential Revision: D9646704
fbshipit-source-id: d5a19f653785c81929337876936ba5069fc0abc3
2018-09-05 08:48:31 -07:00
Tim Yung
1cc29c53fb
React: Upgrade to react-devtools@3.3.2
...
Summary: Upgrades `react-devtools` for React Native and Nuclide to v3.3.2.
Reviewed By: bvaughn
Differential Revision: D9565574
fbshipit-source-id: 320b21edee3bcf9b4541ca4936461cdb6f1373e1
2018-09-02 12:19:35 -07:00
Rafael Oleza
169812f9ce
Bump metro@0.45.0
...
Summary: shipitwithfiremissile
Reviewed By: mjesun
Differential Revision: D9558666
fbshipit-source-id: 1e4102de3986832ae86f56e5d245e0a0b6c4fa17
2018-08-30 03:33:03 -07:00
Rafael Oleza
bf8e1b4ffa
Upgrade to babel@7.0.0
...
Summary: Now that babel7 is stable, we can upgrade Metro and fbsource to use it, yay!!!!!
Reviewed By: mjesun
Differential Revision: D9518571
fbshipit-source-id: c85569cb3058235f4f9310949897f7955ecf7324
2018-08-29 11:02:52 -07:00
Eli White
ee543ecf86
Bump Detox to 8.2.3
...
Summary: 8.2.2 was a broken version, bumping to 8.2.3.
Reviewed By: yungsters
Differential Revision: D9539442
fbshipit-source-id: 554cc34261d988464671d0c4e4a7a18b6d495b73
2018-08-28 12:59:37 -07:00
Rafael Oleza
cfeb60c19b
Bump metro@0.44.0
...
Summary: shipit-splash
Reviewed By: mjesun
Differential Revision: D9504325
fbshipit-source-id: 191f27ee33c1363f180b0c6c710f65096e139df1
2018-08-27 19:31:52 -07:00
gengjiawen
a84785cc34
Fixes #20712 on unix-like OS ( #20751 )
...
Summary:
add `packager.sh` for run-android task for unix like system. This only fix on linux and macOS.
pass all current ci.
none
[GENERAL] [BUGFIX] [CLI] - add `packager.sh` back for run-android task
Pull Request resolved: https://github.com/facebook/react-native/pull/20751
Differential Revision: D9398197
Pulled By: hramos
fbshipit-source-id: 213b066c0c034136c5ad5bbf8d45c6f331b1d185
2018-08-20 07:32:01 -07:00
Panagiotis Vekris
d4870babe6
v0.79.1 in xplat/js
...
Summary: The controller you requested could not be found.
Reviewed By: gabelevi
Differential Revision: D9390604
fbshipit-source-id: 68ba89ba197f74322e4c85c3bfc1f334fb740852
2018-08-18 22:19:34 -07:00
Ives van Hoorne
877212e18c
Bump metro to 0.43.6
...
Summary: New version of metro to add module.id
Reviewed By: rafeca
Differential Revision: D9360070
fbshipit-source-id: fc0e2d98483404ddbc1ca920c4f42f52573734c6
2018-08-16 16:52:43 -07:00
Ives van Hoorne
0a72df910f
Bump metro to 0.43.5
...
Summary: Makes it possible to use Metro in node environments
Reviewed By: mjesun
Differential Revision: D9267780
fbshipit-source-id: 2a534a32681f3a19659989cd24e77d4465ed2caa
2018-08-10 10:02:20 -07:00
Linus Unnebäck
87f5463c0e
Upgrade Babel to 7.0.0-beta.56 ( #216 )
...
Summary:
**Summary**
This pull request bumps Babel to 7.0.0-beta.56 to incorporate the latest bugfixes from Babel.
**Test plan**
One way to test is to add a simple TypeScript file with a type as the default export:
```typescript
export const test = 1
export default interface A {}
```
and then import that file from any other file:
```js
import { test } from './typescript-test'
```
Before this would throw an error, but with the latest Babel this is now fixed.
Pull Request resolved: https://github.com/facebook/metro/pull/216
Reviewed By: mjesun
Differential Revision: D9216331
Pulled By: rafeca
fbshipit-source-id: a48e87c3c6b2902be410395b1b4afab63cb88fec
2018-08-10 03:16:35 -07:00
Miguel Jimenez Esun
8f7372fe1b
Fix "http" monkeypatch
...
Summary:
Some time ago I had to add a monkeypatch to the `http` library to enforce IPv6, due to the lack of support in Node for that. In version 2.2.0 of `node-fecth`, this has been fixed, and `family: 6` can be enforced via `agent`, which is what this diff does.
I also simplified `Promise` handling at the `test-console-call` level by removing an un-needed `.then()` nesting.
Reviewed By: rafeca
Differential Revision: D9200515
fbshipit-source-id: fe06acddd8e3539f590f88eef3468b02c4242afc
2018-08-08 03:46:22 -07:00
Mayank Patke
ccf5dfbe3f
v0.78 in fbsource
...
Summary: The controller you requested could not be found.
Reviewed By: pakoito
Differential Revision: D9174188
fbshipit-source-id: 4ec9ef5b6f802964a83b6bc0bd29db7f47b37c21
2018-08-07 16:03:09 -07:00
gengjiawen
a286c0e753
Fix RNTester on Windows ( #19974 )
...
Summary:
Currrent, RNTester can not work on windows.
* Fixes https://github.com/facebook/react-native/issues/19654 .
Pull Request resolved: https://github.com/facebook/react-native/pull/19974
Differential Revision: D9150453
Pulled By: rafeca
fbshipit-source-id: 1bd2046fbe0e8eaadf249604357c2e6acd80455e
2018-08-03 13:32:49 -07:00
Ives van Hoorne
72b0238242
Bump metro to 0.43.4
...
Summary: New version for metro.
Reviewed By: rafeca
Differential Revision: D9148300
fbshipit-source-id: 77a520aba8be7111da0bf71898684cd6922ff556
2018-08-03 11:17:35 -07:00
Rafael Oleza
cbfe159d44
Bump metro@0.43.3
...
Summary:
This new release is going to contain 3 things:
- Builtin TypeScript support
- A fix on the traversal of dependencies
- A fix on the way that RN loads the config file (@[100000044482482:ives] is working on the diff atm)
Lots of things added in just 1 day! 😅
Reviewed By: CompuIves
Differential Revision: D9131710
fbshipit-source-id: 6a5ec3b35f420d1a400611ce8e094a07807e3e44
2018-08-02 06:46:53 -07:00
Rafael Oleza
4ddd8a8b65
Bump metro@0.43.2
...
Summary: shiptoasting
Reviewed By: mjesun
Differential Revision: D9116560
fbshipit-source-id: 2688e8ea895199d3b2100fe69979afe37cbfecf3
2018-08-01 03:46:34 -07:00
Rotem M
7f0a4f72b4
Initial Detox E2E iOS configuration to be run on RNTester ( #20235 )
...
Summary:
This PR adds initial setup for Detox E2E iOS and some tests for ButtonExample.
Pull Request resolved: https://github.com/facebook/react-native/pull/20235
Reviewed By: hramos
Differential Revision: D8924525
Pulled By: TheSavior
fbshipit-source-id: 8117fc1559c2e9cb831f7b081aa8f4ddc8ba7401
2018-07-30 14:31:24 -07:00
Ives van Hoorne
bda84a32d0
Fix configuration naming in loadConfig
...
Summary: There was a typo in configuration names that sneaked in...
Reviewed By: mjesun
Differential Revision: D9028977
fbshipit-source-id: 23d4a7040b3d37bef587de8822f2bda0ace87aea
2018-07-30 04:02:52 -07:00
Ives van Hoorne
169d6839bb
Bump Metro to 0.43.0
...
Summary: Bump to new version because of breaking configuration changes in metro
Reviewed By: hramos, rafeca
Differential Revision: D8989698
fbshipit-source-id: 6f397004f4a87075909ee47b1950a3fe32c1caff
2018-07-27 05:31:47 -07:00
Avik Chaudhuri
1f545743b9
@allow-large-files flow 0.77 fbsource release
...
Reviewed By: pakoito
Differential Revision: D8950363
fbshipit-source-id: 15b72b586076cf9523a40f36e489066542bec7d5
2018-07-23 11:48:44 -07:00
Rafael Oleza
583cb137b8
Bump metro@0.42.2
...
Summary:
shipit
@public
[skip-ci]
Reviewed By: mjesun
Differential Revision: D8931237
fbshipit-source-id: db5bb09eb8ec01ae302cee16e4d6cb229f8244c9
2018-07-20 07:16:12 -07:00
Peter van der Zee
b9d1c832b0
Bump babel to 7 beta.54
...
Summary:
@public
Bump Babel to version 7 beta 54
This version has reversed the windows path denormalization so we need it to be able to fix windows paths.
Reviewed By: rafeca
Differential Revision: D8894700
fbshipit-source-id: 3ae1480b77380cae8070621d4729b21a34c4b928
2018-07-19 05:01:51 -07:00
Héctor Ramos
e64e13fce3
Bump minimum Node version to 8.3 ( #20236 )
...
Summary:
Node rest/spread syntax started working without the harmony flag in 8.3 (https://github.com/facebook/react-native/pull/20178#issuecomment-404961149 ).
Release Notes:
[GENERAL] [BREAKING] [Node] - Bump minimum req. Node version to 8.3
Pull Request resolved: https://github.com/facebook/react-native/pull/20236
Differential Revision: D8876357
Pulled By: hramos
fbshipit-source-id: 1f5f791ef318e70c6be8b23d887a1d650a68e594
2018-07-17 21:02:19 -07:00
Rafael Oleza
51cf9eb3e8
Upgrade jest to 23.4.1
...
Summary:
This includes 8b8f5bc40e
, which improves the watchman query to calculate the initial haste map to be much faster under Eden.
**Time to initialize Metro after resetting jest-haste-map cache (Eden checkout)**
* Before this diff: 3m14 (sometimes taking up to 15min!! after rebasing)
* With this diff: 12s (quite constant after rebasing)
(16X improvement)
**Time to initialize Metro with a warm jest-haste-map cache (Eden checkout)**
* Before this diff: 1.1s
* With this diff: 1.1s
(I haven't seen meaningful perf changes in non-eden checkouts)
Reviewed By: mjesun
Differential Revision: D8857820
fbshipit-source-id: 5ce9da04a69bd02d121a8efe65bf369c7fa1e834
2018-07-17 03:16:52 -07:00
Rubén Norte
724c7498b6
Upgraded Babel to v7.0.0-beta.48
...
Summary:
This is the same version we're using on www. It has support for new Flow syntax and we need it on fbsource too.
allow_many_files
allow-large-files
Differential Revision: D8819980
fbshipit-source-id: 736d6d93ad879311e638da00873ca2acf42d1422
2018-07-12 12:47:01 -07:00
Miguel Jimenez Esun
00936a003c
Upgrade Jest to v23.4.0
...
Summary: Upgrade Jest to the latest version.
Differential Revision: D8784710
fbshipit-source-id: 2319bf0d11506c1c0ad0506ba38a76e07f8feb3b
2018-07-11 06:47:34 -07:00
Rafael Oleza
1ee6396c56
Bump metro@0.42.1
...
Summary:
@public
[skip-ci]
Reviewed By: mjesun
Differential Revision: D8781445
fbshipit-source-id: 32f2cbfeadbd2fb763078a046b779a16359c8bbd
2018-07-10 09:02:28 -07:00
Rafael Oleza
a69c330347
Bump metro@0.42.0
...
Summary:
@public
[skip-ci]
Differential Revision: D8773719
fbshipit-source-id: d05f7060a45751ed14dc5479ff1135f35a38c432
2018-07-10 04:02:18 -07:00
Rubén Norte
0f2f0cad41
Upgrade ESLint to 5.1.0
...
Summary:
This release fixes several issues. Most importantly for us:
- https://github.com/eslint/eslint/issues/10560
- https://github.com/eslint/eslint/issues/10512
Differential Revision: D8767118
fbshipit-source-id: 2048829d780b5f0f2f607114f803c8d0c3e02ca7
2018-07-09 12:32:38 -07:00
Rubén Norte
abf1188de2
Upgraded babel-eslint to v9.0.0-beta.2 with better support for Flow
...
Summary: Upgraded the library to fix an error in Babel causing wrong unused variable errors.
Differential Revision: D8765952
fbshipit-source-id: 352d1bb50ada76caed247bf9aa4521eff2d510e9
2018-07-09 09:17:13 -07:00
Gabe Levi
eac34e3021
Flow v0.76.0
...
Summary: No new errors in this version. Just removed a bunch of unused suppressions
Reviewed By: TheSavior
Differential Revision: D8754160
fbshipit-source-id: 2f02240b6d65edecba5d9ed603c7703462547a7f
2018-07-09 08:17:51 -07:00
Peter van der Zee
ba56725eb8
Upgrade eslint to v5.0.1 on xplat
...
Summary:
@public
Upgrades eslint to v5.0.1
Updated `eslint-plugin-eslint-comments`, which was necessary for eslint 5
Disabled the `prefer-const` rule while we wait for https://github.com/eslint/eslint/issues/10520 to be fixed/published.
Reviewed By: zertosh
Differential Revision: D8692838
fbshipit-source-id: fa0cae3e299af2350c8c30ceb94d70740ee84eab
2018-07-03 08:48:27 -07:00
gengjiawen
18d3648fa8
Simplify `yarn prettier` and make it work on windows ( #19987 )
...
Summary:
make prettier script works on windows
pass all current ci.
none
[GENERAL] [INTERNAL] [Script] - make prettier script works on windows.
Closes https://github.com/facebook/react-native/pull/19987
Differential Revision: D8714381
Pulled By: hramos
fbshipit-source-id: 0e5c5a6a5817094edd47918eb57d7f5a281560d6
2018-07-02 14:49:23 -07:00
Tim Wang
bc2f12c68c
Upgrade Jest to version 23.2.0 ( #19876 )
...
Summary:
@public
[Jest 23.2.0](https://github.com/facebook/jest/blob/master/CHANGELOG.md#2320 ) landed fix for `MockNativeMethods` access in react-native jest preset.
[GENERAL] [BUGFIX] [./package.json] - Upgrade Jest to version 23.2.0 and resolve `MockNativeMethods` access in `react-native` jest preset.
Closes https://github.com/facebook/react-native/pull/19876
Reviewed By: mjesun
Differential Revision: D8618905
Pulled By: hramos
fbshipit-source-id: 8463868b1e5dbcf430c76c0551e58d38e4c85a04
2018-06-27 13:06:12 -07:00
Miguel Jimenez Esun
770dd38bbb
Upgrading Metro to 0.39.2
...
Summary: Upgrade to v0.39.2
Reviewed By: rafeca
Differential Revision: D8664421
fbshipit-source-id: 9c71928ab45cb7ef8f882d25cfca1ff0b1687039
2018-06-27 11:17:26 -07:00
Peter van der Zee
5bf3476133
Upgrade Prettier to 1.13.6 on fbsource
...
Reviewed By: zertosh
Differential Revision: D8638504
fbshipit-source-id: c6991b2e884e14868ddc1d9047a78191219d673f
2018-06-27 03:32:42 -07:00
Sam Goldman
6264b6932a
Deploy Flow v0.75.0 to fbsource
...
Summary:
bypass-lint
allow-large-files
Reviewed By: gabelevi
Differential Revision: D8579147
fbshipit-source-id: 12280dd4872551247ff9baafab3d766d3d7a544a
2018-06-21 20:01:40 -07:00
Rafael Oleza
04fa721ed5
Bump metro@0.40.0
...
Summary:
@public
This new version of metro replaces the `getProjectRoots()` config param by `getProjectRoot()` (which is used as the main folder for calculating relative paths of files, etc) and `getWatchFolders()` (which is used to know which files/folder to crawl when starting metro).
More info: 3bdf386d14
[skip-ci]
Reviewed By: yungsters, mmmulani
Differential Revision: D8538986
fbshipit-source-id: 2afc33950334a278364debb39f34ef0fe0535894
2018-06-20 11:02:40 -07:00
Tim Yung
c749d951ad
React sync for revisions c0fe8d6...ae14317
...
Summary:
This sync includes the following changes:
- **[ae14317d6](https://github.com/facebook/react/commit/ae14317d6 )**: Inline fbjs/lib/emptyFunction (#13054 ) //<Dan Abramov>//
- **[72434a768](https://github.com/facebook/react/commit/72434a768 )**: Remove or inline some fbjs dependencies (#13046 ) //<Dan Abramov>//
- **[64c54edea](https://github.com/facebook/react/commit/64c54edea )**: Adding movementX and movementY to synthenticMouseEvent fixes #6723 (#9018 ) //<Jason Williams>//
- **[9bd4d1fae](https://github.com/facebook/react/commit/9bd4d1fae )**: Synchronously restart when an error is thrown during async rendering (#13041 ) //<Andrew Clark>//
- **[9bda7b28f](https://github.com/facebook/react/commit/9bda7b28f )**: Suspended high pri work forces lower priority work to expire early (#12965 ) //<Andrew Clark>//
- **[2e7577907](https://github.com/facebook/react/commit/2e7577907 )**: Fix incorrect data in compositionend event with Korean IME on IE11 (#10217 ) (#12563 ) //<Crux>//
- **[bc963f353](https://github.com/facebook/react/commit/bc963f353 )**: setJSResponder in Fabric renderer (#13031 ) //<Sebastian Markbåge>//
- **[051637da6](https://github.com/facebook/react/commit/051637da6 )**: Extract Fabric event handlers from canonical props (#13024 ) //<Sebastian Markbåge>//
- **[2a8085980](https://github.com/facebook/react/commit/2a8085980 )**: Remove rAF fork (#12980 ) //<Flarnie Marchan>//
- **[e0c78344e](https://github.com/facebook/react/commit/e0c78344e )**: Retry on error if there's lower priority pending work (#12957 ) //<Andrew Clark>//
- **[9725065eb](https://github.com/facebook/react/commit/9725065eb )**: Update bundle sizes for 16.4.1 release //<Dan Abramov>//
- **[0b87b2790](https://github.com/facebook/react/commit/0b87b2790 )**: Updating package versions for release 16.4.1 //<Dan Abramov>//
- **[036ae3c6e](https://github.com/facebook/react/commit/036ae3c6e )**: Use native event dispatching instead of Simulate or SimulateNative (#13023 ) //<Philipp Spieß>//
- **[945fc1bfc](https://github.com/facebook/react/commit/945fc1bfc )**: Call gDSFP with the right state in react-test-render (#13030 ) //<Rafał Ruciński>//
- **[392530104](https://github.com/facebook/react/commit/392530104 )**: Remove feature flag around 'getDerivedStateFromProps' bug fix (#13022 ) //<Flarnie Marchan>//
- **[1594409fa](https://github.com/facebook/react/commit/1594409fa )**: Scheduler depends on common packages (#13020 ) //<Dan Abramov>//
- **[d5c11193e](https://github.com/facebook/react/commit/d5c11193e )**: Added production profiling bundle type (#12886 ) //<Brian Vaughn>//
- **[ec60457bc](https://github.com/facebook/react/commit/ec60457bc )**: Popping context is O(1) in SSR (#13019 ) //<Dan Abramov>//
- **[30bc8ef79](https://github.com/facebook/react/commit/30bc8ef79 )**: Allow multiple root children in test renderer traversal API (#13017 ) //<Dan Abramov>//
- **[d480782c4](https://github.com/facebook/react/commit/d480782c4 )**: Don’t error when returning an empty Fragment (#12966 ) //<Philipp Spieß>//
- **[4ac6f133a](https://github.com/facebook/react/commit/4ac6f133a )**: Fallback to event.srcElement for IE9 (#12976 ) //<Nathan Hunzaker>//
- **[23be4102d](https://github.com/facebook/react/commit/23be4102d )**: Fixed an issue with nested contexts unwinding when server rendering. Issue #12984 (#12985 ) //<Eric Soderberg>//
- **[d0d428064](https://github.com/facebook/react/commit/d0d428064 )**: Remove old reference to inst._wrapperState (#12987 ) //<Nathan Hunzaker>//
- **[c78957eac](https://github.com/facebook/react/commit/c78957eac )**: Fix an SVG focusing crash in IE11 (#12996 ) //<Jifa Jiang>//
- **[bfb12ebb5](https://github.com/facebook/react/commit/bfb12ebb5 )**: delete a couple of redundant lines in performWorkOnRoot() in ReactFiberScheduler.js (#13003 ) //<Nathan Quarles>//
- **[394b17eed](https://github.com/facebook/react/commit/394b17eed )**: Update custom renderer docs //<Dan Abramov>//
- **[188c4252a](https://github.com/facebook/react/commit/188c4252a )**: Fix react-dom ReferenceError requestAnimationFrame in non-browser env (#13000 ) (#13001 ) //<Ivan Babak>//
- **[9cf3733a9](https://github.com/facebook/react/commit/9cf3733a9 )**: update comment in computeAsyncExpiration() to reflect code (#12994 ) //<Nathan Quarles>//
- **[c5a733e1e](https://github.com/facebook/react/commit/c5a733e1e )**: Fix links of docs on the comment (#12795 ) //<Ende93>//
- **[36546b513](https://github.com/facebook/react/commit/36546b513 )**: Set the correct initial value on input range (#12939 ) //<Maxime Nory>//
- **[15767a8f8](https://github.com/facebook/react/commit/15767a8f8 )**: [scheduler] 5/n Error handling in scheduler (#12920 ) //<Flarnie Marchan>//
- **[3118ed9d6](https://github.com/facebook/react/commit/3118ed9d6 )**: Expose unstable_interactiveUpdates on ReactDOM (#12943 ) //<Andrew Clark>//
- **[524a74331](https://github.com/facebook/react/commit/524a74331 )**: Fix for Flow issues in SimpleCacheProvider (#12942 ) //<Flarnie Marchan>//
- **[ae57b125c](https://github.com/facebook/react/commit/ae57b125c )**: [simple-cache-provider] Use LRU cache eviction (#12851 ) //<Andrew Clark>//
- **[e0a03c1b4](https://github.com/facebook/react/commit/e0a03c1b4 )**: Extend input type check in selection capabilities (#12062 ) (#12135 ) //<Spyros Ioakeimidis>//
- **[79a740c6e](https://github.com/facebook/react/commit/79a740c6e )**: Rename variables to remove references to 'global' global (#12931 ) //<Flarnie Marchan>//
- **[ff724d3c2](https://github.com/facebook/react/commit/ff724d3c2 )**: [scheduler] 4/n Allow splitting out `schedule` in fb-www, prepare to fix polyfill issue internally (#12900 ) //<Flarnie Marchan>//
- **[83f76e4db](https://github.com/facebook/react/commit/83f76e4db )**: ForwardRefs supports propTypes (#12911 ) //<Brian Vaughn>//
- **[8aeea5afa](https://github.com/facebook/react/commit/8aeea5afa )**: Do not assign node.value on input creation if no change will occur (#12925 ) //<Nathan Hunzaker>//
- **[aa85b0fd5](https://github.com/facebook/react/commit/aa85b0fd5 )**: Upgrade to Jest 23 (#12894 ) //<Simen Bekkhus>//
- **[61777a78f](https://github.com/facebook/react/commit/61777a78f )**: [scheduler] 3/n Use a linked list instead of map and queue for callback storage (#12893 ) //<Flarnie Marchan>//
- **[e7bd3d59a](https://github.com/facebook/react/commit/e7bd3d59a )**: No longer expose ReactNativeComponentTree (#12904 ) //<Sebastian Markbåge>//
- **[f35d989be](https://github.com/facebook/react/commit/f35d989be )**: TestRenderer warns if flushThrough is passed the wrong params (#12909 ) //<Brian Vaughn>//
- **[557870067](https://github.com/facebook/react/commit/557870067 )**: Record "actual" times for all Fibers within a Profiler tree (alt) (#12910 ) //<Brian Vaughn>//
- **[76e07071a](https://github.com/facebook/react/commit/76e07071a )**: [scheduler] 2/n Adding 'schedule' fixture (#12884 ) //<Flarnie Marchan>//
- **[345e0a71a](https://github.com/facebook/react/commit/345e0a71a )**: Improve tests for 'schedule' module (#12880 ) //<Flarnie Marchan>//
- **[8765d6089](https://github.com/facebook/react/commit/8765d6089 )**: Update bundle sizes for 16.4.0 release //<Andrew Clark>//
- **[d427a563d](https://github.com/facebook/react/commit/d427a563d )**: Updating package versions for release 16.4.0 //<Andrew Clark>//
- **[53852a887](https://github.com/facebook/react/commit/53852a887 )**: add functional components warning about legacy context api (#12892 ) //<Chang Yan>//
- **[fe747a51c](https://github.com/facebook/react/commit/fe747a51c )**: Add React.Timeout to getComponentName (#12890 ) //<Toru Kobayashi>//
- **[c601f7a64](https://github.com/facebook/react/commit/c601f7a64 )**: add siblings Timeout components test case (#12862 ) //<Chang Yan>//
- **[735035837](https://github.com/facebook/react/commit/735035837 )**: add legacy context API warning in strict mode (#12849 ) //<Chang Yan>//
- **[e88579184](https://github.com/facebook/react/commit/e88579184 )**: Fix a regression that caused us to listen to extra events at the top (#12878 ) //<Dan Abramov>//
- **[7c0aca289](https://github.com/facebook/react/commit/7c0aca289 )**: Rollup freeze: false (#12879 ) //<Brian Vaughn>//
- **[33289b530](https://github.com/facebook/react/commit/33289b530 )**: Tests and fixes for 'timing out' behavior (#12858 ) //<Flarnie Marchan>//
- **[ad27845cc](https://github.com/facebook/react/commit/ad27845cc )**: Fix double-firing submit events (#12877 ) //<Sophie Alpert>//
- **[dd5fad296](https://github.com/facebook/react/commit/dd5fad296 )**: Update Flow to 0.70 (#12875 ) //<Dan Abramov>//
- **[13003654e](https://github.com/facebook/react/commit/13003654e )**: Pass "start time" and "commit time" to Profiler callback (#12852 ) //<Brian Vaughn>//
- **[dc3b144f4](https://github.com/facebook/react/commit/dc3b144f4 )**: Treat Rollup "warnings" as errors (#12868 ) //<Dan Abramov>//
- **[d7b9b4921](https://github.com/facebook/react/commit/d7b9b4921 )**: Fix react native example links in README of 'react-reconciler' (#12871 ) //<Kevin (Kun) "Kassimo" Qian>//
- **[9bed4a6ae](https://github.com/facebook/react/commit/9bed4a6ae )**: https in reactProdInvariant text (#12869 ) //<Sophie Alpert>//
- **[47b003a82](https://github.com/facebook/react/commit/47b003a82 )**: Resolve host configs at build time (#12792 ) //<Dan Abramov>//
Release Notes:
[GENERAL] [FEATURE] [React] - React sync for revisions c0fe8d6...ae14317
Reviewed By: bvaughn
Differential Revision: D8458731
fbshipit-source-id: afefaa50685d43e70c8ea85c70d2e29dee311cbb
2018-06-16 00:46:24 -07:00
Tim Yung
23f959aab8
FBJS: Upgrade to 0.8.17
...
Reviewed By: hramos
Differential Revision: D8458729
fbshipit-source-id: 1e92098b2651751f1b7ba3c8da1316fe4c0ca808
2018-06-16 00:46:23 -07:00
Miguel Jimenez Esun
ef4c42d284
Bumping Metro to 0.39.1
...
Reviewed By: rafeca
Differential Revision: D8418105
fbshipit-source-id: 66032deb53f46a388b81233e8d00d7af6a2c7fa7
2018-06-14 06:19:03 -07:00
Rafael Oleza
a7a5b666eb
Bump metro@0.39.0
...
Reviewed By: mjesun, davidaurelio
Differential Revision: D8380199
fbshipit-source-id: 6b9e3aa343e8d0526a3c42d5ea266c44428d31f8
2018-06-12 13:58:10 -07:00
Reem Helou
70fb3651f9
Revert D8346704: Upgrade react-test-render to handle React.forwardRef
...
Differential Revision:
D8346704
Original commit changeset: fc6686fab12a
fbshipit-source-id: 4d1a9d109ef5be93c40df2701f35966bf441eb0a
2018-06-11 20:46:26 -07:00
Spencer Ahrens
741c53c2fb
Upgrade react-test-render to handle React.forwardRef
...
Reviewed By: TheSavior
Differential Revision: D8346704
fbshipit-source-id: fc6686fab12a429780fb16e4129e8987529b13af
2018-06-11 19:22:51 -07:00
Maël Nison
3bed272a62
Upgrade to Flow v0.74.0
...
Reviewed By: panagosg7
Differential Revision: D8322344
fbshipit-source-id: 1208528009785f7f797201777287af525d0a9ca1
2018-06-10 18:00:07 -07:00
Eli White
63540874ec
Bump eslint-plugin-react in FBSource
...
Reviewed By: yungsters
Differential Revision: D8247892
fbshipit-source-id: 4072e65ccf2fdc654f58087a16b4c7709ce393f8
2018-06-08 20:31:41 -07:00
Peter van der Zee
29fb2a8e90
Bump Prettier to 1.13.4 on xplat
...
Summary:
Bump Prettier to use version 1.13.4
All code changes are caused by running Prettier and should only affect files that have an `format` header.
All other changes caused by yarn.
Reviewed By: ryanmce
Differential Revision: D8251255
fbshipit-source-id: 0b4445c35f1269d72730f2000002a27c1bc35914
2018-06-06 05:32:06 -07:00
Cedric van Putten
3a1d949906
Fix/security issues ( #19373 )
...
Summary:
This updates both [`react-devtools-core`](https://github.com/facebook/react-devtools/issues/941 ) and [`plist`](04c8ee7646
) to include security fixes, reported by `npm audit`.
Fixes #18854
_Only dependencies are updated with security patches, no change in actual code._
_Only dependencies are updated with security patches, no change in actual code._
[GENERAL] [ENHANCEMENT] [react-devtools-core] - Bump to `3.2.2` for a security fix for `ws`
[GENERAL] [ENHANCEMENT] [plist] - Bump to `3.0.0` for a security fix for `xmlbuilder`
Closes https://github.com/facebook/react-native/pull/19373
Reviewed By: sophiebits
Differential Revision: D8149200
Pulled By: hramos
fbshipit-source-id: 732fd627b232c315be60ed2da432742e8256a38a
2018-06-05 19:45:27 -07:00
Rafael Oleza
30320f1fed
Bump metro@0.38.1
...
Reviewed By: jeanlauliac
Differential Revision: D8248753
fbshipit-source-id: aa6d0da4e96e8b4109b6b5bca050614ec1860fc2
2018-06-04 03:13:04 -07:00
Rafael Oleza
d081f83a04
Bump metro@0.38.0
...
Reviewed By: davidaurelio
Differential Revision: D8235787
fbshipit-source-id: a22802c829920e7e182a9aae70bd69a6446d5f8f
2018-06-01 08:42:32 -07:00
Miguel Jimenez Esun
6c02cdc066
Upgrade Metro to 0.37.2
...
Reviewed By: rafeca
Differential Revision: D8223545
fbshipit-source-id: fdaacbb514e2947b9244cb55ef9170af55ba2f60
2018-06-01 04:16:08 -07:00
sAm_vdP
216bce3163
Fix jest snapshot testing on windows
...
Summary:
Fixes #19370
Applied changes to existing project that uses jest snapshot testing. Testing was broken before and now works.
To verify: Run any snapshot test containing an image reference on Windows before and after this PR.
[WINDOWS][BUGFIX][jest] - Fixed jest snapshot testing on windows
Closes https://github.com/facebook/react-native/pull/19496
Differential Revision: D8195947
Pulled By: hramos
fbshipit-source-id: 909b5fe7cfd8c6286baf161a227a359854a37603
2018-05-31 12:58:05 -07:00
Miguel Jimenez Esun
536c937269
Upgrade Jest to 23.1.0
...
Reviewed By: davidaurelio
Differential Revision: D8212583
fbshipit-source-id: 245a5ccc9bcd63a0995dcb5a1770a6f5f34cd04e
2018-05-31 04:31:25 -07:00
Miguel Jimenez Esun
d8bf46ae90
jest@23.0.1 in xplat/js
...
Reviewed By: rafeca
Differential Revision: D8195559
fbshipit-source-id: 7e96f24ae1f9586e9fbc6e1687f731420979352d
2018-05-30 09:24:41 -07:00
Trevor Brindle
c39b8041d1
cli: upgrade envinfo for new features in `react-native info`
...
Summary:
envinfo has done a good job reporting issues in the issue template so far, and I've done a lot of work between version 3.x and 5.x that react-native could benefit from. This adds:
- better information organization, including versions and paths
- Platform/CPU/RAM
- Android and iOS SDK version detection
- npm package globbing (select all babel* packages
- global npm packages (with globbing)
envinfo also can report IDE versions, other binaries, languages and browsers if needed, and in different formats. Take a look here if interested: https://github.com/tabrindle/envinfo
- run `react-native info` // standard info
- run `react-native info --packages` // all packages in package.json
- run `react-native info --packages jest,eslint,babel-polyfill` // specified packages
- run `react-native info --packages *babel*` // globbed packages
Sample standard output:
```
System:
OS: macOS High Sierra 10.13
CPU: x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Memory: 97.59 MB / 16.00 GB
Shell: 5.4.2 - /usr/local/bin/zsh
Binaries:
Node: 8.11.0 - ~/.nvm/versions/node/v8.11.0/bin/node
Yarn: 1.5.1 - ~/.yarn/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0
Android SDK:
Build Tools: 27.0.3
API Levels: 26
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 9.0/9A235 - /usr/bin/xcodebuild
npmPackages:
react: 16.3.2 => 16.3.2
react-native: 0.55.0 => 0.55.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
```
https://github.com/facebook/react-native/pull/14428 - original inclusion of `react-native info`
[CLI] [ENHANCEMENT] [local-cli/info/info.js] - add more info to react-native info cli command, like global npm packages, binary paths, and SDK versions
Closes https://github.com/facebook/react-native/pull/19331
Differential Revision: D8049650
Pulled By: hramos
fbshipit-source-id: 35c677f369bcad1a014eb083b2ce60ba33fee0ea
2018-05-29 17:30:16 -07:00
Janic Duplessis
122b3791ed
Vendor fetch polyfill, remove default blob response type
...
Summary:
While investigating an issue about blobs (https://github.com/facebook/react-native/issues/18223 ), I noticed that the fetch polyfill (https://github.com/github/fetch ) uses blobs as the response type by default if the module is available (https://github.com/github/fetch/blob/master/fetch.js#L454 ). This surfaced some issue with the blob implementation on iOS that has since been fixed.
However after further review of the fetch polyfill and the way Blobs work in RN, I noticed a major issue that causes blobs created by fetch to leak memory. This is because RN blobs are not deallocated automatically like in the browser (see comment https://github.com/facebook/react-native/blob/master/Libraries/Blob/Blob.js#L108 ) and the fetch polyfill does not deallocate them explicitly using the close method.
Ideally we should implement automatic blob cleanup when the instance is garbage collected but implementing that is probably somewhat complex as it requires integrating with JSC. For now I suggest disabling the default handling of requests as blobs in the fetch polyfill. This will mitigate the issue for people not using Blobs directly. I'm not sure how well documented the Blob module is but we should make it clear that they currently require explicit deallocation with the close method for people using them directly.
Run a simple http request using fetch and make sure it does not use the Blob module anymore.
[GENERAL] [BUGFIX] [fetch] - Do not use blobs to handle responses in the fetch polyfill, fixes potential memory leak.
Closes https://github.com/facebook/react-native/pull/19333
Differential Revision: D8125463
Pulled By: hramos
fbshipit-source-id: 8f4602190dfc2643606606886c698e8e9b1d91d1
2018-05-29 13:58:56 -07:00
glevi@fb.com
4fd594674f
Upgrade xplat/js to Flow v0.73
...
Reviewed By: pakoito
Differential Revision: D8153280
fbshipit-source-id: 193b35f12ecfb002283912c29ce08319b52802e6
2018-05-25 13:54:04 -07:00
gengjiawen
6d2ed2c170
Improve docker
...
Summary:
Improve current docker by
* Make android build version and tools version config easily, and bump them to 26.
* use less file layer
* fix current docker error (the maintainer line)
* fix typo in package.json
Since ci on master branch still failed, and I run test the docker build. And in the process I found buck related config still is 23.
none
[GENERAL] [ENHANCEMENT] [CI] - Improve docker
Closes https://github.com/facebook/react-native/pull/19354
Differential Revision: D8148376
Pulled By: hramos
fbshipit-source-id: 8f965860487467c1a219e64588ff3000d571ddc1
2018-05-24 12:59:11 -07:00
Peter van der Zee
7014a30baa
Upgrade babel to beta.47 across xplat
...
Summary:
Upgrade Babel from beta.40 to beta.47
There are two important breaking changes here.
- If you want an AST from the Babel `transform` functions you must pass on `ast:true` in the options.
- The `sourceType` is now the only source of truth on whether to parse with the Script or Module goal. It defaults to `script` and can also be `module` or `unambiguous`. In the `unambiguous` case it will first try to parse with the Module goal and only if it crashes it will try again with the Script goal.
Beyond that there were some fixes and some smaller changes that may affect you. See the Babel changelogs for details (https://github.com/babel/babel/tags ).
Also updated the way we generate the babel helpers file.
Reviewed By: rubennorte
Differential Revision: D8075280
fbshipit-source-id: 2bb902690e8a4b19d9cada2b7b0c94812b3d4f0f
2018-05-23 06:16:01 -07:00
Miguel Jimenez Esun
eba62803b5
Bump Metro to 0.37.1
...
Reviewed By: rafeca
Differential Revision: D8038396
fbshipit-source-id: 33fe5499825653f205bdb588ff4c7fa232602f24
2018-05-21 08:21:00 -07:00
Héctor Ramos
85fc98d437
Fix JUnit report location when running Jest
...
Summary:
We were incorrectly writing jest's junit output to ~/reports/ instead of ~/react-native/reports.
Run on Circle and confirm JUnit test results are rendered: https://circleci.com/gh/hramos/react-native/2208
[INTERNAL][MINOR][CI] - JUnit test collection
[skip ci]
Closes https://github.com/facebook/react-native/pull/19349
Differential Revision: D8062654
Pulled By: hramos
fbshipit-source-id: 72066270042dfae8afce62469fcfabb57bd405a6
2018-05-18 20:46:16 -07:00
Tim Yung
83169c95a3
React sync for revisions 0887c7d...bde4b16
...
Reviewed By: fkgozali, acdlite
Differential Revision: D7999962
fbshipit-source-id: 8ef358574244bd76fe5a67a1781d59a70fc9c449
2018-05-15 13:16:57 -07:00
Rafael Oleza
803afd8430
Bump metro@0.37.0
...
Reviewed By: jeanlauliac
Differential Revision: D7988114
fbshipit-source-id: aeaed94cb89a929ab5079af957bfccd9fd7ebd83
2018-05-15 02:57:34 -07:00
Vincent Langlet
37652f26b4
Move eslint plugin from dependencies to dev dependencies
...
Summary:
`eslint-plugin-react-native` was a dependencies. I think it should be a dev dependencies like `eslint-plugin-eslint-comments`, `eslint-plugin-flowtype`, `eslint-plugin-jest`, `eslint-plugin-prettier` and `eslint-plugin-react`.
No need
Not needed
[INTERNAL] [ENHANCEMENT] [./package.json] - Move `eslint-plugin-react-native` to devDependencies.
Closes https://github.com/facebook/react-native/pull/18851
Differential Revision: D7991437
Pulled By: hramos
fbshipit-source-id: 5481290423848b9c34df24629086239600d42274
2018-05-14 15:18:55 -07:00
Panagiotis Vekris
4767f9be45
v0.72.0 in xplat/js
...
Reviewed By: gabelevi
Differential Revision: D7956747
fbshipit-source-id: b1993de405c273b3cc1ed74f994e8e75bda0a985
2018-05-11 17:50:35 -07:00
Héctor Ramos
c1e6f27823
Bump to Node 8
...
Summary:
Moving to Node 8 in React Native will allow us to be consistent with Facebook, e.g. trailing commas.
As of April 30, Node 4.x is end of life, and Node 6.x entered maintenance mode (see https://medium.com/the-node-js-collection/april-2018-release-updates-from-the-node-js-project-71687e1f7742 ).
This will require our docs to be updated to require Node 8 as a minimum. This should be done as part of the following PR: https://github.com/facebook/react-native-website/pull/355
Circle CI already runs all JS tests using Node 8, and it has an extra compatibility check that uses Node 6. This workflow is dropped as we no longer need to check for failures when Node 6 is used.
See https://github.com/facebook/react-native/issues/19226
[GENERAL] [BREAKING] [Node] - Bump minimum req. Node version to 8
Closes https://github.com/facebook/react-native/pull/19230
Differential Revision: D7979478
Pulled By: hramos
fbshipit-source-id: c91ec118f0a59c4daae5fcdbfc822ccead591304
2018-05-11 17:32:19 -07:00
Héctor Ramos
3bc2696d65
Update Android docker images
...
Summary:
Quick update to switch to a new React Native CI org on Docker Hub. Note that the images are not yet automatically generated on CI. We could do this on Circle CI in certain scenarios:
- Base image needs to be updated whenever the Android development environment has changed (e.g. switch to a new SDK version, build tools, etc)
- Tests image should ideally be updated on each commit
This PR should be safe to land as Circle CI is not yet using these images.
Closes https://github.com/facebook/react-native/pull/19192
Differential Revision: D7939209
Pulled By: hramos
fbshipit-source-id: 0f845a8fffbf8f5b9cecef4fa0ba802bc755f7aa
2018-05-09 23:32:14 -07:00
Mehdi Mulani
634e7e11e3
iOS only: Breaking Change: Restrict WebView to only http(s) URLs
...
Summary:
To prevent people from linking file:// or other URLs inside RN WebViews, default <WebView> to not allowing those types of URLs.
This adds the originWhitelist to specify other schemes or domains to be allowed.
If the url is not allowed, it will be opened in Safari/by the OS instead.
Reviewed By: yungsters
Differential Revision: D7833203
fbshipit-source-id: 6881acd3b434d17910240e4edd585c0a10b5df8c
2018-05-04 13:48:34 -07:00
Maël Nison
b63015d34e
Bumps Jest to 23.0.0-charlie.1 [fbsource]
...
Differential Revision: D7859604
fbshipit-source-id: 6a2d74679f5eae3cb0102f461272b7cbd5716cba
2018-05-03 14:06:13 -07:00
Mayank Patke
d0822c3bcc
v0.71.0 in xplat/js
...
Reviewed By: yungsters
Differential Revision: D7787035
fbshipit-source-id: 07defbbaa6fdc8f3016727fe6d6b1640efbf8ab6
2018-04-28 02:19:34 -07:00
Miguel Jimenez Esun
c18d2a9669
Upgrade Jest to 23.0.0-beta.2
...
Reviewed By: davidaurelio
Differential Revision: D7789525
fbshipit-source-id: 0d0ebe30d66dbc5cd07c7517a513ac7be2c1e128
2018-04-27 20:23:16 -07:00
David Aurelio
065b9991a9
Metro v0.36.1
...
Summary: contains fixes to `metro-babel-register` necessary for node 6 compat (as supported by React Native)
Reviewed By: mjesun
Differential Revision: D7788437
fbshipit-source-id: 805b185dd970bf376f11664aeabea0bb8ac94b8b
2018-04-27 07:31:21 -07:00
David Aurelio
7b6dd2a661
Metro v0.36.0
...
Summary: bumps the version after cache updates.
Reviewed By: mjesun
Differential Revision: D7776561
fbshipit-source-id: 8afe97323544116f147b93b92e5aa42ec1124d3a
2018-04-27 00:35:29 -07:00
Rafael Oleza
34ee828b2e
Bump metro@0.35.0
...
Reviewed By: mjesun
Differential Revision: D7759224
fbshipit-source-id: d21a371c196ff5c6e691fb7cce8c73dade02d385
2018-04-26 06:27:54 -07:00
Jean Lauliac
c6b96c0df7
react-native-github: remove old fs mock implementation
...
Reviewed By: rafeca
Differential Revision: D7652914
fbshipit-source-id: 5494305750e7616b5120169266c519f460ae7e6d
2018-04-25 07:37:10 -07:00
Rubén Norte
d5e9e55fa3
Remove @providesModule from all modules
...
Summary:
This PR removes the need for having the `providesModule` tags in all the modules in the repository.
It configures Flow, Jest and Metro to get the module names from the filenames (`Libraries/Animated/src/nodes/AnimatedInterpolation.js` => `AnimatedInterpolation`)
* Checked the Flow configuration by running flow on the project root (no errors):
```
yarn flow
```
* Checked the Jest configuration by running the tests with a clean cache:
```
yarn jest --clearCache && yarn test
```
* Checked the Metro configuration by starting the server with a clean cache and requesting some bundles:
```
yarn run start --reset-cache
curl 'localhost:8081/IntegrationTests/AccessibilityManagerTest.bundle?platform=android'
curl 'localhost:8081/Libraries/Alert/Alert.bundle?platform=ios'
```
[INTERNAL] [FEATURE] [All] - Removed providesModule from all modules and configured tools.
Closes https://github.com/facebook/react-native/pull/18995
Reviewed By: mjesun
Differential Revision: D7729509
Pulled By: rubennorte
fbshipit-source-id: 892f760a05ce1fddb088ff0cd2e97e521fb8e825
2018-04-25 07:37:10 -07:00
David Aurelio
f80000b9e7
Move `buildRegExps` from `react-native` to `metro-babel-register`
...
Summary: Moves the `buildRegExps` function from `react-native` to `metro-babel-register`. This way, it is easier to reuse, and we can remove FB-specific logic from React Native.
Reviewed By: jeanlauliac, mjesun
Differential Revision: D7727483
fbshipit-source-id: 0f7773ff044033c465f0712c523a0aef61bf8444
2018-04-23 13:49:58 -07:00
Maël Nison
fc42f9cca2
Adds async & babel-generator to the devDependencies
...
Reviewed By: mjesun
Differential Revision: D7707199
fbshipit-source-id: 30635f44b24c156ef1947652ef78850b4d9d68b6
2018-04-23 10:34:28 -07:00
Peter van der Zee
e85799faed
Add @babel/core to RN dev deps for testing
...
Summary:
This adds a locked down version of Babel 7 (beta.40) to the dev dependencies for RN because it's used in testing.
See also; f8d6b97140 (r28569573)
Reviewed By: davidaurelio
Differential Revision: D7685590
fbshipit-source-id: eae8379b586d82527788e9812a573ab321dfc8e3
2018-04-23 05:58:48 -07:00
David Aurelio
2690ba5e59
Move worker protocol and babelRegisterOnly into their own packages
...
Summary: Moves the implementation of Buck’s worker protocol into its own package and babelRegisterOnly for better reusability.
Reviewed By: rafeca
Differential Revision: D7666896
fbshipit-source-id: ae297494ced3b8dd1f9d90983a640643d6ce7896
2018-04-23 04:00:00 -07:00
Miguel Jimenez Esun
5c8596dabe
Upgrade Jest to 23.0.0-beta.1
...
Reviewed By: cpojer
Differential Revision: D7722547
fbshipit-source-id: 711617c5c88fced5a38067a66fda86d2b281c0a2
2018-04-21 11:34:28 -07:00
Rafael Oleza
57919a3edd
Bump metro@0.34.0
...
Differential Revision: D7708906
fbshipit-source-id: 3d8cdfd2745baf73c92f90e0960f7cd73a289f77
2018-04-20 14:23:23 -07:00
Peter van der Zee
3c0b8922e2
Upgrade Prettier to v1.12.1 on fbsource
...
Reviewed By: benjaffe, ryanmce, yungsters
Differential Revision: D7652946
fbshipit-source-id: 396d45c675e93f2298cd2920d927630c81867447
2018-04-19 02:45:35 -07:00
Brian Vaughn
908e8850b9
Forked RN renderers for FB and OSS (52afbe0...0887c7d)
...
Reviewed By: fkgozali
Differential Revision: D7658727
fbshipit-source-id: 2fdd30694b169d180b40bc1059ecc297b07cd18d
2018-04-18 15:04:53 -07:00