Commit Graph

207 Commits

Author SHA1 Message Date
dependabot[bot]
ddf483a5e9 Bump jest from 24.9.0 to 26.1.0 in /react-native/ReactNativeFlipperExample (#1356)
Summary:
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 26.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/releases">jest's releases</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
<h2>26.0.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-circus]</code> Backward compatibility for deprecated <code>DescribeBlock.tests</code> to not break e.g. Detox reporter</li>
</ul>
<h2>26.0.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-environment-jsdom]</code> [<strong>BREAKING</strong>] Upgrade <code>jsdom</code> to v16 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9606">#9606</a>)</li>
<li><code>[jest/fake-timers]</code> Add possibility to use a modern implementation of fake timers, backed by <code>sinonjs/fake-timers</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/7776">#7776</a>)</li>
<li><code>[jest-runtime]</code> Add <code>createMockFromModule</code> as an alias for <code>genMockFromModule</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9962">#9962</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[babel-jest]</code> Handle <code>null</code> being passed to <code>createTransformer</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9955">#9955</a>)</li>
<li><code>[jest-circus, jest-console, jest-jasmine2, jest-reporters, jest-util, pretty-format]</code> Fix time durating formatting and consolidate time formatting code (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9765">#9765</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Fail tests if a test takes a done callback and have return values (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9129">#9129</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Throw a proper error if a test / hook is defined asynchronously (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8096">#8096</a>)</li>
<li><code>[jest-circus]</code> Throw more descriptive error if hook is defined inside test (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9957">#9957</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Align execution order of tests to match <code>jasmine</code>'s top to bottom order (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9965">#9965</a>)</li>
<li><code>[jest-config, jest-resolve]</code> [<strong>BREAKING</strong>] Remove support for <code>browser</code> field (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9943">#9943</a>)</li>
</ul>

</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/master/CHANGELOG.md">jest's changelog</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
<li><code>[docs]</code> Added parcel-bundler documentation inside readme.md file</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
<h2>26.0.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-circus]</code> Backward compatibility for deprecated <code>DescribeBlock.tests</code> to not break e.g. Detox reporter</li>
</ul>
<h2>26.0.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-environment-jsdom]</code> [<strong>BREAKING</strong>] Upgrade <code>jsdom</code> to v16 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9606">#9606</a>)</li>
<li><code>[jest/fake-timers]</code> Add possibility to use a modern implementation of fake timers, backed by <code>sinonjs/fake-timers</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/7776">#7776</a>)</li>
<li><code>[jest-runtime]</code> Add <code>createMockFromModule</code> as an alias for <code>genMockFromModule</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9962">#9962</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[babel-jest]</code> Handle <code>null</code> being passed to <code>createTransformer</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9955">#9955</a>)</li>
<li><code>[jest-circus, jest-console, jest-jasmine2, jest-reporters, jest-util, pretty-format]</code> Fix time durating formatting and consolidate time formatting code (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9765">#9765</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Fail tests if a test takes a done callback and have return values (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9129">#9129</a>)</li>
</ul>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="817d8b6aca"><code>817d8b6</code></a> v26.1.0</li>
<li><a href="30658c6fc0"><code>30658c6</code></a> chore: update changelog for release</li>
<li><a href="a1fa776965"><code>a1fa776</code></a> chore: quote globs in scripts (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10190">#10190</a>)</li>
<li><a href="17c3f14053"><code>17c3f14</code></a> chore: replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10136">#10136</a>)</li>
<li><a href="ee40194a67"><code>ee40194</code></a> Update ExpectAPI.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10141">#10141</a>)</li>
<li><a href="95b94e84cf"><code>95b94e8</code></a> feat(jest-mock): Export Mock, MockInstance, SpyInstance types (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10138">#10138</a>)</li>
<li><a href="504cacee18"><code>504cace</code></a> Improve Jest startup time and test runtime, particularly when running with co...</li>
<li><a href="4471bbbb2d"><code>4471bbb</code></a> Update GlobalAPI.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10157">#10157</a>)</li>
<li><a href="15576d3d37"><code>15576d3</code></a> Update links to Reactiflux (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10180">#10180</a>)</li>
<li><a href="852819abc0"><code>852819a</code></a> Update UsingMatchers.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10161">#10161</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/jest/compare/v24.9.0...v26.1.0">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~simenb">simenb</a>, a new releaser for jest since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jest&package-manager=npm_and_yarn&previous-version=24.9.0&new-version=26.1.0)](https://help.github.com/articles/configuring-automated-security-fixes)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1356

Reviewed By: mweststrate

Differential Revision: D22434670

Pulled By: passy

fbshipit-source-id: 3170e37b7f52045eb9c32ef48e2c24c81a5bfc59
2020-07-10 02:20:13 -07:00
dependabot[bot]
fdc5e5e503 Bump react-native-flipper from 0.47.0 to 0.49.0 in /react-native/ReactNativeFlipperExample (#1353)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.47.0 to 0.49.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="8000090eac"><code>8000090</code></a> Flipper Release: v0.49.0</li>
<li><a href="ba0a706bc8"><code>ba0a706</code></a> Small fixes</li>
<li><a href="ceb9c942dc"><code>ceb9c94</code></a> Back out &quot;Bump sha2 from 0.8.1 to 0.9.1 in /packer&quot;</li>
<li><a href="2f807880f4"><code>2f80788</code></a> Update dependabot.yml (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1299">https://github.com/facebook/flipper/issues/1299</a>)</li>
<li><a href="729549bc9f"><code>729549b</code></a> Set up GitHub test workflow for Packer (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1306">https://github.com/facebook/flipper/issues/1306</a>)</li>
<li><a href="39afce7ceb"><code>39afce7</code></a> Bump sha2 from 0.8.1 to 0.9.1 in /packer (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1304">https://github.com/facebook/flipper/issues/1304</a>)</li>
<li><a href="8ff1411f91"><code>8ff1411</code></a> Fix screen recording on Android 11</li>
<li><a href="dcd909779b"><code>dcd9097</code></a> Script to list all plugins included into Flipper desktop workspaces</li>
<li><a href="5d033204e8"><code>5d03320</code></a> Update dmg-release.yml (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1296">https://github.com/facebook/flipper/issues/1296</a>)</li>
<li><a href="b2e8070af2"><code>b2e8070</code></a> Fix relative links</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.47.0...v0.49.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-native-flipper&package-manager=npm_and_yarn&previous-version=0.47.0&new-version=0.49.0)](https://help.github.com/articles/configuring-automated-security-fixes)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1353

Reviewed By: mweststrate

Differential Revision: D22434657

Pulled By: passy

fbshipit-source-id: 3da4d3287df29558e0bf4bdf23ec84c42a9798f6
2020-07-10 02:17:40 -07:00
Pascal Hartig
2af309d476 Resolve security deps
Summary: Still got four warnings up for this on GitHub. Let's do the same we do in the rest of the repo.

Reviewed By: mweststrate

Differential Revision: D22233188

fbshipit-source-id: eb76409b1e5ff5735e354bdbd93f875d22f2add2
2020-06-25 07:12:20 -07:00
Pascal Hartig
03b231703b Update react-native dependency @allow-large-files
Summary:
This should fix https://github.com/facebook/flipper/issues/1274

I had some cleaning up to do to get to this point.

Changelog:
Fix `react-native-flipper` dependency pulling in debug-only artifacts into release builds.

Reviewed By: mweststrate

Differential Revision: D22160304

fbshipit-source-id: 0ebc0ed942427f2966bccd721bf01aafa38ba400
2020-06-23 07:49:01 -07:00
Michel Weststrate
8a7e0578ff Update to rc.5
Summary:
* Followed plan of D20221558
* Manually bumped Flipper version on iOS to 0.33.1, which contains https://github.com/facebook/flipper/pull/874/files (make Flipper compatible with iOS 9).
* Will submit a PR on RN to bump the iOS template

Reviewed By: passy

Differential Revision: D20361824

fbshipit-source-id: 4f013b731b40e2d4f941742f9201bf2bb4382ec3
2020-03-10 09:02:30 -07:00
Michel Weststrate
f3fd8646e3 Upgrade example app to 0.62.0-rc.3
Summary:
^

1. Remove entire `react-native/ReactNativeExampleFlipper` folder
2. Run `npx react-native init --version 0.62.0-rc.3 ReactNativeExampleFlipper`
4. restore the `package.json` and `TicTacToe` file and import
5. removed `.eslintrc`, `_BUCK` and `build_defz.bzl`, `.watchmenconfig`

Added comments below to highlight the non-generated changes

Reviewed By: passy

Differential Revision: D20221558

fbshipit-source-id: da1c895a2b0e7ce48092e64cdb5ffdb9e4a1a10b
2020-03-04 19:00:20 -08:00
Michel Weststrate
0fa0899299 Create React Native example project
Summary:
This diff creates a sample React Native project (based on the 0.62-rc.0 template).

This example is created like:
(Documenting this here as in the future this might be easier than upgrading the project itself)

1. Run `npx react-native init ReactNativeFlipperExample --version 0.62.0-rc.0`
2. Follow the installation steps to enable Flipper, that is, call `initializeFlipper(this, getReactNativeHost().getReactInstanceManager());` at the end of the `onCreate` method in `MainApplication.java`
3. Put `FlipperTicTacToe` in the root of the project, and call it from `App.js` as a component
4. install `react-native-flipper` as dependency
5. install `relative-deps` as dev dependency, and set it up as shown in `package.json`. This tool make sure that we build and test this project against the version of react-native-flipper in this repository, rather than against the one on NPM.
6. removed some stuff, like tests and linting, which is just in the way in this repo

This PR does not support iOS, as Flipper + RN iOS is still broken in 0.62.0-rc.0, and the current version of react-native-flipper doesn't support iOS yet either.

Documentation on how to set up Flipper in general is not part of this Diff

_N.B. since this is a **public** project, to be visible and runnable by our OSS community, the build setup is kept plain, vanilla, react-native, and **not** wired up to our normal / internal build processes. This is also the reason that lint suggestions beyond the license headers have been ignored. If any others should be applied, it is probably the official react native template that requires updating_

Reviewed By: passy

Differential Revision: D19449295

fbshipit-source-id: 2aeb6044f8dd01f09a95350c84fff2419d685a65
2020-01-23 04:47:52 -08:00