Files
flipper/flipper-js-client-sdk
dependabot[bot] 0cae7066b6 Bump @typescript-eslint/parser from 4.14.0 to 4.14.2 in /flipper-js-client-sdk (#1890)
Summary:
Bumps [typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.14.0 to 4.14.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>typescript-eslint/parser's releases</code></a>.</em></p>
<blockquote>
<h2>v4.14.2</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.1...v4.14.2">4.14.2</a> (2021-02-01)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [consistent-type-imports] incorrect handling of computed property type signatures (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2990">#2990</a>) (<a href="58f26555f6">58f2655</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2989">#2989</a></li>
<li><strong>scope-manager:</strong> correctly reference generic parameters when decorator metadata is enabled (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2975">#2975</a>) (<a href="7695ef318f">7695ef3</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2972">#2972</a></li>
</ul>
<h2>v4.14.1</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.0...v4.14.1">4.14.1</a> (2021-01-25)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [sort-type-union-intersection-members] consider <code>void</code> as a <code>nullish</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2944">#2944</a>) (<a href="a241b25863">a241b25</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2940">#2940</a></li>
<li><strong>scope-manager:</strong> fix incorrect handling of class decorators and class method default params (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2943">#2943</a>) (<a href="e1eac83122">e1eac83</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2941">#2941</a> <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2942">#2942</a> <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2751">#2751</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md"><code>typescript-eslint/parser's changelog</code></a>.</em></p>
<blockquote>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.1...v4.14.2">4.14.2</a> (2021-02-01)</h2>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/parser</p>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.0...v4.14.1">4.14.1</a> (2021-01-25)</h2>
<p><strong>Note:</strong> Version bump only for package typescript-eslint/parser</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="58476a9cd8"><code>58476a9</code></a> chore: publish v4.14.2</li>
<li><a href="957523c3c0"><code>957523c</code></a> chore: publish v4.14.1</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.2/packages/parser">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/parser&package-manager=npm_and_yarn&previous-version=4.14.0&new-version=4.14.2)](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/1890

Reviewed By: passy

Differential Revision: D26222319

Pulled By: nikoant

fbshipit-source-id: c1acab1dc89a094c20c2b186f2c91caa0d20681a
2021-02-03 03:21:31 -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'})