chore(deps): update dependency react-test-renderer to v16 #2400
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency react-test-renderer from
v15.6.1
tov16.2.0
Note: This PR was created on a configured schedule ("every weekend" in timezone
Europe/Paris
) and will not receive updates outside those times.Release Notes
v15.6.2
All Packages
React DOM
document.documentMode
would trigger IE detection in other browsers, breaking change events. ([@aweary] in #10032)onChange
would not fire withdefaultChecked
on radio inputs. ([@jquense] in #10156)controlList
attribute to DOM property whitelist ([@nhunzaker] in #9940)v16.0.0
New JS Environment Requirements
New Features
render
. (Docs coming soon!)ReactDOM.createPortal()
. (Docs coming soon!)ReactDOMServer.renderToNodeStream()
andReactDOMServer.renderToStaticNodeStream()
. ([@aickin] in #10425, #10044, #10039, #10024, #9264, and others.)Breaking Changes
ReactDOM.render()
andReactDOM.unstable_renderIntoContainer()
now returnnull
if called from inside a lifecycle method.setState
behavior:setState
with null no longer triggers an update. This allows you to decide in an updater function if you want to re-render.setState
directly in render always causes an update. This was not previously the case. Regardless, you should not be callingsetState
from render.setState
callback (second argument) now fires immediately aftercomponentDidMount
/componentDidUpdate
instead of after all components have rendered.<A />
with<B />
,B.componentWillMount
now always happens beforeA.componentWillUnmount
. Previously,A.componentWillUnmount
could fire first in some cases.ref
to a component would always detach the ref before that component's render is called. Now, we change theref
later, when applying the changes to the DOM.ReactDOM.unmountComponentAtNode
. See this example.componentDidUpdate
lifecycle no longer receivesprevContext
param. ([@bvaughn] in #8631)componentDidUpdate()
because DOM refs are not available. This also makes it consistent withcomponentDidMount()
(which does not get called in previous versions either).unstable_batchedUpdates()
anymore.ReactDOM.unstable_batchedUpdates
now only takes one extra argument after the callback.react/dist/react.js
→react/umd/react.development.js
react/dist/react.min.js
→react/umd/react.production.min.js
react-dom/dist/react-dom.js
→react-dom/umd/react-dom.development.js
react-dom/dist/react-dom.min.js
→react-dom/umd/react-dom.production.min.js
ReactDOM.hydrate
instead ofReactDOM.render
if you're reviving server rendered HTML. Keep usingReactDOM.render
if you're just doing client-side rendering.Removed Deprecations
react-with-addons.js
build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.React.createClass
is now available as create-react-class,React.PropTypes
as prop-types,React.DOM
as react-dom-factories, react-addons-test-utils as react-dom/test-utils, and shallow renderer as react-test-renderer/shallow. See 15.5.0 and 15.6.0 blog posts for instructions on migrating code and automated codemods.v16.1.0
Discontinuing Bower Releases
Starting with 16.1.0, we will no longer be publishing new releases on Bower. You can continue using Bower for old releases, or point your Bower configs to the React UMD builds hosted on unpkg that mirror npm releases and will continue to be updated.
All Packages
React
React.Children
utilities. ([@MatteoVH] in #11378)render
method but doesn't extend a known base class. ([@sw-yx] in #11168)React DOM
on
as a custom attribute for AMP. ([@nuc] in #11153)onMouseEnter
andonMouseLeave
firing on wrong elements. ([@gaearon] in #11164)null
showing up in a warning instead of the component stack. ([@gaearon] in #10915)tabIndex
not getting applied to SVG elements. ([@gaearon] in #11034)dangerouslySetInnerHTML
in IE. ([@OriR] in #11108)form.reset()
to respectdefaultValue
on uncontrolled<select>
. ([@aweary] in #11057)<textarea>
placeholder not rendering on IE11. ([@gaearon] in #11177)<dialog>
element. ([@gaearon] in #11035)componentDidReceiveProps
method. ([@iamtommcc] in #11479)contentEditable
andchildren
. ([@Ethan-Arrowood] in #11208)select
gets nullvalue
. ([@Hendeca] in #11141)React DOM Server
suppressHydrationWarning
attribute for intentional client/server text mismatches. ([@sebmarkbage] in #11126)autoFocus
attribute into SSR markup. ([@gaearon] in #11192)React Test Renderer and Test Utils
setState()
calls incomponentWillMount()
in shallow renderer. ([@Hypnosphi] in #11167)shouldComponentUpdate()
afterforceUpdate()
. ([@d4rky-pl] in #11239 and #11439)forceUpdate()
andReact.PureComponent
correctly. ([@koba04] in #11440)package.json
dependency. ([@gaearon] in #11340)React ART
package.json
dependency. ([@gaearon] in #11341)react-art/Circle
,react-art/Rectangle
, andreact-art/Wedge
. ([@gaearon] in #11343)React Reconciler (Experimental)
React Call Return (Experimental)
v16.1.1
React
React DOM
capture
attribute. ([@maxschmeling] in #11424)React DOM Server
ReactDOMServer
public API. ([@travi] in #11531)autoFocus={false}
attribute on the server. ([@gaearon] in #11543)React Reconciler
v16.2.0
React
Fragment
as named export to React. ([@clemmy] in #10783)React.Children
utilities. ([@MatteoVH] in #11422)React DOM
onChange
event in some cases. ([@jquense] in #11028)React Test Renderer
setState()
callback firing too early when called fromcomponentWillMount
. ([@accordeiro] in #11507)React Reconciler
react-reconciler/reflection
with utilities useful to custom renderers. ([@rivenhk] in #11683)Internal Changes
This PR has been generated by Renovate Bot.