Brian Vaughn
b0db2d71b9
Updated React DevTools to ^3.6.0
...
Summary:
Updated DevTools to latest release to add "hooks" support.
`js1 upgrade react-devtools -v ^3.6.0`
Reviewed By: threepointone
Differential Revision: D13663129
fbshipit-source-id: 58942cc8ac0ecc7be55f8ff32937ad8bda531240
2019-01-17 09:53:51 -08:00
Sam Goldman
2c7895706d
@allow-large-files Deploy Flow v0.90 to xplat/js
...
Reviewed By: dsainati1
Differential Revision: D13708161
fbshipit-source-id: b83dab505f2739bf4bc5077936e71ebd1800eaf4
2019-01-16 21:55:02 -08:00
Simen Bekkhus
991e83f568
fix: use `require.resolve` in `jest-preset` ( #22972 )
...
Summary:
The current way the Jest preset work requires the different files to be in `<rootDir>/node_modules/react-native`. This is not necessarily true - especially in monorepoes.
If we instead do `require.resolve`, we do not need to do `rootDir` replacement in Jest.
Having a JS file as preset has been supported since Jest 23.0.0: https://github.com/facebook/jest/pull/6185
Changelog:
----------
[General] [Fixed] - use `require.resolve` in `jest-preset`
Pull Request resolved: https://github.com/facebook/react-native/pull/22972
Differential Revision: D13662758
Pulled By: hramos
fbshipit-source-id: ca79b5b89d9d05c6fe639b0d88619858e8d05da7
2019-01-14 16:35:38 -08:00
Kacper Wiszczuk
7d79411008
imp: Add templates to rn package ( #22952 )
...
Summary:
Changelog:
----------
[General] [added] - Add `templates` to `react-native` package.
We need a `template` to initialize new RN project from `react-native-cli`. We are planning to remove `templates` from `cli` to be always synced with chosen rn version. Issue for that in `react-native-cli` is here: https://github.com/react-native-community/react-native-cli/issues/39 .
cc grabbou cpojer
Pull Request resolved: https://github.com/facebook/react-native/pull/22952
Differential Revision: D13644364
Pulled By: hramos
fbshipit-source-id: d5d7a820ffacb342e1e97d83739987678ff511e9
2019-01-11 17:54:08 -08:00
gengjiawen
768c1ba641
remove envinfo from dependency. ( #22870 )
...
Summary:
remove it since `react-native-cli` already moved out.
pass current ci.
Pull Request resolved: https://github.com/facebook/react-native/pull/22870
Differential Revision: D13627371
Pulled By: hramos
fbshipit-source-id: 16a7b6516fa4778222aca52cf9c3c54645e1ccf7
2019-01-10 17:02:09 -08:00
Daiki Ihara
fa31e44e13
Fix test ci reporter ( #22749 )
...
Summary:
Hi Team!
This PR fixes #22741
Thanks for labeling as Good First Issue!
Changelog:
----------
[General] [Fixed] - fix deprecation warning of testResultsProcessor flag in test-ci
Pull Request resolved: https://github.com/facebook/react-native/pull/22749
Differential Revision: D13542419
Pulled By: hramos
fbshipit-source-id: 84f33329a6b9431ed1db843a99e7db7dbeda5361
2018-12-21 17:37:50 -08:00
Rafael Oleza
f88ce82627
Upgrade metro packages on React Native
...
Summary: bumpit
Reviewed By: jeanlauliac
Differential Revision: D13504233
fbshipit-source-id: c399ec831b5d06be89f5132892905c08bc464d50
2018-12-21 04:19:57 -08:00
Eli White
a3c6e1da10
Open source the Codegen!
...
Summary:
This is very much a work in progress. Moving it into the open source repo to be able to hook it up to generate some Fabric files.
Will continue to iterate on it in the open.
Reviewed By: hramos, mdvacca
Differential Revision: D13500969
fbshipit-source-id: 79082447dc52b5834f24eb72bc6e07200b324238
2018-12-20 11:58:11 -08:00
Nicolas Charpentier
5d06c7495d
Replace our local types by flow-typed ( #20320 )
...
Summary:
These comments were confusing since we don't use flow-typed.
cc bvaughn.
I have replaced our local types by flow-typed, removed metro custom stub and deleted `flow-github` directory.
As result, createReactClass, PropTypes and Metro types won't be distributed to RN users. If you need it, you should relay on flow-typed.
Pull Request resolved: https://github.com/facebook/react-native/pull/20320
Reviewed By: TheSavior
Differential Revision: D13517157
Pulled By: rickhanlonii
fbshipit-source-id: e52c0b6114114a706f6152b2031c600e3dece0d2
2018-12-20 04:42:34 -08:00
glevi@fb.com
24f8d4d3db
Deploy v0.89
...
Reviewed By: jbrown215
Differential Revision: D13457087
fbshipit-source-id: 9f01371ae3515990c5595f1eb2361174050066b8
2018-12-14 13:57:50 -08:00
Josh Justice
ac30f64ae5
Fix E2E warnings ( #22621 )
...
Summary:
Fixes two types of warnings that occur when running E2E tests:
1. A deprecation warning from Jest: 'Option "setupTestFrameworkScriptFile" was replaced by configuration "setupFilesAfterEnv", which supports multiple paths.'
2. YellowBox warnings when running the app in debug mode, about components that are deprecated and that require main queue setup.
By fixing these warnings, we increase contributors' confidence that things are working correctly, and draw attention to any warnings that they _should_ pay attention to, if and when they arise.
I feel confident that we should hide the deprecated-component warnings; we _want_ to use these components because we want them to be tested, until they're removed entirely.
For the warning "Module RCTImagePickerManager requires main queue setup", if that's something that can be fixed with reasonable effort in the RNTester code then I think it would be better to do so. Otherwise, I think it is good to hide the warning, because this is a condition we expect: it's not something a contributor should pay attention to.
Pull Request resolved: https://github.com/facebook/react-native/pull/22621
Differential Revision: D13468553
Pulled By: hramos
fbshipit-source-id: 1a5952087dd6fcc9ba08ff7a60ad9f5b075bef57
2018-12-14 12:45:24 -08:00
Rafael Oleza
f5cb4b68eb
Remove metro dependency from react native
...
Summary:
This diff removes the dependency of `metro` on `react-native` by using the newly created `metro-react-native-babel-transformer` package.
This package does not depend on any other internal metro logic and this will decouple RN from metro a bit more.
Reviewed By: cpojer
Differential Revision: D13434949
fbshipit-source-id: a02a3b327c71cef53111514b797f7d6bc9f9d71c
2018-12-14 08:15:09 -08:00
Blair Vanderhoof
4ed3344275
Update react-test-renderer to support hooks
...
Summary: The current version of react-test-renderer is throwing an error when we use hooks. Upgrading to 16.7.0-alpha.2 fixes it.
Reviewed By: sahrens
Differential Revision: D13104634
fbshipit-source-id: ac7f8d603293907c8653e247563a4d12413b10b9
2018-12-12 14:39:34 -08:00
Rafael Oleza
c9dc1c68a2
Create metro-react-native-babel-transformer package
...
Summary:
By having this package we can remove the dependency from `react-native` to `metro` and then unblock the releases of metro to npm.
We cannot use this package yet from `react-native` since it hasn't been published, what I'm gonna do here is the following:
1. Land this diff
2. Publish manually a version of `metro-react-native-babel-transformer@0.50.0` once this diff lands.
3. Update the RN repo to depend on `metro-react-native-babel-transformer` instead of `metro`.
Then we should be able to publish versions of metro :)
Differential Revision: D13432231
fbshipit-source-id: 522152e32162cc5fc40aea2fa4c8fd53c528e2e3
2018-12-12 09:42:15 -08:00
Nat Mote
aaa4a38fbc
Upgrade to Flow v0.88.0
...
Summary:
allow-large-files
https://our.intern.facebook.com/intern/wiki/Flow/Flow_Release_Process/#update-xplat-js
Reviewed By: samwgoldman
Differential Revision: D13418170
fbshipit-source-id: 91ab0d2788c1061b8c81a39f8a017eedea48abe2
2018-12-11 20:01:00 -08:00
Christoph Nakazawa
63a6bb7637
Remove remaining references to local-cli
...
Summary: This removes the remaining references to `local-cli`. We already have a `cli.js` file on the root that was just forwarding to the local-cli folder, so I removed that. It also seems that `setupBabel.js` is no longer necessary in RN.
Reviewed By: TheSavior
Differential Revision: D13396218
fbshipit-source-id: a945cb91dae39c4b58c5cabcca6b0f0328fc4717
2018-12-10 19:08:10 -08:00
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