Files
flipper/flipper-js-client-sdk
dependabot[bot] ce4478aa04 Bump eslint from 7.20.0 to 7.21.0 in /flipper-js-client-sdk (#1976)
Summary:
Bumps [eslint](https://github.com/eslint/eslint) from 7.20.0 to 7.21.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/releases">eslint's releases</a>.</em></p>
<blockquote>
<h2>v7.21.0</h2>
<ul>
<li><a href="3cd5440b94"><code>3cd5440</code></a> Upgrade: eslint/eslintrc to 0.4.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14147">#14147</a>) (Brandon Mills)</li>
<li><a href="c0b8c71df4"><code>c0b8c71</code></a> Upgrade: Puppeteer to 7.1.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14122">#14122</a>) (Tim van der Lippe)</li>
<li><a href="08ae31e539"><code>08ae31e</code></a> New: Implement cacheStrategy (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/63">eslint/rfcs#63</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14119">#14119</a>) (Manu Chambon)</li>
<li><a href="5e51fd28dc"><code>5e51fd2</code></a> Update: do not ignore symbolic links (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13551">#13551</a>, fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13615">#13615</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14126">#14126</a>) (Pig Fang)</li>
<li><a href="87c43a5d7e"><code>87c43a5</code></a> Chore: improve a few comments and fix typos (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14125">#14125</a>) (Tobias Nießen)</li>
<li><a href="e19c51ea2e"><code>e19c51e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="b8aea9988b"><code>b8aea99</code></a> Fix: pluralize 'line' to 'lines' in max-lines-per-function description (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14115">#14115</a>) (Trevin Hofmann)</li>
<li><a href="f5b53e285a"><code>f5b53e2</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="eee12134ce"><code>eee1213</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="5c4d7ea8d2"><code>5c4d7ea</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/blob/master/CHANGELOG.md">eslint's changelog</a>.</em></p>
<blockquote>
<p>v7.21.0 - February 27, 2021</p>
<ul>
<li><a href="3cd5440b94"><code>3cd5440</code></a> Upgrade: eslint/eslintrc to 0.4.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14147">#14147</a>) (Brandon Mills)</li>
<li><a href="c0b8c71df4"><code>c0b8c71</code></a> Upgrade: Puppeteer to 7.1.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14122">#14122</a>) (Tim van der Lippe)</li>
<li><a href="08ae31e539"><code>08ae31e</code></a> New: Implement cacheStrategy (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/63">eslint/rfcs#63</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14119">#14119</a>) (Manu Chambon)</li>
<li><a href="5e51fd28dc"><code>5e51fd2</code></a> Update: do not ignore symbolic links (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13551">#13551</a>, fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13615">#13615</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14126">#14126</a>) (Pig Fang)</li>
<li><a href="87c43a5d7e"><code>87c43a5</code></a> Chore: improve a few comments and fix typos (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14125">#14125</a>) (Tobias Nießen)</li>
<li><a href="e19c51ea2e"><code>e19c51e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="b8aea9988b"><code>b8aea99</code></a> Fix: pluralize 'line' to 'lines' in max-lines-per-function description (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14115">#14115</a>) (Trevin Hofmann)</li>
<li><a href="f5b53e285a"><code>f5b53e2</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="eee12134ce"><code>eee1213</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="5c4d7ea8d2"><code>5c4d7ea</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d12fb74f40"><code>d12fb74</code></a> 7.21.0</li>
<li><a href="7814cd34ad"><code>7814cd3</code></a> Build: changelog update for 7.21.0</li>
<li><a href="3cd5440b94"><code>3cd5440</code></a> Upgrade: eslint/eslintrc to 0.4.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14147">#14147</a>)</li>
<li><a href="c0b8c71df4"><code>c0b8c71</code></a> Upgrade: Puppeteer to 7.1.0 (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14122">#14122</a>)</li>
<li><a href="08ae31e539"><code>08ae31e</code></a> New: Implement cacheStrategy (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/63">eslint/rfcs#63</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14119">#14119</a>)</li>
<li><a href="5e51fd28dc"><code>5e51fd2</code></a> Update: do not ignore symbolic links (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13551">#13551</a>, fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13615">#13615</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14126">#14126</a>)</li>
<li><a href="87c43a5d7e"><code>87c43a5</code></a> Chore: improve a few comments and fix typos (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14125">#14125</a>)</li>
<li><a href="e19c51ea2e"><code>e19c51e</code></a> Sponsors: Sync README with website</li>
<li><a href="b8aea9988b"><code>b8aea99</code></a> Fix: pluralize 'line' to 'lines' in max-lines-per-function description (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14115">#14115</a>)</li>
<li><a href="f5b53e285a"><code>f5b53e2</code></a> Sponsors: Sync README with website</li>
<li>Additional commits viewable in <a href="https://github.com/eslint/eslint/compare/v7.20.0...v7.21.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: priteshrnandgaonkar

Differential Revision: D26723652

Pulled By: mweststrate

fbshipit-source-id: 3f280e4783c55122d0fec2023007120e5ef9e8ef
2021-03-01 08:03:07 -08: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'})