Files
flipper/flipper-js-client-sdk
dependabot[bot] 8596c0d701 Bump @typescript-eslint/parser from 4.26.1 to 4.27.0 in /flipper-js-client-sdk (#2481)
Summary:
Bumps [typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.26.1 to 4.27.0.
<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.27.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.26.1...v4.27.0">4.27.0</a> (2021-06-14)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> allow explicit any for no-unsafe-return (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3498">#3498</a>) (<a href="b15a2b2a02">b15a2b2</a>)</li>
<li><strong>typescript-estree:</strong> allow providing more one than one existing program in config (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3508">#3508</a>) (<a href="4f1806e548">4f1806e</a>)</li>
<li><strong>typescript-estree:</strong> support override modifier for parameter property (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3485">#3485</a>) (<a href="33b9f69a68">33b9f69</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>ast-spec:</strong> specify <code>LogicalExpression</code>'s <code>operator</code> type (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3497">#3497</a>) (<a href="9e343fdaa0">9e343fd</a>)</li>
<li><strong>ast-spec:</strong> specify <code>PunctuatorToken</code>'s <code>value</code> type (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3496">#3496</a>) (<a href="fdb1d81f0f">fdb1d81</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-literal-enum-member] add allowBitwiseExpressions option (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3515">#3515</a>) (<a href="288092a085">288092a</a>)</li>
<li><strong>typescript-estree:</strong> add opt-in inference for single runs and create programs for projects up front (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3512">#3512</a>) (<a href="06c2d9ba54">06c2d9b</a>)</li>
<li>allow user to provide TS program instance in parser options (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3484">#3484</a>) (<a href="e855b18b8f">e855b18</a>)</li>
</ul>
<h1>Single-Run Detection</h1>
<p>See the explanation for how to opt-in to this feature and how to provide feedback in this issue: <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3528">typescript-eslint/typescript-eslint#3528</a></p>
</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>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.26.1...v4.27.0">4.27.0</a> (2021-06-14)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>typescript-estree:</strong> allow providing more one than one existing program in config (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3508">#3508</a>) (<a href="4f1806e548">4f1806e</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>allow user to provide TS program instance in parser options (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3484">#3484</a>) (<a href="e855b18b8f">e855b18</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b3ac5f6e21"><code>b3ac5f6</code></a> chore: publish v4.27.0</li>
<li><a href="4f1806e548"><code>4f1806e</code></a> fix(typescript-estree): allow providing more one than one existing program in...</li>
<li><a href="e855b18b8f"><code>e855b18</code></a> feat: allow user to provide TS program instance in parser options (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser/issues/3484">#3484</a>)</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.27.0/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.26.1&new-version=4.27.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/2481

Reviewed By: nikoant

Differential Revision: D29263788

Pulled By: mweststrate

fbshipit-source-id: 1d2f26fced9fa977631cf815572726efdaa22066
2021-06-22 03:02:28 -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'})