Files
flipper/flipper-js-client-sdk
dependabot[bot] 9bfcadc2ef Bump @typescript-eslint/eslint-plugin from 4.23.0 to 4.25.0 in /flipper-js-client-sdk (#2369)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.23.0 to 4.25.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.25.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.24.0...v4.25.0">4.25.0</a> (2021-05-24)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>corrected no-unsupported-browser-code in roadmap as unimplemented (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3407">#3407</a>) (<a href="2319b0e184">2319b0e</a>)</li>
<li><strong>experimental-utils:</strong> fix <code>isAwaitKeyword</code> predicate in ast-utils (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3290">#3290</a>) (<a href="c15da67b93">c15da67</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>typescript-estree:</strong> [TS4.3] support overrides on class members (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3429">#3429</a>) (<a href="21d1b62a0b">21d1b62</a>)</li>
<li><strong>typescript-estree:</strong> add support for getter/setter signatures on types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3427">#3427</a>) (<a href="b830b7f4e8">b830b7f</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3272">#3272</a> <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3272">#3272</a></li>
</ul>
<h2>v4.24.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0">4.24.0</a> (2021-05-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-shadow] fix static class method generics shadowing class generics (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3393">#3393</a>) (<a href="b1e1c8a446">b1e1c8a</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2592">#2592</a></li>
<li><strong>eslint-plugin:</strong> [no-unsafe-*] special case handling for the empty map constructor with no generics (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3394">#3394</a>) (<a href="cae4f4a0f3">cae4f4a</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2109">https://github.com/facebook/flipper/issues/2109</a></li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [dot-notation] optionally allow square bracket notation where an index signature exists in conjunction with <code>noPropertyAccessFromIndexSignature</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3361">#3361</a>) (<a href="37ec2c2264">37ec2c2</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.24.0...v4.25.0">4.25.0</a> (2021-05-24)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>corrected no-unsupported-browser-code in roadmap as unimplemented (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3407">#3407</a>) (<a href="2319b0e184">2319b0e</a>)</li>
</ul>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.23.0...v4.24.0">4.24.0</a> (2021-05-17)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-shadow] fix static class method generics shadowing class generics (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3393">#3393</a>) (<a href="b1e1c8a446">b1e1c8a</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2592">#2592</a></li>
<li><strong>eslint-plugin:</strong> [no-unsafe-*] special case handling for the empty map constructor with no generics (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3394">#3394</a>) (<a href="cae4f4a0f3">cae4f4a</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2109">https://github.com/facebook/flipper/issues/2109</a></li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> [dot-notation] optionally allow square bracket notation where an index signature exists in conjunction with <code>noPropertyAccessFromIndexSignature</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3361">#3361</a>) (<a href="37ec2c2264">37ec2c2</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c380f7da8b"><code>c380f7d</code></a> chore: publish v4.25.0</li>
<li><a href="4a20ee5f8b"><code>4a20ee5</code></a> chore: update typescript to 4.3-rc (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3426">#3426</a>)</li>
<li><a href="2319b0e184"><code>2319b0e</code></a> fix: corrected no-unsupported-browser-code in roadmap as unimplemented (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3407">#3407</a>)</li>
<li><a href="9c678593bf"><code>9c67859</code></a> docs: updated no-delete-expression roadmap equivalent to no-dynamic-delete (#...</li>
<li><a href="6291f38a9c"><code>6291f38</code></a> docs(eslint-plugin): [no-unnecessary-boolean-literal-compare] fix fixer docs ...</li>
<li><a href="e8ce2bfabd"><code>e8ce2bf</code></a> chore: publish v4.24.0</li>
<li><a href="cae4f4a0f3"><code>cae4f4a</code></a> fix(eslint-plugin): [no-unsafe-*] special case handling for the empty map con...</li>
<li><a href="37ec2c2264"><code>37ec2c2</code></a> feat(eslint-plugin): [dot-notation] optionally allow square bracket notation ...</li>
<li><a href="b1e1c8a446"><code>b1e1c8a</code></a> fix(eslint-plugin): [no-shadow] fix static class method generics shadowing cl...</li>
<li><a href="b85261c209"><code>b85261c</code></a> docs(eslint-plugin): update justification for <code>prefer-regexp-exec</code> (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3392">#3392</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.25.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.23.0&new-version=4.25.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/2369

Reviewed By: passy

Differential Revision: D28714457

Pulled By: nikoant

fbshipit-source-id: 8aeeecbec6cf207ab95b19870ccb16b566e5db0b
2021-05-27 04:01:11 -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'})