Files
flipper/flipper-js-client-sdk
dependabot[bot] 561bf12518 Bump eslint-plugin-prettier from 3.1.4 to 3.2.0 in /flipper-js-client-sdk (#1744)
Summary:
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.4 to 3.2.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md">eslint-plugin-prettier's changelog</a>.</em></p>
<blockquote>
<h2>v3.2.0 (2020-12-03)</h2>
<ul>
<li>Skip CI for eslint 6 + node 8 (<a href="https://github.com/prettier/eslint-plugin-prettier/blob/master/git@github.com:prettier/eslint-plugin-prettier/issues/364">https://github.com/facebook/flipper/issues/364</a>) (<a href="f8f08e4835">f8f08e4</a>)</li>
<li>Turn off problematic rules in recommended config (prepare for next eslint-config-prettier version) (<a href="https://github.com/prettier/eslint-plugin-prettier/blob/master/git@github.com:prettier/eslint-plugin-prettier/issues/360">https://github.com/facebook/flipper/issues/360</a>) (<a href="a1e5591120">a1e5591</a>)</li>
<li>Create dependabot.yml (<a href="f58b6c7c35">f58b6c7</a>)</li>
<li>docs(README): fix prettier getFileInfo link (<a href="https://github.com/prettier/eslint-plugin-prettier/blob/master/git@github.com:prettier/eslint-plugin-prettier/issues/335">https://github.com/facebook/flipper/issues/335</a>) (<a href="5a690f14d7">5a690f1</a>)</li>
<li>build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.2 to 2.3.0 (<a href="8614c458ed">8614c45</a>)</li>
<li>build(deps-dev): bump eslint from 7.3.0 to 7.3.1 (<a href="12d9ed877a">12d9ed8</a>)</li>
<li>build(deps-dev): bump eslint from 7.2.0 to 7.3.0 (<a href="5a6f42e4ed">5a6f42e</a>)</li>
<li>chore: update CI badge in readme (<a href="5012b665f9">5012b66</a>)</li>
<li>Use Github Actions for CI (<a href="https://github.com/prettier/eslint-plugin-prettier/blob/master/git@github.com:prettier/eslint-plugin-prettier/issues/305">#305</a>) (<a href="41eb64fda3">41eb64f</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="bd0ac3bcbf"><code>bd0ac3b</code></a> Build: update package.json and changelog for v3.2.0</li>
<li><a href="f8f08e4835"><code>f8f08e4</code></a> Skip CI for eslint 6 + node 8 (<a href="https://github-redirect.dependabot.com/prettier/eslint-plugin-prettier/issues/364">https://github.com/facebook/flipper/issues/364</a>)</li>
<li><a href="a1e5591120"><code>a1e5591</code></a> Turn off problematic rules in recommended config (prepare for next eslint-con...</li>
<li><a href="f58b6c7c35"><code>f58b6c7</code></a> Create dependabot.yml</li>
<li><a href="5a690f14d7"><code>5a690f1</code></a> docs(README): fix prettier getFileInfo link (<a href="https://github-redirect.dependabot.com/prettier/eslint-plugin-prettier/issues/335">https://github.com/facebook/flipper/issues/335</a>)</li>
<li><a href="8614c458ed"><code>8614c45</code></a> build(deps-dev): bump eslint-plugin-eslint-plugin from 2.2.2 to 2.3.0</li>
<li><a href="12d9ed877a"><code>12d9ed8</code></a> build(deps-dev): bump eslint from 7.3.0 to 7.3.1</li>
<li><a href="5a6f42e4ed"><code>5a6f42e</code></a> build(deps-dev): bump eslint from 7.2.0 to 7.3.0</li>
<li><a href="5012b665f9"><code>5012b66</code></a> chore: update CI badge in readme</li>
<li><a href="41eb64fda3"><code>41eb64f</code></a> Use Github Actions for CI (<a href="https://github-redirect.dependabot.com/prettier/eslint-plugin-prettier/issues/305">#305</a>)</li>
<li>See full diff in <a href="https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.4...v3.2.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: nikoant

Differential Revision: D25461684

Pulled By: mweststrate

fbshipit-source-id: 093c15908015e361499d3242a0850144f20d4c3a
2020-12-10 08:55:54 -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'})