Files
flipper/flipper-js-client-sdk
dependabot[bot] 1ca3d5e3f9 Bump @typescript-eslint/eslint-plugin from 4.14.2 to 4.15.0 in /flipper-js-client-sdk (#1930)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.14.2 to 4.15.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's releases</code></a>.</em></p>
<blockquote>
<h2>v4.15.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>typescript-estree:</strong> improve logic used to escape string literals in jsx (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2995">#2995</a>) (<a href="3cb3aade28">3cb3aad</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's changelog</code></a>.</em></p>
<blockquote>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="964cda3d9d"><code>964cda3</code></a> chore: publish v4.15.0</li>
<li><a href="4615048d24"><code>4615048</code></a> fix(eslint-plugin): [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/2993">#2993</a>)</li>
<li><a href="ce4fcbf440"><code>ce4fcbf</code></a> fix(scope-manager): fix visiting of TSImportType (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3008">#3008</a>)</li>
<li><a href="898dd39619"><code>898dd39</code></a> fix(eslint-plugin): [prefer-function-type] correct fixer when signature ends ...</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.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.14.2&new-version=4.15.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/1930

Reviewed By: mweststrate

Differential Revision: D26463222

Pulled By: passy

fbshipit-source-id: c8d05f659d76a950b76e03b0cdf6af1a7f391305
2021-02-17 05:14:13 -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'})