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 PR contains the following updates:
22.1.0
->23.0.1
4.28.5
->5.0.0
Release Notes
jsdom/jsdom (jsdom)
v23.0.1
Compare Source
canvas
peer dependency.v23.0.0
Compare Source
facebook/react (react-devtools-inline)
v5.0.0
Compare Source
Major changes
document.createElement
instead of generating HTML. Previously we would generate a large string of HTML and then setnode.innerHTML
. At the time, this was decided to be faster than usingdocument.createElement
for the majority of cases and browsers that we supported. Browsers have continued to improve and so overwhelmingly this is no longer true. By usingcreateElement
we can make other parts of React faster. (@sophiebits in #5205)data-reactid
is no longer on every node. As a result of usingdocument.createElement
, we can prime the node cache as we create DOM nodes, allowing us to skip a potential lookup (which used thedata-reactid
attribute). Root nodes will have adata-reactroot
attribute and server generated markup will still containdata-reactid
. (@sophiebits in #5205)<span>
s. ReactDOM will now render plain text nodes interspersed with comment nodes that are used for demarcation. This gives us the same ability to update individual pieces of text, without creating extra nested nodes. If you were targeting these<span>
s in your CSS, you will need to adjust accordingly. You can always render them explicitly in your components. (@mwiencek in #5753)null
now uses comment nodes. Previouslynull
would render to<noscript>
elements. We now use comment nodes. This may cause issues if making use of:nth-child
CSS selectors. While we consider this rendering behavior an implementation detail of React, it's worth noting the potential problem. (@sophiebits in #5451)null
. We added support for defining stateless components as functions in React 0.14. However, React 0.14 still allowed you to define a class component without extendingReact.Component
or usingReact.createClass()
, so we couldn’t reliably tell if your component is a function or a class, and did not allow returningnull
from it. This issue is solved in React 15, and you can now returnnull
from any component, whether it is a class or a function. (@jimfb in #5884)React.DOM
element helper, but JSX andReact.createElement
work on all tag names.) All SVG attributes that are implemented by the browsers should be supported too. If you find any attributes that we have missed, please let us know in this issue. (@zpao in #6243)Breaking changes
<span>
s.React.cloneElement()
now resolvesdefaultProps
. We fixed a bug inReact.cloneElement()
that some components may rely on. If some of theprops
received bycloneElement()
areundefined
, it used to return an element withundefined
values for those props. We’re changing it to be consistent withcreateElement()
. Now anyundefined
props passed tocloneElement()
are resolved to the corresponding component’sdefaultProps
. (@truongduy134 in #5997)ReactPerf.getLastMeasurements()
is opaque. This change won’t affect applications but may break some third-party tools. We are revampingReactPerf
implementation and plan to release it during the 15.x cycle. The internal performance measurement format is subject to change so, for the time being, we consider the return value ofReactPerf.getLastMeasurements()
an opaque data structure that should not be relied upon. (@gaearon in #6286)Removed deprecations
These deprecations were introduced nine months ago in v0.14 with a warning and are removed:
React
top-level export:findDOMNode
,render
,renderToString
,renderToStaticMarkup
, andunmountComponentAtNode
. As a reminder, they are now available onReactDOM
andReactDOMServer
. (@jimfb in #5832)batchedUpdates
andcloneWithProps
. (@jimfb in #5859, @zpao in #6016)setProps
,replaceProps
, andgetDOMNode
. (@jimfb in #5570)react/addons
entry point is removed. As a reminder, you should use separatereact-addons-*
packages instead. This only applies if you use the CommonJS builds. (@gaearon in #6285)children
to void elements like<input>
was deprecated, and now throws an error. (@jonhester in #3372)refs
(e.g.this.refs.div.props
) were deprecated, and are removed now. (@jimfb in #5495)New deprecations, introduced with a warning
Each of these changes will continue to work as before with a new warning until the release of React 16 so you can upgrade your code gradually.
LinkedStateMixin
andvalueLink
are now deprecated due to very low popularity. If you need this, you can use a wrapper component that implements the same behavior: react-linked-input. (@jimfb in #6127)<input value={null}>
as a request to clear the input. However, React 0.14 has been ignoringvalue={null}
. React 15 warns you on anull
input value and offers you to clarify your intention. To fix the warning, you may explicitly pass an empty string to clear a controlled input, or passundefined
to make the input uncontrolled. (@antoaravinth in #5048)ReactPerf.printDOM()
was renamed toReactPerf.printOperations()
, andReactPerf.getMeasurementsSummaryMap()
was renamed toReactPerf.getWasted()
. (@gaearon in #6287)New helpful warnings
px
automatically. This version now warns in this case (ex: writingstyle={{width: '300'}}
. Unitless number values likewidth: 300
are unchanged. (@pluma in #5140)ref
andkey
from the props. (@prometheansacrifice in #5744)props
object tosuper()
in the constructor. (@prometheansacrifice in #5346)setState()
insidegetChildContext()
. (@raineroviir in #6121)onclick
which should beonClick
. (@ali in #5361)NaN
values instyle
. (@jontewks in #5811)value
anddefaultValue
for an input. (@mgmcdermott in #5823)onFocusIn
oronFocusOut
handlers as they are unnecessary in React. (@jontewks in #6296)ReactDOM.render()
,this.setState()
, orthis.forceUpdate()
. (@conorhastings in #5193 and @gaearon in #6310)TestUtils.Simulate()
now prints a helpful message if you attempt to use it with shallow rendering. (@conorhastings in #5358)arrayOf()
andobjectOf()
provide better error messages for invalid arguments. (@chicoxyzzy in #5390)Notable bug fixes
componentWillReceiveProps()
lifecycle method is now consistently called whencontext
changes. (@milesj in #5787)React.cloneElement()
doesn’t append slash to an existingkey
when used insideReact.Children.map()
. (@ianobermiller in #5892)cite
andprofile
HTML attributes. (@AprilArcus in #6094 and @saiichihashimoto in #6032)cssFloat
,gridRow
andgridColumn
CSS properties. (@stevenvachon in #6133 and @mnordick in #4779)borderImageOutset
,borderImageWidth
,borderImageSlice
,floodOpacity
,strokeDasharray
, andstrokeMiterlimit
as unitless CSS properties. (@rofrischmann in #6210 and #6270)onAnimationStart
,onAnimationEnd
,onAnimationIteration
,onTransitionEnd
, andonInvalid
events. Support foronLoad
has been added toobject
elements. (@tomduncalf in #5187, @milesj in #6005, and @ara4n in #5781)href={null}
) now results in the forceful removal, no longer trying to set to the default value used by browsers in the absence of a value. (@syranide in #1510)children
to strings for Web Components. (@jimfb in #5093)<use>
events. (@edmellum in #5720)<select>
is unmounted while itsonChange
handler is executing. (@sambev in #6028)ref
. (@yiminghe in #6095)Object.is
is used in a number of places to compare values, which leads to fewer false positives, especially involvingNaN
. In particular, this affects theshallowCompare
add-on. (@chicoxyzzy in #6132)Other improvements
loose-envify
instead ofenvify
so it installs fewer transitive dependencies. (@qerub in #6303)getMountedInstance()
. (@glenjamin in #4918)render()
. (@simonewebdesign in #5411)Object.create
andObject.freeze
in older environments. It still, however, requires ES5 shims in those environments. (@dgreensp in #4959)data-
attributes with names that start with numbers. (@nLight in #5216)suppressContentEditableWarning
prop for components like Draft.js that intentionally managecontentEditable
children with React. (@mxstbr in #6112)createClass()
on complex specs. (@sophiebits in #5550)Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.