Changelog
16.5.1 (September 13, 2018)
React.forwardRef
receives an unexpected number of arguments. (@andresroberto in #13636)isReactComponent
. (@gaearon in #13608)react-dom/profiling
with schedule/tracking
. (@bvaughn in #13605)ForwardRef
component defines a displayName
, use it in warnings. (@probablyup in #13615)Changelog
16.5.0 (September 5, 2018)
React.forwardRef
render function doesn't take exactly two arguments (@bvaughn in #13168)createElement
by mistake (@DCtheTall in #13131)onRender
until after mutations (@bvaughn in #13572)react-dom/profiling
entry point alias for profiling in production (@bvaughn in #13570)onAuxClick
event for browsers that support it (@jquense in #11571)movementX
and movementY
fields to mouse events (@jasonwilliams in #9018)tangentialPressure
and twist
fields to pointer events (@motiz88 in #13374)focusable
SVG attribute (@gaearon in #13339)<noscript>
on the client when hydrating (@Ephem in #13537)gridArea
to be treated as a unitless CSS property (@mgol in #13550)compositionend
event when typing Korean on IE11 (@crux153 in #12563)children
in the <option>
tag (@Slowyn in #13261, @gaearon in #13465)checked
attribute not getting initially set on the input
(@dilidili in #13114)dangerouslySetInnerHTML
when __html
is not a string (@gaearon in #13353)onChange
to fire on falsy values too (@nicolevy in #12628)submit
and reset
buttons getting an empty label (@ellsclytn in #12780)onSelect
event not being triggered after drag and drop (@gaearon in #13422)onClick
event not working inside a portal on iOS (@aweary in #11927)onChange
to not fire in some cases (@gaearon in #13423)"false"
or "true"
is the value of a boolean DOM prop (@motiz88 in #13372)this.state
is initialized to props
(@veekas in #11658)style
on hydration in IE due to noisy false positives (@mgol in #13534)StrictMode
in the component stack (@gaearon in #13240)window.event
in IE (@ConradIrwin in #11696)folder/index.js
naming convention (@gaearon in #12059)getDerivedStateFromProps
without initialized state (@flxwu in #13317)<webview>
tag without warnings (@philipp-spiess in #13301)e.preventDefault()
was called (@gaearon in #13384)unstable_deferredUpdates
in favor of unstable_scheduleWork
from schedule
(@gaearon in #13488)dangerouslySetInnerHtml
in a selected <option>
(@mridgway in #13078)setTimeout
is missing (@dustinsoftware in #13088)this
in a functional component for shallow renderer to be undefined
(@koba04 in #13144)ReactTestUtils.mockComponent()
helper (@bvaughn in #13193)ReactDOM.createPortal
usage within the test renderer (@bvaughn in #12895)Changelog
16.4.2 (August 1, 2018)
Fix a potential XSS vulnerability when the attacker controls an attribute name (CVE-2018-6341
). This fix is available in the latest react-dom@16.4.2
, as well as in previous affected minor versions: react-dom@16.0.1
, react-dom@16.1.2
, react-dom@16.2.1
, and react-dom@16.3.3
. (@gaearon in #13302)
Fix a crash in the server renderer when an attribute is called hasOwnProperty
. This fix is only available in react-dom@16.4.2
. (@gaearon in #13303)
Changelog
16.4.1 (June 13, 2018)
type
changes from some other types to text
. (@spirosikmd in #12135)event.target
value for the onChange
event in IE9. (@nhunzaker in #12976)<React.Fragment />
from a component. (@philipp-spiess in #12966)Changelog
16.4.0 (May 23, 2018)
React.unstable_Profiler
component for measuring performance. (@bvaughn in #12745)getDerivedStateFromProps()
regardless of the reason for re-rendering. (@acdlite in #12600 and #12802)forwardRef()
on a deeper setState()
. (@gaearon in #12690)propTypes
on a context provider component. (@nicolevy in #12658)react-lifecycles-compat
in <StrictMode>
. (@bvaughn in #12644)forwardRef()
render function has propTypes
or defaultProps
. (@bvaughn in #12644)forwardRef()
and context consumers are displayed in the component stack. (@sophiebits in #12777)getDerivedStateFromProps()
support to match the new React DOM behavior. (@koba04 in #12676)testInstance.parent
crash when the parent is a fragment or another special node. (@gaearon in #12813)forwardRef()
components are now discoverable by the test renderer traversal methods. (@gaearon in #12725)setState()
updaters that return null
or undefined
. (@koba04 in #12756)Changelog
16.3.2 (April 16, 2018)
null
or undefined
to React.cloneElement
. (@nicolevy in #12534)<StrictMode>
. (@bvaughn in #12546)unstable_observedBits
API with nesting. (@gaearon in #12543)Changelog
16.3.1 (April 3, 2018)
Fragment
. (@heikkilamarko in #12504)setState()
in constructor. (@gaearon in #12532)getDerivedStateFromProps()
not getting applied in some cases. (@acdlite in #12528)Changelog
16.3.0 (March 29, 2018)
React.createRef()
API as an ergonomic alternative to callback refs. (@trueadm in #12162)React.forwardRef()
API to let components forward their refs to a child. (@bvaughn in #12346)React.Fragment
. (@XaveScor in #11823)React.unstable_AsyncComponent
with React.unstable_AsyncMode
. (@acdlite in #12117)setState()
on an unmounted component. (@sophiebits in #12347)getDerivedStateFromProps()
lifecycle and UNSAFE_
aliases for the legacy lifecycles. (@bvaughn in #12028)getSnapshotBeforeUpdate()
lifecycle. (@bvaughn in #12404)<React.StrictMode>
wrapper to help prepare apps for async rendering. (@bvaughn in #12083)onLoad
and onError
events on the <link>
tag. (@roderickhsiao in #11825)noModule
boolean attribute on the <script>
tag. (@aweary in #11900)onKeyPress
in more browsers. (@nstraub in #10514)value
and defaultValue
to ignore Symbol values. (@nhunzaker in #11741)opera
with a null
value. @alisherdavronov in #11854)<option selected>
. (@watadarkstar in #11821)ReactDOM.unstable_createPortal()
in favor of ReactDOM.createPortal()
. (@prometheansacrifice in #11747)React.Component
. (@wyze in #11993)this.state
of different components getting mixed up. (@sophiebits in #12323)toTree()
. (@maciej-ka in #12107 and @gaearon in #12154)null
for components that don't set it. (@jwbay in #11965)contextTypes
. (@koba04 in #11922)ReactIs.isValidElementType()
to help higher-order components validate their inputs. (@jamesreggio in #12483)react-reconciler/persistent
for building renderers that use persistent data structures. (@gaearon in #12156)finalizeInitialChildren()
. (@jquense in #11970)useSyncScheduling
from the host config. (@acdlite in #11771)