Files
flipper/flipper-js-client-sdk
dependabot[bot] 176e2a541e Bump eslint-plugin-import from 2.21.2 to 2.22.1 in /flipper-js-client-sdk (#1547)
Summary:
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.21.2 to 2.22.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md">eslint-plugin-import's changelog</a>.</em></p>
<blockquote>
<h2>[2.22.1] - 2020-09-27</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>default</code>]/TypeScript: avoid crash on <code>export =</code> with a MemberExpression (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1841">#1841</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
<li>[<code>extensions</code>]/importType: Fix @/abc being treated as scoped module (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1854">#1854</a>, thanks [<a href="https://github.com/3nuc">3nuc</a>])</li>
<li>allow using rest operator in named export (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1878">#1878</a>, thanks [<a href="https://github.com/foray1010">foray1010</a>])</li>
<li>[<code>dynamic-import-chunkname</code>]: allow single quotes to match Webpack support (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1848">#1848</a>, thanks [<a href="https://github.com/straub">straub</a>])</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[<code>export</code>]: add tests for a name collision with <code>export * from</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1704">#1704</a>, thanks <a href="https://github.com/tomprats">tomprats</a>)</li>
</ul>
<h2>[2.22.0] - 2020-06-26</h2>
<h3>Added</h3>
<ul>
<li>[<code>no-unused-modules</code>]: consider exported TypeScript interfaces, types and enums (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1819">#1819</a>, thanks [<a href="https://github.com/nicolashenry">nicolashenry</a>])</li>
<li>[<code>no-cycle</code>]: allow <code>maxDepth</code> option to be <code>&quot;∞&quot;</code> (thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>order</code>]/TypeScript: properly support <code>import = object</code> expressions (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1823">#1823</a>, thanks [<a href="https://github.com/manuth">manuth</a>])</li>
<li>[<code>no-extraneous-dependencies</code>]/TypeScript: do not error when importing type from dev dependencies (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1820">#1820</a>, thanks [<a href="https://github.com/fernandopasik">fernandopasik</a>])</li>
<li>[<code>default</code>]: avoid crash with <code>export =</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1822">#1822</a>, thanks [<a href="https://github.com/AndrewLeedham">AndrewLeedham</a>])</li>
<li>[<code>order</code>]/[<code>newline-after-import</code>]: ignore TypeScript's &quot;export import object&quot; (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1830">#1830</a>, thanks [<a href="https://github.com/be5invis">be5invis</a>])</li>
<li>[<code>dynamic-import-chunkname</code>]/TypeScript: supports <code>typescript-eslint/parser</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1833">#1833</a>, thanks [<a href="https://github.com/noelebrun">noelebrun</a>])</li>
<li>[<code>order</code>]/TypeScript: ignore ordering of object imports (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1831">#1831</a>, thanks [<a href="https://github.com/manuth">manuth</a>])</li>
<li>[<code>namespace</code>]: do not report on shadowed import names (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/518">https://github.com/facebook/flipper/issues/518</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
<li>[<code>export</code>]: avoid warning on <code>export * as</code> non-conflicts (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1834">#1834</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[<code>no-extraneous-dependencies</code>]: add tests for importing types (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1824">#1824</a>, thanks [<a href="https://github.com/taye">taye</a>])</li>
<li>[docs] [<code>no-default-export</code>]: Fix docs url (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1836">#1836</a>, thanks [<a href="https://github.com/beatrizrezener">beatrizrezener</a>])</li>
<li>[docs] [<code>imports-first</code>]: deprecation info and link to <code>first</code> docs (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1835">#1835</a>, thanks [<a href="https://github.com/beatrizrezener">beatrizrezener</a>])</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="bdda0691cf"><code>bdda069</code></a> Bump to v2.22.1</li>
<li><a href="aa42759569"><code>aa42759</code></a> [Dev Deps] update <code>coveralls</code>, <code>eslint-import-resolver-typescript</code>, `eslint-p...</li>
<li><a href="b366e50be8"><code>b366e50</code></a> [Deps] update <code>eslint-import-resolver-node</code></li>
<li><a href="fef718cb13"><code>fef718c</code></a> [resolvers/webpack] [Breaking] Allow to resolve config path relative to worki...</li>
<li><a href="bbe529a4ff"><code>bbe529a</code></a> [eslint] don’t warn about console logs in scripts</li>
<li><a href="f40c8aef2a"><code>f40c8ae</code></a> [meta] convert eslint config to json</li>
<li><a href="227d9a2509"><code>227d9a2</code></a> [Fix] <code>dynamic-import-chunkname</code>: allow single quotes to match Webpack support</li>
<li><a href="569d72688f"><code>569d726</code></a> fixup! [Tests] <code>export</code>: add tests for a name collision with <code>export * from</code></li>
<li><a href="b2d3707fdf"><code>b2d3707</code></a> fixup! [Tests] <code>export</code>: add tests for a name collision with <code>export * from</code></li>
<li><a href="1a67453752"><code>1a67453</code></a> [Tests] <code>export</code>: add tests for a name collision with <code>export * from</code></li>
<li>Additional commits viewable in <a href="https://github.com/benmosher/eslint-plugin-import/compare/v2.21.2...v2.22.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-import&package-manager=npm_and_yarn&previous-version=2.21.2&new-version=2.22.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1547

Reviewed By: cekkaewnumchai

Differential Revision: D24112982

Pulled By: mweststrate

fbshipit-source-id: 782d6edeab01be0ed46079947f2d63d285fc44d3
2020-10-06 04:23:08 -07:00
..
2020-09-10 08:18:14 -07: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'})