Files
flipper/flipper-js-client-sdk
dependabot[bot] bb87d8d597 Bump eslint-import-resolver-typescript from 2.3.0 to 2.4.0 in /flipper-js-client-sdk (#1949)
Summary:
Bumps [eslint-import-resolver-typescript](https://github.com/alexgorbatchev/eslint-import-resolver-typescript) from 2.3.0 to 2.4.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/alexgorbatchev/eslint-import-resolver-typescript/releases">eslint-import-resolver-typescript's releases</a>.</em></p>
<blockquote>
<h2>v2.4.0</h2>
<h2><a href="https://github.com/alexgorbatchev/eslint-import-resolver-typescript/compare/v2.3.0...v2.4.0">2.4.0</a> (2021-02-16)</h2>
<h3>Features</h3>
<ul>
<li>remove any querystring from imports (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/67">https://github.com/facebook/flipper/issues/67</a>) (<a href="82ef3573fa">82ef357</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>remove .tsbuildinfo and d.ts.map files from package (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/57">https://github.com/facebook/flipper/issues/57</a>) (<a href="15f2849c49">15f2849</a>)</li>
<li>remove redundant condition (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/69">https://github.com/facebook/flipper/issues/69</a>) (<a href="ba62e65e7c">ba62e65</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/alexgorbatchev/eslint-import-resolver-typescript/blob/master/CHANGELOG.md">eslint-import-resolver-typescript's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/alexgorbatchev/eslint-import-resolver-typescript/compare/v2.3.0...v2.4.0">2.4.0</a> (2021-02-16)</h2>
<h3>Features</h3>
<ul>
<li>remove any querystring from imports (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/67">https://github.com/facebook/flipper/issues/67</a>) (<a href="82ef3573fa">82ef357</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>remove .tsbuildinfo and d.ts.map files from package (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/57">https://github.com/facebook/flipper/issues/57</a>) (<a href="15f2849c49">15f2849</a>)</li>
<li>remove redundant condition (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/69">https://github.com/facebook/flipper/issues/69</a>) (<a href="ba62e65e7c">ba62e65</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9b34271d16"><code>9b34271</code></a> chore(release): 2.4.0</li>
<li><a href="ba62e65e7c"><code>ba62e65</code></a> fix: remove redundant condition (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/69">https://github.com/facebook/flipper/issues/69</a>)</li>
<li><a href="82ef3573fa"><code>82ef357</code></a> feat: remove any querystring from imports (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/67">https://github.com/facebook/flipper/issues/67</a>)</li>
<li><a href="2029caed4a"><code>2029cae</code></a> docs: clarify example in README (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/63">https://github.com/facebook/flipper/issues/63</a>)</li>
<li><a href="15f2849c49"><code>15f2849</code></a> fix: remove .tsbuildinfo and d.ts.map files from package (<a href="https://github-redirect.dependabot.com/alexgorbatchev/eslint-import-resolver-typescript/issues/57">https://github.com/facebook/flipper/issues/57</a>)</li>
<li>See full diff in <a href="https://github.com/alexgorbatchev/eslint-import-resolver-typescript/compare/v2.3.0...v2.4.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D26578209

Pulled By: passy

fbshipit-source-id: 2f6d318c84d856242e0c368930979fc8fb3622f3
2021-02-24 11:31:06 -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'})