Bump react-refresh from 0.8.3 to 0.9.0 in /desktop (#1861)
Summary: Bumps [react-refresh](https://github.com/facebook/react/tree/HEAD/packages/react) from 0.8.3 to 0.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/releases">react-refresh's releases</a>.</em></p> <blockquote> <h2>v0.9.0</h2> <h2>What’s New?</h2> <p>This version includes better support for normalizing event properties across all supported browsers so that you need to worry even less about cross-browser differences. We've also made many improvements to error messages and have refactored the core to never rethrow errors, so stack traces are more accurate and Chrome's purple break-on-error stop sign now works properly.</p> <p>We've also added to the add-ons build <a href="https://github.com/facebook/react/tree/HEAD/packages/react/blob/HEAD/react/docs/test-utils.html">React.addons.TestUtils</a>, a set of new utilities to help you write unit tests for React components. You can now simulate events on your components, and several helpers are provided to help make assertions about the rendered DOM tree.</p> <p>We've also made several other improvements and a few breaking changes; the full changelog is provided below.</p> <h2>JSX Whitespace</h2> <p>In addition to the changes to React core listed below, we've made a small change to the way JSX interprets whitespace to make things more consistent. With this release, space between two components on the same line will be preserved, while a newline separating a text node from a tag will be eliminated in the output. Consider the code:</p> <pre lang="html"><code><div> Monkeys: {listOfMonkeys} {submitButton} </div> </code></pre> <p>In v0.8 and below, it was transformed to the following:</p> <pre lang="javascript"><code>React.DOM.div(null, " Monkeys: ", listOfMonkeys, submitButton ) </code></pre> <p>In v0.9, it will be transformed to this JS instead:</p> <pre lang="javascript{2,3}"><code>React.DOM.div(null, "Monkeys:", listOfMonkeys, " ", submitButton ) </code></pre> <p>We believe this new behavior is more helpful and elimates cases where unwanted whitespace was previously added.</p> <p>In cases where you want to preserve the space adjacent to a newline, you can write <code>{'Monkeys: '}</code> or <code>Monkeys:{' '}</code> in your JSX source. We've included a script to do an automated codemod of your JSX source tree that preserves the old whitespace behavior by adding and removing spaces appropriately. You can <a href="https://github.com/facebook/react/blob/master/npm-jsx_whitespace_transformer/README.md">install jsx_whitespace_transformer from npm</a> and run it over your source tree to modify files in place. The transformed JSX files will preserve your code's existing whitespace behavior.</p> <h2>Changelog</h2> <h3>React Core</h3> <h4>Breaking Changes</h4> <ul> <li>The lifecycle methods <code>componentDidMount</code> and <code>componentDidUpdate</code> no longer receive the root node as a parameter; use <code>this.getDOMNode()</code> instead</li> <li>Whenever a prop is equal to <code>undefined</code>, the default value returned by <code>getDefaultProps</code> will now be used instead</li> <li><code>React.unmountAndReleaseReactRootNode</code> was previously deprecated and has now been removed</li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/react/blob/master/CHANGELOG.md">react-refresh's changelog</a>.</em></p> <blockquote> <h2>0.9.0 (February 20, 2014)</h2> <h3>React Core</h3> <h4>Breaking Changes</h4> <ul> <li>The lifecycle methods <code>componentDidMount</code> and <code>componentDidUpdate</code> no longer receive the root node as a parameter; use <code>this.getDOMNode()</code> instead</li> <li>Whenever a prop is equal to <code>undefined</code>, the default value returned by <code>getDefaultProps</code> will now be used instead</li> <li><code>React.unmountAndReleaseReactRootNode</code> was previously deprecated and has now been removed</li> <li><code>React.renderComponentToString</code> is now synchronous and returns the generated HTML string</li> <li>Full-page rendering (that is, rendering the <code><html></code> tag using React) is now supported only when starting with server-rendered markup</li> <li>On mouse wheel events, <code>deltaY</code> is no longer negated</li> <li>When prop types validation fails, a warning is logged instead of an error thrown (with the production build of React, type checks are now skipped for performance)</li> <li>On <code>input</code>, <code>select</code>, and <code>textarea</code> elements, <code>.getValue()</code> is no longer supported; use <code>.getDOMNode().value</code> instead</li> <li><code>this.context</code> on components is now reserved for internal use by React</li> </ul> <h4>New Features</h4> <ul> <li>React now never rethrows errors, so stack traces are more accurate and Chrome's purple break-on-error stop sign now works properly</li> <li>Added support for SVG tags <code>defs</code>, <code>linearGradient</code>, <code>polygon</code>, <code>radialGradient</code>, <code>stop</code></li> <li>Added support for more attributes: <ul> <li><code>crossOrigin</code> for CORS requests</li> <li><code>download</code> and <code>hrefLang</code> for <code><a></code> tags</li> <li><code>mediaGroup</code> and <code>muted</code> for <code><audio></code> and <code><video></code> tags</li> <li><code>noValidate</code> and <code>formNoValidate</code> for forms</li> <li><code>property</code> for Open Graph <code><meta></code> tags</li> <li><code>sandbox</code>, <code>seamless</code>, and <code>srcDoc</code> for <code><iframe></code> tags</li> <li><code>scope</code> for screen readers</li> <li><code>span</code> for <code><colgroup></code> tags</li> </ul> </li> <li>Added support for defining <code>propTypes</code> in mixins</li> <li>Added <code>any</code>, <code>arrayOf</code>, <code>component</code>, <code>oneOfType</code>, <code>renderable</code>, <code>shape</code> to <code>React.PropTypes</code></li> <li>Added support for <code>statics</code> on component spec for static component methods</li> <li>On all events, <code>.currentTarget</code> is now properly set</li> <li>On keyboard events, <code>.key</code> is now polyfilled in all browsers for special (non-printable) keys</li> <li>On clipboard events, <code>.clipboardData</code> is now polyfilled in IE</li> <li>On drag events, <code>.dragTransfer</code> is now present</li> <li>Added support for <code>onMouseOver</code> and <code>onMouseOut</code> in addition to the existing <code>onMouseEnter</code> and <code>onMouseLeave</code> events</li> <li>Added support for <code>onLoad</code> and <code>onError</code> on <code><img></code> elements</li> <li>Added support for <code>onReset</code> on <code><form></code> elements</li> <li>The <code>autoFocus</code> attribute is now polyfilled consistently on <code>input</code>, <code>select</code>, and <code>textarea</code></li> </ul> <h4>Bug Fixes</h4> <ul> <li>React no longer adds an <code>__owner__</code> property to each component's <code>props</code> object; passed-in props are now never mutated</li> <li>When nesting top-level components (e.g., calling <code>React.renderComponent</code> within <code>componentDidMount</code>), events now properly bubble to the parent component</li> <li>Fixed a case where nesting top-level components would throw an error when updating</li> <li>Passing an invalid or misspelled propTypes type now throws an error</li> <li>On mouse enter/leave events, <code>.target</code>, <code>.relatedTarget</code>, and <code>.type</code> are now set properly</li> <li>On composition events, <code>.data</code> is now properly normalized in IE9 and IE10</li> <li>CSS property values no longer have <code>px</code> appended for the unitless properties <code>columnCount</code>, <code>flex</code>, <code>flexGrow</code>, <code>flexShrink</code>, <code>lineClamp</code>, <code>order</code>, <code>widows</code></li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/facebook/react/commits/v0.9.0/packages/react">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/1861 Reviewed By: passy Differential Revision: D26047350 Pulled By: mweststrate fbshipit-source-id: ee94f7e41970ac8b01eeb4719b7a9dd0ac556398
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8a39174a56
commit
b4319387ad
@@ -84,7 +84,7 @@
|
|||||||
"metro-runtime": "^0.63.0",
|
"metro-runtime": "^0.63.0",
|
||||||
"mock-fs": "^4.13.0",
|
"mock-fs": "^4.13.0",
|
||||||
"pretty-format": "^26.1.0",
|
"pretty-format": "^26.1.0",
|
||||||
"react-refresh": "^0.8.1",
|
"react-refresh": "^0.9.0",
|
||||||
"redux-mock-store": "^1.0.1",
|
"redux-mock-store": "^1.0.1",
|
||||||
"ts-jest": "^26.0.0"
|
"ts-jest": "^26.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -218,7 +218,7 @@
|
|||||||
"pretty-format": "^26.1.0",
|
"pretty-format": "^26.1.0",
|
||||||
"promisify-child-process": "^4.1.0",
|
"promisify-child-process": "^4.1.0",
|
||||||
"react-async": "^10.0.0",
|
"react-async": "^10.0.0",
|
||||||
"react-refresh": "^0.8.1",
|
"react-refresh": "^0.9.0",
|
||||||
"recursive-readdir": "^2.2.2",
|
"recursive-readdir": "^2.2.2",
|
||||||
"redux": "^4.0.0",
|
"redux": "^4.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
|||||||
@@ -10546,10 +10546,10 @@ react-refresh@^0.4.0:
|
|||||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.2.tgz#54a277a6caaac2803d88f1d6f13c1dcfbd81e334"
|
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.2.tgz#54a277a6caaac2803d88f1d6f13c1dcfbd81e334"
|
||||||
integrity sha512-kv5QlFFSZWo7OlJFNYbxRtY66JImuP2LcrFgyJfQaf85gSP+byzG21UbDQEYjU7f//ny8rwiEkO6py2Y+fEgAQ==
|
integrity sha512-kv5QlFFSZWo7OlJFNYbxRtY66JImuP2LcrFgyJfQaf85gSP+byzG21UbDQEYjU7f//ny8rwiEkO6py2Y+fEgAQ==
|
||||||
|
|
||||||
react-refresh@^0.8.1:
|
react-refresh@^0.9.0:
|
||||||
version "0.8.3"
|
version "0.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
|
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.9.0.tgz#71863337adc3e5c2f8a6bfddd12ae3bfe32aafbf"
|
||||||
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
|
integrity sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==
|
||||||
|
|
||||||
react-resize-detector@^5.2.0:
|
react-resize-detector@^5.2.0:
|
||||||
version "5.2.0"
|
version "5.2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user