Summary: Bumps [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) from 6.4.1 to 6.5.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/releases">eslint-plugin-jsx-a11y's releases</a>.</em></p> <blockquote> <h2>v6.5.1</h2> <p><strong>Full Changelog</strong>: <a href="https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.5.0...v6.5.1">https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.5.0...v6.5.1</a></p> <h2>v6.5.0</h2> <h2>What's Changed</h2> <ul> <li>Upgrade jsx-ast-utils dependency to v3.1.0 by <a href="https://github.com/jessebeach"><code>@jessebeach</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/754">jsx-eslint/eslint-plugin-jsx-a11y#754</a></li> <li>Remove no-onchange from recommended and strict by <a href="https://github.com/karlhorky"><code>@karlhorky</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/757">jsx-eslint/eslint-plugin-jsx-a11y#757</a></li> <li>Turn off label-has-for in strict rule set by <a href="https://github.com/janmonschke"><code>@janmonschke</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/734">jsx-eslint/eslint-plugin-jsx-a11y#734</a></li> <li>Ran npm update; latest packages by <a href="https://github.com/jessebeach"><code>@jessebeach</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/763">jsx-eslint/eslint-plugin-jsx-a11y#763</a></li> <li>[New] <code>label-has-associated-control</code>: Add glob support by <a href="https://github.com/hallzac2"><code>@hallzac2</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/749">jsx-eslint/eslint-plugin-jsx-a11y#749</a></li> <li>[doc] Add link to MDN Aria documentation by <a href="https://github.com/arjansingh"><code>@arjansingh</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/762">jsx-eslint/eslint-plugin-jsx-a11y#762</a></li> <li>[Tests] migrate tests to Github Actions by <a href="https://github.com/ljharb"><code>@ljharb</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/764">jsx-eslint/eslint-plugin-jsx-a11y#764</a></li> <li>docs: Add example for tabIndex on seemingly non-interactive element by <a href="https://github.com/eps1lon"><code>@eps1lon</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/760">jsx-eslint/eslint-plugin-jsx-a11y#760</a></li> <li>Add Next.js case to anchor-is-valid rule docs by <a href="https://github.com/zackdotcomputer"><code>@zackdotcomputer</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/769">jsx-eslint/eslint-plugin-jsx-a11y#769</a></li> <li>[Docs] <code>no-redundant-roles</code>: Adds missing closing square bracket by <a href="https://github.com/mikeriley131"><code>@mikeriley131</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/775">jsx-eslint/eslint-plugin-jsx-a11y#775</a></li> <li>[Docs] <code>anchor-is-valid</code>: general cleanup by <a href="https://github.com/Anima-t3d"><code>@Anima-t3d</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/728">jsx-eslint/eslint-plugin-jsx-a11y#728</a></li> <li>Update flow-bin version to support aarch64 by <a href="https://github.com/odidev"><code>@odidev</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/784">jsx-eslint/eslint-plugin-jsx-a11y#784</a></li> <li>Fully deprecate accessible-emoji rule by <a href="https://github.com/backwardok"><code>@backwardok</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/782">jsx-eslint/eslint-plugin-jsx-a11y#782</a></li> <li>Fix Flow warnings by <a href="https://github.com/jessebeach"><code>@jessebeach</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/785">jsx-eslint/eslint-plugin-jsx-a11y#785</a></li> <li>[Docs] Document the similarity between html-has-lang and lang by <a href="https://github.com/denis-sokolov"><code>@denis-sokolov</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/778">jsx-eslint/eslint-plugin-jsx-a11y#778</a></li> <li>[Docs] Clarify the title of the strictness table in the main doc by <a href="https://github.com/denis-sokolov"><code>@denis-sokolov</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/786">jsx-eslint/eslint-plugin-jsx-a11y#786</a></li> <li>Update recommended config to allow fieldset to have the radiogroup role by <a href="https://github.com/hallzac2"><code>@hallzac2</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/746">jsx-eslint/eslint-plugin-jsx-a11y#746</a></li> <li>Update focus/hover style for link-button by <a href="https://github.com/mdvorscak"><code>@mdvorscak</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/662">jsx-eslint/eslint-plugin-jsx-a11y#662</a></li> <li>Support img role for canvas. Fix for <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/648">https://github.com/facebook/flipper/issues/648</a>. by <a href="https://github.com/markwoon"><code>@markwoon</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/796">jsx-eslint/eslint-plugin-jsx-a11y#796</a></li> <li>Fix no-access-key wording and grammar by <a href="https://github.com/breadadams"><code>@breadadams</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/800">jsx-eslint/eslint-plugin-jsx-a11y#800</a></li> <li>[Docs] <code>scope</code>: replace duplicate scope word by <a href="https://github.com/rafaelss95"><code>@rafaelss95</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/799">jsx-eslint/eslint-plugin-jsx-a11y#799</a></li> <li>[Tests] use <code>babel/eslint-parser</code> instead of <code>babel-eslint</code> by <a href="https://github.com/MichaelDeBoey"><code>@MichaelDeBoey</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/811">jsx-eslint/eslint-plugin-jsx-a11y#811</a></li> <li>Switch to <code>export default</code> syntax for exporting rules by <a href="https://github.com/bmish"><code>@bmish</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/819">jsx-eslint/eslint-plugin-jsx-a11y#819</a></li> <li>Add <code>eslint-plugin-eslint-plugin</code> by <a href="https://github.com/bmish"><code>@bmish</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/818">jsx-eslint/eslint-plugin-jsx-a11y#818</a></li> <li>add missing close / for jsx succeed example by <a href="https://github.com/adamrhunter"><code>@adamrhunter</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/821">jsx-eslint/eslint-plugin-jsx-a11y#821</a></li> <li>[Docs] HTTP => HTTPS by <a href="https://github.com/Schweinepriester"><code>@Schweinepriester</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/823">jsx-eslint/eslint-plugin-jsx-a11y#823</a></li> <li>[New] support ESLint 8.x by <a href="https://github.com/MichaelDeBoey"><code>@MichaelDeBoey</code></a> in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/810">jsx-eslint/eslint-plugin-jsx-a11y#810</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/karlhorky"><code>@karlhorky</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/757">jsx-eslint/eslint-plugin-jsx-a11y#757</a></li> <li><a href="https://github.com/janmonschke"><code>@janmonschke</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/734">jsx-eslint/eslint-plugin-jsx-a11y#734</a></li> <li><a href="https://github.com/hallzac2"><code>@hallzac2</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/749">jsx-eslint/eslint-plugin-jsx-a11y#749</a></li> <li><a href="https://github.com/arjansingh"><code>@arjansingh</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/762">jsx-eslint/eslint-plugin-jsx-a11y#762</a></li> <li><a href="https://github.com/zackdotcomputer"><code>@zackdotcomputer</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/769">jsx-eslint/eslint-plugin-jsx-a11y#769</a></li> <li><a href="https://github.com/mikeriley131"><code>@mikeriley131</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/775">jsx-eslint/eslint-plugin-jsx-a11y#775</a></li> <li><a href="https://github.com/Anima-t3d"><code>@Anima-t3d</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/728">jsx-eslint/eslint-plugin-jsx-a11y#728</a></li> <li><a href="https://github.com/odidev"><code>@odidev</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/784">jsx-eslint/eslint-plugin-jsx-a11y#784</a></li> <li><a href="https://github.com/denis-sokolov"><code>@denis-sokolov</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/778">jsx-eslint/eslint-plugin-jsx-a11y#778</a></li> <li><a href="https://github.com/mdvorscak"><code>@mdvorscak</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/662">jsx-eslint/eslint-plugin-jsx-a11y#662</a></li> <li><a href="https://github.com/markwoon"><code>@markwoon</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/796">jsx-eslint/eslint-plugin-jsx-a11y#796</a></li> <li><a href="https://github.com/breadadams"><code>@breadadams</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/800">jsx-eslint/eslint-plugin-jsx-a11y#800</a></li> <li><a href="https://github.com/rafaelss95"><code>@rafaelss95</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/799">jsx-eslint/eslint-plugin-jsx-a11y#799</a></li> <li><a href="https://github.com/bmish"><code>@bmish</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/819">jsx-eslint/eslint-plugin-jsx-a11y#819</a></li> <li><a href="https://github.com/adamrhunter"><code>@adamrhunter</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/821">jsx-eslint/eslint-plugin-jsx-a11y#821</a></li> <li><a href="https://github.com/Schweinepriester"><code>@Schweinepriester</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/pull/823">jsx-eslint/eslint-plugin-jsx-a11y#823</a></li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/CHANGELOG.md">eslint-plugin-jsx-a11y's changelog</a>.</em></p> <blockquote> <h1>6.5.1 / 2021-11-10</h1> <ul> <li>8f7d0b0 [Fix] properly build <code>module.exports</code> (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/824">https://github.com/facebook/flipper/issues/824</a>)</li> <li>2fd2087 [Dev Deps] update <code>eslint-plugin-import</code></li> </ul> <h1>6.5.0 / 2021-11-09</h1> <ul> <li>0f5f582 [New] support ESLint 8.x (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/810">https://github.com/facebook/flipper/issues/810</a>)</li> <li>1dbc416 [Deps] update <code>babel/runtime</code>, <code>axe-core</code></li> <li>4043d31 [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/eslint-parser</code>, <code>babel/plugin-transform-flow-strip-types</code>, <code>eslint-config-airbnb-base</code></li> <li>d143cba [Docs] HTTP => HTTPS (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/823">https://github.com/facebook/flipper/issues/823</a>)</li> <li>309b040 [Docs] <code>anchor-has-content</code>: add missing close / for jsx succeed example (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/821">https://github.com/facebook/flipper/issues/821</a>)</li> <li>ba1e312 [eslint] simplify eslint command</li> <li>0269025 [meta] change all <code>master</code> references in URLs to <code>HEAD</code></li> <li>f1414cf [Dev Deps] add <code>eslint-plugin-eslint-plugin</code> (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/818">https://github.com/facebook/flipper/issues/818</a>)</li> <li>f44fc05 [meta] update URLs</li> <li>df34872 [Refactor] switch to <code>export default</code> syntax for exporting rules (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/819">https://github.com/facebook/flipper/issues/819</a>)</li> <li>ff26b82 [meta] fix prepublish scripts</li> <li>d4a57d8 [Deps] update <code>babel/runtime</code>, <code>array-includes</code>, <code>axe-core</code>, <code>jsx-ast-utils</code></li> <li>bd1dec6 [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/eslint-parser</code>, <code>eslint-plugin-import</code>, <code>estraverse</code>, <code>safe-publish-latest</code></li> <li>434c4cf [Tests] do not test eslint 7 on node 11</li> <li>aed7a20 [Tests] use <code>babel/eslint-parser</code> instead of <code>babel-eslint</code> (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/811">https://github.com/facebook/flipper/issues/811</a>)</li> <li>0021489 [actions] use codecov action</li> <li>1251088 [meta] delete FUNDING.yml in favor of <code>.github</code> repo</li> <li>ecf7a27 [Docs] <code>scope</code>: replace duplicate <code>scope</code> word (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/799">https://github.com/facebook/flipper/issues/799</a>)</li> <li>952af25 [Fix] <code>no-access-key</code>: Fix wording and grammar (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/800">https://github.com/facebook/flipper/issues/800</a>)</li> <li>6cf7ac0 [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/plugin-transform-flow-strip-types</code>, <code>aud</code>, <code>eslint-plugin-flowtype</code>, <code>eslint-plugin-import</code></li> <li>79a35d4 [Deps] update <code>babel/runtime</code>, <code>axe-core</code>, <code>damerau-levenshtein</code></li> <li>2a9ab71 [Tests] delete <code>src/util/getComputedRole-test.js</code> test in node 6</li> <li>0c1c587 [Tests] <code>autocomplete-valid</code>: move some failed tests to passing</li> <li>8830902 [Tests] fix eslint < 7 not understanding <code>import type</code></li> <li>d57887c [Tests] ensure all tests run</li> <li>55e5c11 Support img role for canvas (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/796">https://github.com/facebook/flipper/issues/796</a>)</li> <li>36102cd [meta] use <code>prepublishOnly</code> script for npm 7+</li> <li>2501a7f Remove the link-button focus css from the anchor-is-valid doc (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/662">https://github.com/facebook/flipper/issues/662</a>)</li> <li>d927625 Update recommended config to allow fieldset to have the radiogroup role (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/746">https://github.com/facebook/flipper/issues/746</a>)</li> <li>5aa8db9 [Docs] Clarify the title of the strictness table in the main doc (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/786">https://github.com/facebook/flipper/issues/786</a>)</li> <li>df3c7ad [Docs] Document the similarity between html-has-lang and lang (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/778">https://github.com/facebook/flipper/issues/778</a>)</li> <li>426d4c2 Fix Flow warnings (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/785">https://github.com/facebook/flipper/issues/785</a>)</li> <li>ecec8e4 Fully deprecate accessible-emoji rule (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/782">https://github.com/facebook/flipper/issues/782</a>)</li> <li>8a0e43c [Tests] remove .travis.yml</li> <li>f88bf6b [Dev Deps] update <code>flow-bin</code> to support aarch64 (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/784">https://github.com/facebook/flipper/issues/784</a>)</li> <li>369f9db [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/plugin-transform-flow-strip-types</code>, <code>aud</code>, <code>eslint-plugin-flowtype</code>, <code>jscodeshift</code></li> <li>ce0785f [Deps] update <code>babel/runtime</code>, <code>array-includes</code>, <code>axe-core</code>, <code>emoji-regex</code></li> <li>2c2a2ad [actions] update to use <code>node/install</code> action</li> <li>c275964 [Docs] <code>anchor-is-valid</code>: general cleanup (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/728">#728</a>)</li> <li>3df059e [Docs] <code>no-redundant-roles</code>: Adds missing closing square bracket (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/775">https://github.com/facebook/flipper/issues/775</a>)</li> <li>42ce5b7 [Docs] <code>anchor-is-valid</code>: Add Next.js case (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/769">https://github.com/facebook/flipper/issues/769</a>)</li> <li>2e5df91 [Tests] fix tests breaking on npm 7</li> <li>066ccff [Docs] <code>no-noninteractive-tabindex</code>: Add example for tabIndex on seemingly non-interactive element (<a href="https://github-redirect.dependabot.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/760">https://github.com/facebook/flipper/issues/760</a>)</li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="30deacbf24"><code>30deacb</code></a> v6.5.1</li> <li><a href="2fd208731c"><code>2fd2087</code></a> [Dev Deps] update <code>eslint-plugin-import</code></li> <li><a href="8f7d0b0338"><code>8f7d0b0</code></a> [Fix] properly build <code>module.exports</code></li> <li><a href="f8c40017a0"><code>f8c4001</code></a> v6.5.0</li> <li><a href="0f5f58203c"><code>0f5f582</code></a> [New] support ESLint 8.x</li> <li><a href="1dbc416b78"><code>1dbc416</code></a> [Deps] update <code>babel/runtime</code>, <code>axe-core</code></li> <li><a href="4043d313de"><code>4043d31</code></a> [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/eslint-parser</code>, `babe...</li> <li><a href="d143cba6b1"><code>d143cba</code></a> [Docs] HTTP => HTTPS</li> <li><a href="309b0404c0"><code>309b040</code></a> [Docs] <code>anchor-has-content</code>: add missing close / for jsx succeed example</li> <li><a href="ba1e312bbd"><code>ba1e312</code></a> [eslint] simplify eslint command</li> <li>Additional commits viewable in <a href="https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/compare/v6.4.1...v6.5.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/3275 Reviewed By: aigoncharov Differential Revision: D33565484 Pulled By: passy fbshipit-source-id: 0b2d8543b69e9e771159c7e33f3b1d0c20e43c75
js-flipper
This package exposes JavaScript bindings to talk from web / Node.js directly to flipper.
Installation
yarn add js-flipper
Usage
How to build Flipper plugins is explained in the flipper documentation: Creating a Flipper plugin. Building a Flipper plugin involves building a plugin for the Desktop app, and a plugin that runs on a Device (web or Node.js). This package is only needed for the plugin that runs on the device (web / Node.js), and wants to use the WebSocket connection to communicate to Flipper.
This package exposes a flipperClient. It has:
addPluginmethod. It accepts apluginparameter, that registers a client plugin and will fire the relevant callbacks if the corresponding desktop plugin is selected in the Flipper Desktop. The full plugin API is documented here.startmethod. It starts the client. It has two arguments:appName- (required) the name dsplayed in Flipperoptionswhich conforms to the infterfaceinterface FlipperClientOptions { // Make the client connect to a different URL urlBase?: string; // Override WebSocket implementation (Node.js folks, it is for you!) websocketFactory?: (url: string) => FlipperWebSocket; // Override how errors are handled (it is simple `console.error` by default) onError?: (e: unknown) => void; // Timeout after which client tries to reconnect to Flipper reconnectTimeout?: number; }
Example (web)
An example plugin can be found in FlipperTicTacToe.js.
The corresponding Desktop plugin ships by default in Flipper, so importing the
above file and dropping the <FlipperTicTacToe /> component somewhere in your
application should work out of the box.
The sources of the corresponding Desktop plugin can be found here.
Node.js
Node.js does not have a built-in WebSocket implementation. You need to install any implmentation of WebSockets for Node.js that is compatible with the interface of the web version.
import flipperClient from 'js-flipper';
// Say, you decided to go with 'ws'
// https://github.com/websockets/ws
import WebSocket from 'ws';
// Start the client and pass some options
// You might ask yourself why there is the second argument `{ origin: 'localhost:' }`
// Flipper Desktop verifies the `Origin` header for every WS connection. You need to set it to one of the whitelisted values (see `VALID_WEB_SOCKET_REQUEST_ORIGIN_PREFIXES`).
flipperClient.start('My cool nodejs app', { websocketFactory: url => new WebSocket(url, {origin: 'localhost:'}) });
An example plugin should be somewhat similar to what we have for React. It is currently WIP (do not confuse with RIP!).