Files
flipper/flipper-js-client-sdk
dependabot[bot] cc0cbf21c2 Bump @typescript-eslint/eslint-plugin from 4.19.0 to 4.21.0 in /flipper-js-client-sdk (#2166)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.19.0 to 4.21.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/eslint-plugin</code>'s releases</a>.</em></p>
<blockquote>
<h2>v4.21.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.20.0...v4.21.0">4.21.0</a> (2021-04-05)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-type-alias] consider <code>keyof</code> as an alias (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3242">#3242</a>) (<a href="329ef02309">329ef02</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion] correct bad fix for angle bracket assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3244">#3244</a>) (<a href="265a039c7e">265a039</a>)</li>
<li><strong>eslint-plugin:</strong> [restrict-plus-operands] consider template literal types as strings (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3234">#3234</a>) (<a href="ccfd68e365">ccfd68e</a>)</li>
<li><strong>eslint-plugin:</strong> [strict-boolean-expressions] account for truthy literals (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3236">#3236</a>) (<a href="0913f40c87">0913f40</a>)</li>
<li><strong>eslint-plugin:</strong> always ignore assignments in no-unnecessary-type-assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3235">#3235</a>) (<a href="02214768a3">0221476</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unsafe-argument] add rule (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3256">#3256</a>) (<a href="b1aa7dc697">b1aa7dc</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/791">https://github.com/facebook/flipper/issues/791</a></li>
<li><strong>eslint-plugin:</strong> [no-unsafe-call][no-unsafe-member-access] improve report messages for <code>this</code> for <code>noImplicitThis</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3199">#3199</a>) (<a href="b1b26c4843">b1b26c4</a>)</li>
</ul>
<h2>v4.20.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.19.0...v4.20.0">4.20.0</a> (2021-03-29)</h1>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [space-infix-ops] support for class properties and type aliases (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3231">#3231</a>) (<a href="5414bf27a8">5414bf2</a>)</li>
<li><strong>eslint-plugin:</strong> [type-annotation-spacing] handle space between ? and : (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3138">#3138</a>) (<a href="40bdb0b27b">40bdb0b</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/eslint-plugin/CHANGELOG.md"><code>@​typescript-eslint/eslint-plugin</code>'s changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.20.0...v4.21.0">4.21.0</a> (2021-04-05)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-type-alias] consider <code>keyof</code> as an alias (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3242">#3242</a>) (<a href="329ef02309">329ef02</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-type-assertion] correct bad fix for angle bracket assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3244">#3244</a>) (<a href="265a039c7e">265a039</a>)</li>
<li><strong>eslint-plugin:</strong> [restrict-plus-operands] consider template literal types as strings (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3234">#3234</a>) (<a href="ccfd68e365">ccfd68e</a>)</li>
<li><strong>eslint-plugin:</strong> [strict-boolean-expressions] account for truthy literals (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3236">#3236</a>) (<a href="0913f40c87">0913f40</a>)</li>
<li><strong>eslint-plugin:</strong> always ignore assignments in no-unnecessary-type-assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3235">#3235</a>) (<a href="02214768a3">0221476</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-unsafe-argument] add rule (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3256">#3256</a>) (<a href="b1aa7dc697">b1aa7dc</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/791">https://github.com/facebook/flipper/issues/791</a></li>
<li><strong>eslint-plugin:</strong> [no-unsafe-call][no-unsafe-member-access] improve report messages for <code>this</code> for <code>noImplicitThis</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3199">#3199</a>) (<a href="b1b26c4843">b1b26c4</a>)</li>
</ul>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.19.0...v4.20.0">4.20.0</a> (2021-03-29)</h1>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [space-infix-ops] support for class properties and type aliases (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3231">#3231</a>) (<a href="5414bf27a8">5414bf2</a>)</li>
<li><strong>eslint-plugin:</strong> [type-annotation-spacing] handle space between ? and : (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3138">#3138</a>) (<a href="40bdb0b27b">40bdb0b</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3181b32d57"><code>3181b32</code></a> chore: publish v4.21.0</li>
<li><a href="ccfd68e365"><code>ccfd68e</code></a> fix(eslint-plugin): [restrict-plus-operands] consider template literal types ...</li>
<li><a href="0913f40c87"><code>0913f40</code></a> fix(eslint-plugin): [strict-boolean-expressions] account for truthy literals ...</li>
<li><a href="02214768a3"><code>0221476</code></a> fix(eslint-plugin): always ignore assignments in no-unnecessary-type-assertio...</li>
<li><a href="b1b26c4843"><code>b1b26c4</code></a> feat(eslint-plugin): [no-unsafe-call][no-unsafe-member-access] improve report...</li>
<li><a href="b1aa7dc697"><code>b1aa7dc</code></a> feat(eslint-plugin): [no-unsafe-argument] add rule (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3256">#3256</a>)</li>
<li><a href="62dfcc63f3"><code>62dfcc6</code></a> docs(eslint-plugin): [typedef] fix typo (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3243">#3243</a>)</li>
<li><a href="329ef02309"><code>329ef02</code></a> fix(eslint-plugin): [no-type-alias] consider <code>keyof</code> as an alias (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3242">#3242</a>)</li>
<li><a href="265a039c7e"><code>265a039</code></a> fix(eslint-plugin): [no-unnecessary-type-assertion] correct bad fix for angle...</li>
<li><a href="c16b42969e"><code>c16b429</code></a> chore: publish v4.20.0</li>
<li>Additional commits viewable in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.21.0/packages/eslint-plugin">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D27618347

Pulled By: passy

fbshipit-source-id: d5c454b1a4ffdb74856d40d0011123f590f7d34c
2021-04-07 13:58:34 -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'})