Files
flipper/flipper-js-client-sdk
dependabot[bot] c6b7aeb9e4 Bump eslint-plugin-react from 7.25.1 to 7.25.3 in /flipper-js-client-sdk (#2878)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.1 to 7.25.3.
<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.25.2...v7.25.3">7.25.3</a> - 2021.09.19</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>prop-types</code>], <code>propTypes</code>: bail out unknown generic types inside func params (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3076">#3076</a> <a href="https://github.com/vedadeepta"><code>@​vedadeepta</code></a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[readme] Update broken link for configuration files (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3071">#3071</a> <a href="https://github.com/prateek3255"><code>@​prateek3255</code></a>)</li>
<li>[Refactor] create/extract <code>isCreateElement</code> and <code>isDestructuredFromPragmaImport</code> utils (<a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3076">#3076</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3076">yannickcr/eslint-plugin-react#3076</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3071">#3071</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3071">yannickcr/eslint-plugin-react#3071</a></p>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.1...v7.25.2">7.25.2</a> - 2021.09.16</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>jsx-no-useless-fragments</code>]: Handle insignificant whitespace correctly when <code>allowExpressions</code> is <code>true</code> (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3061">#3061</a>[] <a href="https://github.com/benj-dobs"><code>@​benj-dobs</code></a>)</li>
<li>[<code>prop-types</code>], <code>propTypes</code>: handle implicit <code>children</code> prop in react's generic types (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3064">#3064</a>[] <a href="https://github.com/vedadeepta"><code>@​vedadeepta</code></a>)</li>
<li>[<code>display-name</code>]: fix arrow function returning result of function call with JSX arguments being interpreted as component (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3065">#3065</a>[] <a href="https://github.com/danielfinke"><code>@​danielfinke</code></a>)</li>
<li>[<code>jsx-no-target-blank</code>]: avoid crash on attr-only href (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3066">#3066</a>[] <a href="https://github.com/ljharb"><code>@​ljharb</code></a> <a href="https://github.com/gaz77a"><code>@​gaz77a</code></a>)</li>
<li>[<code>jsx-uses-vars</code>]: ignore lowercase tag names (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3070">#3070</a>[] <a href="https://github.com/alanorozco"><code>@​alanorozco</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3070">#3070</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3070">yannickcr/eslint-plugin-react#3070</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3066">#3066</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issue/3066">yannickcr/eslint-plugin-react#3066</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3065">#3065</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3065">yannickcr/eslint-plugin-react#3065</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3064">#3064</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3064">yannickcr/eslint-plugin-react#3064</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3061">#3061</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3061">yannickcr/eslint-plugin-react#3061</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="76fdffe137"><code>76fdffe</code></a> Update CHANGELOG and bump version</li>
<li><a href="0c0387f1a0"><code>0c0387f</code></a> [Deps] use <code>object.hasown</code> instead of <code>has</code></li>
<li><a href="227e9678e9"><code>227e967</code></a> [Fix] <code>prop-types</code>, <code>propTypes</code>: bail out unknown generic types inside func p...</li>
<li><a href="bd270fc700"><code>bd270fc</code></a> [readme] Update broken link for configuration files</li>
<li><a href="f4854ea731"><code>f4854ea</code></a> Update CHANGELOG and bump version</li>
<li><a href="9c1aee5eab"><code>9c1aee5</code></a> [Dev Deps] update <code>eslint-remote-tester-repositories</code></li>
<li><a href="5340e9dfc6"><code>5340e9d</code></a> [Fix] <code>jsx-uses-vars</code>: ignore lowercase tag names</li>
<li><a href="577cb64fb6"><code>577cb64</code></a> [actions] remove unnecessary setup-node</li>
<li><a href="c1c284fc79"><code>c1c284f</code></a> [Fix] <code>require-default-props</code>: avoid crash from <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3064">#3064</a></li>
<li><a href="230ffe1a18"><code>230ffe1</code></a> [Fix] <code>prefer-read-only-props</code>: avoid crash from <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3064">#3064</a></li>
<li>Additional commits viewable in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.1...v7.25.3">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.25.1&new-version=7.25.3)](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/2878

Reviewed By: mweststrate

Differential Revision: D31203921

Pulled By: passy

fbshipit-source-id: 4f933e4e0c00fbb1d2b7befb7c1a2062ff8686ed
2021-09-27 06:31:53 -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'})