Files
flipper/flipper-js-client-sdk
dependabot[bot] 43d61eb076 Bump eslint from 7.25.0 to 7.26.0 in /flipper-js-client-sdk (#2286)
Summary:
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.26.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.26.0</h2>
<ul>
<li><a href="aaf65e629a"><code>aaf65e6</code></a> Upgrade: eslintrc for ModuleResolver fix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14577">#14577</a>) (Brandon Mills)</li>
<li><a href="ae6dbd148a"><code>ae6dbd1</code></a> Fix: track variables, not names in require-atomic-updates (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14208">#14208</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14282">#14282</a>) (Patrick Ahmetovic)</li>
<li><a href="6a86e5018a"><code>6a86e50</code></a> Chore: remove loose-parser tests (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14315">#14315</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14569">#14569</a>) (Milos Djermanovic)</li>
<li><a href="ee3a3ead89"><code>ee3a3ea</code></a> Fix: create <code>.eslintrc.cjs</code> for <code>module</code> type (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14304">#14304</a>) (Nitin Kumar)</li>
<li><a href="6791decfc5"><code>6791dec</code></a> Docs: fix example for require-atomic-updates (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14562">#14562</a>) (Milos Djermanovic)</li>
<li><a href="388eb7e140"><code>388eb7e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="f071d1ef91"><code>f071d1e</code></a> Update: Add automated suggestion to <code>radix</code> rule for parsing decimals (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14291">#14291</a>) (Bryan Mishkin)</li>
<li><a href="0b6a3f31e6"><code>0b6a3f3</code></a> New: Include XO style guide in <code>eslint --init</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14193">#14193</a>) (Federico Brigante)</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.26.0 - May 7, 2021</p>
<ul>
<li><a href="aaf65e629a"><code>aaf65e6</code></a> Upgrade: eslintrc for ModuleResolver fix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14577">#14577</a>) (Brandon Mills)</li>
<li><a href="ae6dbd148a"><code>ae6dbd1</code></a> Fix: track variables, not names in require-atomic-updates (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14208">#14208</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14282">#14282</a>) (Patrick Ahmetovic)</li>
<li><a href="6a86e5018a"><code>6a86e50</code></a> Chore: remove loose-parser tests (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14315">#14315</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14569">#14569</a>) (Milos Djermanovic)</li>
<li><a href="ee3a3ead89"><code>ee3a3ea</code></a> Fix: create <code>.eslintrc.cjs</code> for <code>module</code> type (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14304">#14304</a>) (Nitin Kumar)</li>
<li><a href="6791decfc5"><code>6791dec</code></a> Docs: fix example for require-atomic-updates (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14562">#14562</a>) (Milos Djermanovic)</li>
<li><a href="388eb7e140"><code>388eb7e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="f071d1ef91"><code>f071d1e</code></a> Update: Add automated suggestion to <code>radix</code> rule for parsing decimals (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14291">#14291</a>) (Bryan Mishkin)</li>
<li><a href="0b6a3f31e6"><code>0b6a3f3</code></a> New: Include XO style guide in <code>eslint --init</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14193">#14193</a>) (Federico Brigante)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6e9aad8053"><code>6e9aad8</code></a> 7.26.0</li>
<li><a href="53bf14d172"><code>53bf14d</code></a> Build: changelog update for 7.26.0</li>
<li><a href="aaf65e629a"><code>aaf65e6</code></a> Upgrade: eslintrc for ModuleResolver fix (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14577">#14577</a>)</li>
<li><a href="ae6dbd148a"><code>ae6dbd1</code></a> Fix: track variables, not names in require-atomic-updates (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14208">#14208</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14">https://github.com/facebook/flipper/issues/14</a>...</li>
<li><a href="6a86e5018a"><code>6a86e50</code></a> Chore: remove loose-parser tests (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14315">#14315</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14569">#14569</a>)</li>
<li><a href="ee3a3ead89"><code>ee3a3ea</code></a> Fix: create <code>.eslintrc.cjs</code> for <code>module</code> type (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14304">#14304</a>)</li>
<li><a href="6791decfc5"><code>6791dec</code></a> Docs: fix example for require-atomic-updates (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14562">#14562</a>)</li>
<li><a href="388eb7e140"><code>388eb7e</code></a> Sponsors: Sync README with website</li>
<li><a href="f071d1ef91"><code>f071d1e</code></a> Update: Add automated suggestion to <code>radix</code> rule for parsing decimals (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14291">#14291</a>)</li>
<li><a href="0b6a3f31e6"><code>0b6a3f3</code></a> New: Include XO style guide in <code>eslint --init</code> (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14193">#14193</a>)</li>
<li>See full diff in <a href="https://github.com/eslint/eslint/compare/v7.25.0...v7.26.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.25.0&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/2286

Reviewed By: mweststrate

Differential Revision: D28323751

Pulled By: cekkaewnumchai

fbshipit-source-id: b75d48f7bd158291ecfb28505a7a1c5abe37db5a
2021-05-11 02:50:14 -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'})