Summary: Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.23.4 to 2.24.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/import-js/eslint-plugin-import/releases">eslint-plugin-import's releases</a>.</em></p> <blockquote> <h2>v2.24.1</h2> <p><a href="https://github.com/import-js/eslint-plugin-import/blob/v2.24.1/CHANGELOG.md#2241---2021-08-19">https://github.com/import-js/eslint-plugin-import/blob/v2.24.1/CHANGELOG.md#2241---2021-08-19</a></p> <h2>v2.24.0</h2> <p><a href="https://github.com/import-js/eslint-plugin-import/blob/v2.24.0/CHANGELOG.md#2240---2021-08-08">https://github.com/import-js/eslint-plugin-import/blob/v2.24.0/CHANGELOG.md#2240---2021-08-08</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md">eslint-plugin-import's changelog</a>.</em></p> <blockquote> <h2>[2.24.2] - 2021-08-24</h2> <h3>Fixed</h3> <ul> <li>[<code>named</code>], [<code>namespace</code>]: properly handle ExportAllDeclarations (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2199">https://github.com/facebook/flipper/issues/2199</a>, thanks [<a href="https://github.com/ljharb"><code>@ljharb</code></a>])</li> </ul> <h2>[2.24.1] - 2021-08-19</h2> <h3>Fixed</h3> <ul> <li><code>ExportMap</code>: Add default export when esModuleInterop is true and anything is exported (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2184">https://github.com/facebook/flipper/issues/2184</a>, thanks [<a href="https://github.com/Maxim-Mazurok"><code>@Maxim-Mazurok</code></a>])</li> <li>[<code>named</code>], [<code>namespace</code>]: properly set reexports on <code>export * as … from</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/1998">https://github.com/facebook/flipper/issues/1998</a>, <a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2161">https://github.com/facebook/flipper/issues/2161</a>, thanks [<a href="https://github.com/ljharb"><code>@ljharb</code></a>])</li> <li>[<code>no-duplicates</code>]: correctly handle case of mixed default/named type imports (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2149">https://github.com/facebook/flipper/issues/2149</a>, thanks [<a href="https://github.com/GoodForOneFare"><code>@GoodForOneFare</code></a>], [<a href="https://github.com/nwalters512"><code>@nwalters512</code></a>])</li> <li>[<code>no-duplicates</code>]: avoid crash with empty <code>import type {}</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2201">https://github.com/facebook/flipper/issues/2201</a>, thanks [<a href="https://github.com/ljharb"><code>@ljharb</code></a>])</li> </ul> <h3>Changed</h3> <ul> <li>[Docs] <code>max-dependencies</code>: {emoji:1f4d6} Document <code>ignoreTypeImports</code> option (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2196">https://github.com/facebook/flipper/issues/2196</a>, thanks [<a href="https://github.com/himynameisdave"><code>@himynameisdave</code></a>])</li> </ul> <h2>[2.24.0] - 2021-08-08</h2> <h3>Added</h3> <ul> <li>[<code>no-dynamic-require</code>]: add option <code>esmodule</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/1223">https://github.com/facebook/flipper/issues/1223</a>, thanks [<a href="https://github.com/vikr01"><code>@vikr01</code></a>])</li> <li>[<code>named</code>]: add <code>commonjs</code> option (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/1222">https://github.com/facebook/flipper/issues/1222</a>, thanks [<a href="https://github.com/vikr01"><code>@vikr01</code></a>])</li> <li>[<code>no-namespace</code>]: Add <code>ignore</code> option (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2112">https://github.com/facebook/flipper/issues/2112</a>, thanks [<a href="https://github.com/aberezkin"><code>@aberezkin</code></a>])</li> <li>[<code>max-dependencies</code>]: add option <code>ignoreTypeImports</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/1847">https://github.com/facebook/flipper/issues/1847</a>, thanks [<a href="https://github.com/rfermann"><code>@rfermann</code></a>])</li> </ul> <h3>Fixed</h3> <ul> <li>[<code>no-duplicates</code>]: ensure autofix avoids excessive newlines (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2028">https://github.com/facebook/flipper/issues/2028</a>, thanks [<a href="https://github.com/ertrzyiks"><code>@ertrzyiks</code></a>])</li> <li>[<code>extensions</code>]: avoid crashing on partially typed import/export statements (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2118">https://github.com/facebook/flipper/issues/2118</a>, thanks [<a href="https://github.com/ljharb"><code>@ljharb</code></a>])</li> <li>[<code>no-extraneous-dependencies</code>]: add ESM intermediate package.json support (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2121">https://github.com/facebook/flipper/issues/2121</a>, thanks [<a href="https://github.com/paztis"><code>@paztis</code></a>])</li> <li>Use <code>context.getPhysicalFilename()</code> when available (ESLint 7.28+) (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2160">https://github.com/facebook/flipper/issues/2160</a>, thanks [<a href="https://github.com/pmcelhaney"><code>@pmcelhaney</code></a>])</li> <li>[<code>extensions</code>]/<code>importType</code>: fix isScoped treating @/abc as scoped module (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2146">https://github.com/facebook/flipper/issues/2146</a>, thanks [<a href="https://github.com/rperello"><code>@rperello</code></a>])</li> </ul> <h3>Changed</h3> <ul> <li>[Docs] [<code>extensions</code>]: improved cases for using <code>@/...</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2140">https://github.com/facebook/flipper/issues/2140</a>, thanks [<a href="https://github.com/wenfangdu"><code>@wenfangdu</code></a>])</li> <li>[Docs] [<code>extensions</code>]: removed incorrect cases (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2138">https://github.com/facebook/flipper/issues/2138</a>, thanks [<a href="https://github.com/wenfangdu"><code>@wenfangdu</code></a>])</li> <li>[Tests] [<code>order</code>]: add tests for <code>pathGroupsExcludedImportTypes: ['type']</code> (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2158">https://github.com/facebook/flipper/issues/2158</a>, thanks [<a href="https://github.com/atav32"><code>@atav32</code></a>])</li> <li>[Docs] [<code>order</code>]: improve the documentation for the <code>pathGroupsExcludedImportTypes</code> option (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2156">https://github.com/facebook/flipper/issues/2156</a>, thanks [<a href="https://github.com/liby"><code>@liby</code></a>])</li> <li>[Tests] [<code>no-cycle</code>]: Restructure test files (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/1517">https://github.com/facebook/flipper/issues/1517</a>, thanks [<a href="https://github.com/soryy708"><code>@soryy708</code></a>])</li> <li>[Docs] add description how to use plugin with yarn berry (<a href="https://github-redirect.dependabot.com/import-js/eslint-plugin-import/issues/2179">https://github.com/facebook/flipper/issues/2179</a>, thanks [<a href="https://github.com/KostyaZgara"><code>@KostyaZgara</code></a>])</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="924b435072"><code>924b435</code></a> Bump to v2.24.2</li> <li><a href="033ba646c6"><code>033ba64</code></a> [Fix] <code>named</code>, <code>namespace</code>: properly handle ExportAllDeclarations</li> <li><a href="51d39732a4"><code>51d3973</code></a> [Deps] unpin <code>tsconfig-paths</code></li> <li><a href="75170fabd5"><code>75170fa</code></a> [Tests] <code>named</code>: add passing tests</li> <li><a href="4aff27c6a2"><code>4aff27c</code></a> [Tests] test on TS parser v2, v3, and v4</li> <li><a href="aa8d566b28"><code>aa8d566</code></a> [Fix] <code>no-duplicates</code>: avoid crash with empty <code>import type {}</code></li> <li><a href="94d6739ebc"><code>94d6739</code></a> [Tests] <code>no-extraneous-dependencies</code>: add passing test case of webpack loader...</li> <li><a href="9485c8300d"><code>9485c83</code></a> [meta] rename default branch</li> <li><a href="6c957e7df1"><code>6c957e7</code></a> [Deps] pin <code>tsconfig-paths</code> due to a breaking change in v3.10</li> <li><a href="6171a7aa99"><code>6171a7a</code></a> Bump to v2.24.1</li> <li>Additional commits viewable in <a href="https://github.com/import-js/eslint-plugin-import/compare/v2.23.4...v2.24.2">compare view</a></li> </ul> </details> <br /> [](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/2730 Reviewed By: nikoant Differential Revision: D30573288 Pulled By: passy fbshipit-source-id: 6a0d38282d2e478e6bcd9097acccf8ce27190bf9
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'})