Summary: Bumps [prettier](https://github.com/prettier/prettier) from 2.3.0 to 2.3.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p> <blockquote> <h2>v2.3.1</h2> <p><a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#231">Changelog</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p> <blockquote> <h1>2.3.1</h1> <p><a href="https://github.com/prettier/prettier/compare/2.3.0...2.3.1">diff</a></p> <h4>Support TypeScript 4.3 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10945">#10945</a> by <a href="https://github.com/sosukesuzuki"><code>@sosukesuzuki</code></a>)</h4> <h5><a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#override"><code>override</code> modifiers in class elements</a></h5> <pre lang="ts"><code>class Foo extends { override method() {} } </code></pre> <h5><a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#static-index-signatures">static index signatures (<code>[key: KeyType]: ValueType</code>) in classes</a></h5> <pre lang="ts"><code>class Foo { static [key: string]: Bar; } </code></pre> <h5><a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#separate-write-types"><code>get</code> / <code>set</code> in type declarations</a></h5> <pre lang="ts"><code>interface Foo { set foo(value); get foo(): string; } </code></pre> <h4>Preserve attributes order for element node (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10958">#10958</a> by <a href="https://github.com/dcyriller"><code>@dcyriller</code></a>)</h4> <pre lang="handlebars"><code>{{!-- Input --}} <MyComponent {{! this is a comment for arg 1}} arg1="hello" {{on "clik" this.modify}} arg2="hello" {{! this is a comment for arg 3}} arg3="hello" arg4="hello" {{! this is a comment for arg 5}} arg5="hello" ...arguments /> {{!-- Prettier stable --}} <MyComponent </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="d770f49dc0"><code>d770f49</code></a> Release 2.3.1</li> <li><a href="09d65c35af"><code>09d65c3</code></a> Revert features for minor (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11016">#11016</a>)</li> <li><a href="3cd28ca80d"><code>3cd28ca</code></a> Preserve attributes order for element node (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10958">#10958</a>)</li> <li><a href="c3c300dd8f"><code>c3c300d</code></a> Remove <code>types/node</code> package (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10994">#10994</a>)</li> <li><a href="4b4aeaffa5"><code>4b4aeaf</code></a> Fix a typo (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11009">#11009</a>)</li> <li><a href="cedaec3c2d"><code>cedaec3</code></a> Fix docs urls for internal lint rules (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11011">#11011</a>)</li> <li><a href="1d69549452"><code>1d69549</code></a> Update v2.3 blog post (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11002">#11002</a>)</li> <li><a href="ddcfdd47f3"><code>ddcfdd4</code></a> Build(deps): Bump linguist-languages from 7.14.0 to 7.15.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10990">#10990</a>)</li> <li><a href="c8133f8afa"><code>c8133f8</code></a> Fix <code>StringLiteral</code> print (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10997">#10997</a>)</li> <li><a href="3a7179194e"><code>3a71791</code></a> Build(deps): Bump <code>@angular/compiler</code> from 11.2.14 to 12.0.2 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10995">#10995</a>)</li> <li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.3.0...2.3.1">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/2416 Reviewed By: mweststrate Differential Revision: D29028053 Pulled By: passy fbshipit-source-id: 9ddd5c09aab6e31ad15505806d50373150e88aaa
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'})