Files
flipper/flipper-js-client-sdk
dependabot[bot] 65a7bc9e4d Bump @typescript-eslint/parser from 4.27.0 to 4.28.1 in /flipper-js-client-sdk (#2538)
Summary:
Bumps [typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.27.0 to 4.28.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v4.28.1</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.28.0...v4.28.1">4.28.1</a> (2021-06-28)</h2>
<p><strong>Note:</strong> Version bump only for package <code>@​typescript-eslint/typescript-eslint</code></p>
<h2>v4.28.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.27.0...v4.28.0">4.28.0</a> (2021-06-21)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [prefer-regexp-exec] factor in union types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3434">#3434</a>) (<a href="ac86a79bd4">ac86a79</a>)</li>
<li><strong>experimental-utils:</strong> expand <code>RuleTester</code> config properties (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3557">#3557</a>) (<a href="ffbb3cff18">ffbb3cf</a>)</li>
<li><strong>experimental-utils:</strong> fix <code>eslint-utils</code>' negative predicates' return types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3462">#3462</a>) (<a href="1e6016b356">1e6016b</a>)</li>
<li><strong>experimental-utils:</strong> fix <code>eslint-utils</code>' negative predicates' return types in <code>ast-utils</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3461">#3461</a>) (<a href="614b0a38b4">614b0a3</a>)</li>
<li><strong>experimental-utils:</strong> make keys for <code>ReferenceTracker</code> options optional (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3531">#3531</a>) (<a href="a7fd7bb255">a7fd7bb</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>experimental-utils:</strong> add <code>only</code> property to <code>RuleTester</code> types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3555">#3555</a>) (<a href="2a36e3e737">2a36e3e</a>)</li>
<li><strong>experimental-utils:</strong> expose ReferenceTracker.ESM (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3532">#3532</a>) (<a href="4ac67c4c94">4ac67c4</a>)</li>
<li><strong>experimental-utils:</strong> use mergable interface for <code>settings</code> property (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3556">#3556</a>) (<a href="abfc19bf93">abfc19b</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</code>'s changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.28.0...v4.28.1">4.28.1</a> (2021-06-28)</h2>
<p><strong>Note:</strong> Version bump only for package <code>@​typescript-eslint/parser</code></p>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.27.0...v4.28.0">4.28.0</a> (2021-06-21)</h1>
<p><strong>Note:</strong> Version bump only for package <code>@​typescript-eslint/parser</code></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f2c078cb17"><code>f2c078c</code></a> chore: publish v4.28.1</li>
<li><a href="8cfe93372e"><code>8cfe933</code></a> chore: publish v4.28.0</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.1/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.27.0&new-version=4.28.1)](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/2538

Reviewed By: priteshrnandgaonkar

Differential Revision: D29489926

Pulled By: passy

fbshipit-source-id: ca83c41a20abe9666e619f2cc152b1e944b36465
2021-06-30 10:00:13 -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'})