dependabot[bot] 1ec791ce36 Bump redux from 4.0.5 to 4.1.0 in /desktop (#2400)
Summary:
Bumps [redux](https://github.com/reduxjs/redux) from 4.0.5 to 4.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reduxjs/redux/releases">redux's releases</a>.</em></p>
<blockquote>
<h2>v4.1.0</h2>
<p>This release shrinks our bundle size via error message extraction, updates several error messages for clarity, and optimizes our list of runtime dependencies.</p>
<p>Overall, version 4.1 shrinks from 2.6K min+gz to 1.6K min+gz thanks to these changes.</p>
<p>Be sure to check out <a href="https://github.com/reduxjs/redux-toolkit/releases/tag/v1.6.0-alpha.1">the Redux Toolkit 1.6 alpha containing our new &quot;RTK Query&quot; data fetching APIs!</a> It also includes Redux 4.1 as a dependency.</p>
<h2>Changelog</h2>
<h3>Error Message Extraction and Improvements</h3>
<p>We now extract all of our error messages from production builds in order to save on bundle size, using <a href="https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html">a technique inspired from React's error code extraction</a>.  The error messages will still show as normal in development, but in production they will reference a specific numeric error code and provide a link to a Redux docs page that has the full error message.</p>
<p>An example of this is: <a href="https://redux.js.org/errors?code=5">https://redux.js.org/errors?code=5</a> , which shows the &quot;can't subscribe while reducers are executing&quot; error.</p>
<p>The error code extraction saves about 800 bytes out of a production build.</p>
<p>Thanks to <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a> for doing all the hard work on implementing the error extraction!</p>
<p>We've also updated many of our error messages to provide additional details at runtime about what happened, especially runtime type checks such as &quot;actions must be plain objects&quot;. They now provide a more specific type for the unexpected value, such as indicating <code>promise</code> or <code>function</code>:</p>
<pre lang="js"><code>    expect(() =&gt; store.dispatch(() =&gt; {})).toThrow(
      /the actual type was: 'function'/
    )
<pre><code>expect(() =&amp;gt; store.dispatch(new Date())).toThrow(
  /the actual type was: 'date'/
)
</code></pre>
<p></code></pre></p>
<h3>Dependency Updates</h3>
<p>We've updated the list of runtime dependencies for Redux:</p>
<ul>
<li>We inlined the <code>symbol-observable</code> polyfill. This shrinks bundle size by a few bytes,</li>
<li>We've removed the legacy <code>loose-envify</code> dependency, which was only ever needed by Browserify users. If you still happen to be using Browserify, please review your build settings and see if you need to make any updates.</li>
<li>We now explicitly depend on <code>babel/runtime</code> to extract some additional helpers out of our bundle. It's likely that your app already is pulling in those helpers anyway, so that removes some potential duplication.</li>
</ul>
<h3>Typing Tweaks</h3>
<p>We've merged fixes for a couple edge cases in the 4.x TS typings related to state types.</p>
<h2>Changes</h2>
<ul>
<li>Remove symbol-observable and loose-envify deps (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port error extraction setup from master  (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port build dependencies from master into 4.x (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4056">#4056</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Rewrite Redux core error messages (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4055">#4055</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>feat: mangle error codes to error indexes (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/3920">#3920</a> - <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="97a7798e83"><code>97a7798</code></a> 4.1.0</li>
<li><a href="32f368a2f1"><code>32f368a</code></a> 4.1.0-alpha.0</li>
<li><a href="9445d3ab3a"><code>9445d3a</code></a> Ignore Docusaurus output</li>
<li><a href="9a1d065ecf"><code>9a1d065</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> from reduxjs/feature/4x-remove-legacy-deps</li>
<li><a href="d29cbfaf57"><code>d29cbfa</code></a> Include ESM .mjs file in size comparisons</li>
<li><a href="fb5abcccc2"><code>fb5abcc</code></a> Formatting</li>
<li><a href="0d7d94d818"><code>0d7d94d</code></a> Inline the symbol-observable polyfill</li>
<li><a href="b882d9afee"><code>b882d9a</code></a> Remove symbol-observable and loose-envify deps</li>
<li><a href="f3680b5bf9"><code>f3680b5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> from reduxjs/feature/4x-error-messages</li>
<li><a href="3ce88ddbe7"><code>3ce88dd</code></a> Formatting</li>
<li>Additional commits viewable in <a href="https://github.com/reduxjs/redux/compare/v4.0.5...v4.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/~acemarke">acemarke</a>, a new releaser for redux since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=redux&package-manager=npm_and_yarn&previous-version=4.0.5&new-version=4.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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/2400

Reviewed By: nikoant

Differential Revision: D28795377

Pulled By: passy

fbshipit-source-id: 00c213c0ba6b1df5071f48734e136a40082ee0b1
2021-06-02 03:45:57 -07:00
2020-07-01 09:12:36 -07:00
2021-05-20 21:23:41 -07:00
2021-05-10 03:39:46 -07:00
2021-05-20 21:23:41 -07:00
2020-07-08 07:10:46 -07:00
2020-11-09 08:24:28 -08:00
2020-03-26 05:53:53 -07:00
2019-09-30 06:41:57 -07:00
2018-06-01 11:03:58 +01:00
2020-04-14 09:21:58 -07:00
2018-07-31 08:15:12 -07:00
2019-08-29 23:21:14 -07:00
2020-07-24 03:38:05 -07:00
2020-11-09 08:24:28 -08:00
2020-01-16 06:18:37 -08:00
2020-01-16 06:18:37 -08:00
2019-10-11 13:46:45 -07:00
2021-02-12 04:36:10 -08:00
2020-08-10 08:47:32 -07:00

logo

Flipper

Build Status Android Maven Badge iOS

Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android. Visualize, inspect, and control your apps from a simple desktop interface. Use Flipper as is or extend it using the plugin API.

Flipper

Table of Contents

Mobile development

Flipper aims to be your number one companion for mobile app development on iOS and Android. Therefore, we provide a bunch of useful tools, including a log viewer, interactive layout inspector, and network inspector.

Extending Flipper

Flipper is built as a platform. In addition to using the tools already included, you can create your own plugins to visualize and debug data from your mobile apps. Flipper takes care of sending data back and forth, calling functions, and listening for events on the mobile app.

Contributing to Flipper

Both Flipper's desktop app and native mobile SDKs are open-source and MIT licensed. This enables you to see and understand how we are building plugins, and of course, join the community and help to improve Flipper. We are excited to see what you will build on this platform.

In this repo

This repository includes all parts of Flipper. This includes:

  • Flipper's desktop app built using Electron (/desktop)
  • native Flipper SDKs for iOS (/iOS)
  • native Flipper SDKs for Android (/android)
  • Plugins:
    • Logs (/desktop/src/device-plugins/logs)
    • Layout inspector (/desktop/plugins/layout)
    • Network inspector (/desktop/plugins/network)
    • Shared Preferences/NSUserDefaults inspector (/desktop/plugins/shared_preferences)
  • website and documentation (/website / /docs)

Getting started

Please refer to our Getting Started guide to set up Flipper.

Requirements

  • node >= 8
  • yarn >= 1.5
  • iOS developer tools (for developing iOS plugins)
  • Android SDK and adb

Building from Source

Desktop

Running from source

git clone https://github.com/facebook/flipper.git
cd flipper/desktop
yarn
yarn start

NOTE: If you're on Windows, you need to use Yarn 1.5.1 until this issue is resolved.

Building standalone application

Provide either --mac, --win, --linux or any combination of them to yarn build to build a release zip file for the given platform(s). E.g.

yarn build --mac --version $buildNumber

You can find the resulting artifact in the dist/ folder.

iOS SDK + Sample App

cd iOS/Sample
rm -f Podfile.lock
pod install --repo-update
open Sample.xcworkspace
<Run app from xcode>

You can omit --repo-update to speed up the installation, but watch out as you may be building against outdated dependencies.

Android SDK + Sample app

Start up an android emulator and run the following in the project root:

./gradlew :sample:installDebug

React Native SDK + Sample app

cd react-native/ReactNativeFlipperExample
yarn
yarn android

Note that the first 2 steps need to be done only once.

Alternatively, the app can be started on iOS by running yarn ios.

Troubleshooting

Older yarn versions might show an error / hang with the message 'Waiting for the other yarn instance to finish'. If that happens, run the command yarn first separately in the directory react-native/react-native-flipper.

Documentation

Find the full documentation for this project at fbflipper.com.

Our documentation is built with Docusaurus. You can build it locally by running this:

cd website
yarn
yarn start

Contributing

See the CONTRIBUTING file for how to help out.

License

Flipper is MIT licensed, as found in the LICENSE file.

Description
No description provided
Readme 106 MiB
Languages
TypeScript 61.2%
Java 9.9%
Objective-C 7%
Kotlin 5.8%
C++ 4.8%
Other 11.2%