Files
flipper/flipper-js-client-sdk
dependabot[bot] 6431eeb22a Bump eslint-plugin-react from 7.25.1 to 7.26.0 in /flipper-js-client-sdk (#2909)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.1 to 7.26.0.
<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.3...v7.26.0">7.26.0</a> - 2021.09.20</h2>
<h3>Added</h3>
<ul>
<li>add [<code>no-namespace</code>] rule (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2640">https://github.com/facebook/flipper/issues/2640</a> <a href="https://github.com/yacinehmito"><code>@​yacinehmito</code></a> <a href="https://github.com/ljharb"><code>@​ljharb</code></a>)</li>
<li>[<code>jsx-max-props-per-line</code>]: add <code>single</code> and <code>multi</code> options (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3078">#3078</a> <a href="https://github.com/SIL0RAK"><code>@​SIL0RAK</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>display-name</code>]: Get rid of false position on component detection (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2759">https://github.com/facebook/flipper/issues/2759</a> <a href="https://github.com/iiison"><code>@​iiison</code></a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[<code>no-access-state-in-setstate</code>]: passing test for “don't error if it's not a React Component” (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/1873">https://github.com/facebook/flipper/issues/1873</a> <a href="https://github.com/kentcdodds"><code>@​kentcdodds</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3078">#3078</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3078">yannickcr/eslint-plugin-react#3078</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2640">https://github.com/facebook/flipper/issues/2640</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2640">yannickcr/eslint-plugin-react#2640</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2759">https://github.com/facebook/flipper/issues/2759</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2759">yannickcr/eslint-plugin-react#2759</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/1873">https://github.com/facebook/flipper/issues/1873</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/1873">yannickcr/eslint-plugin-react#1873</a></p>
<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="8cf47a8ac2"><code>8cf47a8</code></a> Update CHANGELOG and bump version</li>
<li><a href="e4acd07cd4"><code>e4acd07</code></a> [Dev Deps] update <code>types/estree</code>, <code>types/node</code>, <code>eslint-plugin-eslint-plugin</code></li>
<li><a href="83eb22651c"><code>83eb226</code></a> [New] <code>jsx-max-props-per-line</code>: add <code>single</code> and <code>multi</code> options</li>
<li><a href="95a8a4eb53"><code>95a8a4e</code></a> [Dev Deps] update <code>eslint-remote-tester</code></li>
<li><a href="df939e39ec"><code>df939e3</code></a> [Tests] <code>no-access-state-in-setstate</code>: passing test for “don't error if it's ...</li>
<li><a href="f4d43147b1"><code>f4d4314</code></a> [Refactor] <code>no-unstable-nested-components</code>: use <code>isCreateElement</code> util (f25a8...</li>
<li><a href="ddff23792d"><code>ddff237</code></a> [Refactor] <code>no-danger</code>: use Object.fromEntries and Object.hasOwn instead of r...</li>
<li><a href="d51bc61f42"><code>d51bc61</code></a> [Fix] restore eslint &lt; 4.15 compatibility</li>
<li><a href="9799131b0a"><code>9799131</code></a> [Fix] <code>display-name</code>: Get rid of false position on component detection</li>
<li><a href="53a0d84914"><code>53a0d84</code></a> [New] add <code>no-namespace</code> rule</li>
<li>Additional commits viewable in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.1...v7.26.0">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.26.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/2909

Reviewed By: timur-valiev

Differential Revision: D31240124

Pulled By: passy

fbshipit-source-id: 64704855221d1286e3cd83c6b81e381f5ca05942
2021-10-01 03:37:28 -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'})