Files
flipper/flipper-js-client-sdk
dependabot[bot] 200fa2dab5 Bump prettier from 2.1.2 to 2.2.0 in /flipper-js-client-sdk (#1699)
Summary:
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h1>2.2.0</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.1.2...2.2.0">diff</a></p>
<p>{emoji:1f517} <a href="https://prettier.io/blog/2020/11/20/2.2.0.html">Release Notes</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/master/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>2.2.0</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.1.2...2.2.0">diff</a></p>
<p>{emoji:1f517} <a href="https://prettier.io/blog/2020/11/20/2.2.0.html">Release Notes</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="42b2195e71"><code>42b2195</code></a> Release 2.2.0</li>
<li><a href="9bc90cfe7d"><code>9bc90cf</code></a> Update to typescript 4.1.2 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9725">#9725</a>)</li>
<li><a href="002dc6c45f"><code>002dc6c</code></a> Extract <code>printStatementSequence</code>, <code>printMemberExpression</code>, and <code>printBlock</code> (...</li>
<li><a href="92d31d1b30"><code>92d31d1</code></a> Extract <code>printAssignment</code>, <code>printBinaryishExpression</code>, and <code>printComment</code> (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9">https://github.com/facebook/flipper/issues/9</a>...</li>
<li><a href="05236cf64d"><code>05236cf</code></a> Extract printInterface and printCallExpression (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9715">#9715</a>)</li>
<li><a href="c03a38e8de"><code>c03a38e</code></a> Extract function related functions (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9721">#9721</a>)</li>
<li><a href="87dab58b3a"><code>87dab58</code></a> Extract printClass and printTypeParameters (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9713">#9713</a>)</li>
<li><a href="b12e869333"><code>b12e869</code></a> Extract JSX related print functions (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9714">#9714</a>)</li>
<li><a href="7acaa554e9"><code>7acaa55</code></a> Build(deps-dev): Bump rollup from 2.33.2 to 2.33.3 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9717">#9717</a>)</li>
<li><a href="ca9aac8997"><code>ca9aac8</code></a> Build(deps-dev): Bump webpack from 5.5.0 to 5.5.1 in /website (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/9716">#9716</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.1.2...2.2.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=2.1.2&new-version=2.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1699

Reviewed By: mweststrate

Differential Revision: D25170892

Pulled By: passy

fbshipit-source-id: bec87d63ccc658acda18f1eb2bff9f8cf3fda1b4
2020-11-27 04:28:13 -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'})