Files
flipper/flipper-js-client-sdk
dependabot[bot] f770cd3b69 Bump eslint-plugin-react from 7.22.0 to 7.23.1 in /flipper-js-client-sdk (#2121)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.22.0 to 7.23.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md">eslint-plugin-react's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.23.0...v7.23.1">7.23.1</a> - 2021.03.23</h2>
<h3>Fixed</h3>
<ul>
<li>version detection: support processor virtual filename (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2949">#2949</a>[] <a href="https://github.com/JounQin"><code>@​JounQin</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2949">#2949</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2949">yannickcr/eslint-plugin-react#2949</a></p>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.22.0...v7.23.0">7.23.0</a> - 2021.03.22</h2>
<h3>Added</h3>
<ul>
<li>[<code>jsx-no-target-blank</code>]: add fixer (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2862">#2862</a>[] <a href="https://github.com/Nokel81"><code>@​Nokel81</code></a>)</li>
<li>[<code>jsx-pascal-case</code>]: support minimatch <code>ignore</code> option (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2906">#2906</a>[] <a href="https://github.com/bcherny"><code>@​bcherny</code></a>)</li>
<li>[<code>jsx-pascal-case</code>]: support <code>allowNamespace</code> option (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2917">#2917</a>[] <a href="https://github.com/kev-y-huang"><code>@​kev-y-huang</code></a>)</li>
<li>[<code>jsx-newline</code>]: Add prevent option (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2935">#2935</a>[] <a href="https://github.com/jsphstls"><code>@​jsphstls</code></a>)</li>
<li>[<code>no-unstable-nested-components</code>]: Prevent creating unstable components inside components (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2750">#2750</a>[] <a href="https://github.com/AriPerkkio"><code>@​AriPerkkio</code></a>)</li>
<li>added <code>jsx-runtime</code> config, for the modern JSX runtime transform (<a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>jsx-no-constructed-context-values</code>]: avoid a crash with <code>as X</code> TS code (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2894">#2894</a>[] <a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
<li>[<code>jsx-no-constructed-context-values</code>]: avoid a crash with boolean shorthand (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2895">#2895</a>[] <a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
<li>[<code>static-property-placement</code>]: do not report non-components (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2893">#2893</a>[] <a href="https://github.com/golopot"><code>@​golopot</code></a>)</li>
<li>[<code>no-array-index-key</code>]: support optional chaining (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2897">#2897</a>[] <a href="https://github.com/SyMind"><code>@​SyMind</code></a>)</li>
<li>[<code>no-typos</code>]: avoid a crash on bindingless <code>prop-types</code> import; add warning (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2899">#2899</a>[] <a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
<li>[<code>jsx-curly-brace-presence</code>]: ignore containers with comments (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2900">#2900</a>[] <a href="https://github.com/golopot"><code>@​golopot</code></a>)</li>
<li>[<code>destructuring-assignment</code>]: fix a false positive for local prop named <code>context</code> in SFC (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2929">#2929</a>[] <a href="https://github.com/SyMind"><code>@​SyMind</code></a>)</li>
<li>[<code>jsx-no-target-blank</code>]: Allow rel=&quot;noreferrer&quot; when <code>allowReferrer</code> is true (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2925">#2925</a>[] <a href="https://github.com/edemaine"><code>@​edemaine</code></a>)</li>
<li>[<code>boolean-prop-naming</code>]: add check for typescript &quot;boolean&quot; type (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2930">#2930</a>[] <a href="https://github.com/vedadeepta"><code>@​vedadeepta</code></a>)</li>
<li>version detection: Add tests that verify versioning works for sibling and child projects (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2943">#2943</a>[] <a href="https://github.com/jcrosetto"><code>@​jcrosetto</code></a>)</li>
<li>[<code>jsx-curly-newline</code>]: Update error messages (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2933">#2933</a>[] <a href="https://github.com/jbrower2"><code>@​jbrower2</code></a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[Docs] [<code>jsx-no-constructed-context-values</code>][]: fix invalid example syntax (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2910">#2910</a>[] <a href="https://github.com/kud"><code>@​kud</code></a>)</li>
<li>[readme] Replace lists of rules with tables in readme (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2908">#2908</a>[] <a href="https://github.com/motato1"><code>@​motato1</code></a>)</li>
<li>[Docs] added missing curly braces (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2923">#2923</a>[] <a href="https://github.com/Muditxofficial"><code>@​Muditxofficial</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2943">#2943</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2943">yannickcr/eslint-plugin-react#2943</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2935">#2935</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2935">yannickcr/eslint-plugin-react#2935</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2933">#2933</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2933">yannickcr/eslint-plugin-react#2933</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2930">#2930</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2930">yannickcr/eslint-plugin-react#2930</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2929">#2929</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2929">yannickcr/eslint-plugin-react#2929</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2925">#2925</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2925">yannickcr/eslint-plugin-react#2925</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2923">#2923</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2923">yannickcr/eslint-plugin-react#2923</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2917">#2917</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2917">yannickcr/eslint-plugin-react#2917</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2910">#2910</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2910">yannickcr/eslint-plugin-react#2910</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2908">#2908</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2908">yannickcr/eslint-plugin-react#2908</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2906">#2906</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2906">yannickcr/eslint-plugin-react#2906</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2900">#2900</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2900">yannickcr/eslint-plugin-react#2900</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2899">#2899</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2899">yannickcr/eslint-plugin-react#2899</a></p>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="307458fad8"><code>307458f</code></a> Update CHANGELOG and bump version</li>
<li><a href="886ae07ad6"><code>886ae07</code></a> [Dev Deps] update <code>types/estree</code></li>
<li><a href="bc372203bb"><code>bc37220</code></a> [Fix] version detection: support processor virtual filename</li>
<li><a href="3d7fd57914"><code>3d7fd57</code></a> Update CHANGELOG and bump version</li>
<li><a href="c8917b0885"><code>c8917b0</code></a> [New] added <code>jsx-runtime</code> config, for the modern JSX runtime transform</li>
<li><a href="7b35ee7204"><code>7b35ee7</code></a> [New] <code>no-unstable-nested-components</code>: Prevent creating unstable components i...</li>
<li><a href="4dda913dfa"><code>4dda913</code></a> [Tests] <code>jsx-max-depth</code>: add test case</li>
<li><a href="525af5ffbe"><code>525af5f</code></a> [Fix] <code>jsx-curly-newline</code>: Update error messages</li>
<li><a href="a68607966b"><code>a686079</code></a> [New] <code>jsx-newline</code>: Add prevent option</li>
<li><a href="bf8dff03d3"><code>bf8dff0</code></a> [Dev Deps] update <code>types/eslint</code>, <code>types/estree</code>, <code>types/node</code></li>
<li>Additional commits viewable in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.22.0...v7.23.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-react&package-manager=npm_and_yarn&previous-version=7.22.0&new-version=7.23.1)](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/2121

Reviewed By: passy

Differential Revision: D27396048

Pulled By: mweststrate

fbshipit-source-id: e85de936048f56d2931ee6b952cee8621b43a528
2021-03-29 10:49:17 -07:00
..
2020-11-09 08:24:28 -08:00
2020-06-11 08:45:35 -07:00
2020-06-11 08:45:35 -07:00

flipper-sdk-api

SDK to build Flipper clients for JS based apps

Installation

yarn add flipper-client-sdk

Usage

Example

class SeaMammalPlugin extends AbsctractFlipperPlugin {
  getId(): string {
    return 'sea-mammals';
  }

  runInBackground(): boolean {
    return true;
  }

  newRow(row: {id: string, url: string, title: string}) {
    this.connection?.send("newRow", row)
  }
}

const flipperClient = newWebviewClient();
cosnt plugin = new SeaMammalPlugin();
flipperClient.addPlugin();
flipperClient.start('Example JS App');
plugin.newRow({id: '1', title: 'Dolphin', url: 'example.com'})