chore(deps): update react monorepo to v16.14.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| react (source) | 16.2.0 -> 16.14.0 |
||||
| react-test-renderer (source) | 16.2.0 -> 16.14.0 |
Release Notes
facebook/react
v16.14.0
React
- Add support for the new JSX transform. (@lunaruan in #18299)
v16.13.1
React DOM
- Fix bug in legacy mode Suspense where effect clean-up functions are not fired. This only affects users who use Suspense for data fetching in legacy mode, which is not technically supported. (@acdlite in #18238)
- Revert warning for cross-component updates that happen inside class render lifecycles (
componentWillReceiveProps,shouldComponentUpdate, and so on). (@gaearon in #18330)
v16.13.0
React
- Warn when a string ref is used in a manner that's not amenable to a future codemod (@lunaruan in #17864)
- Deprecate
React.createFactory()(@trueadm in #17878)
React DOM
- Warn when changes in
stylemay cause an unexpected collision (@sophiebits in #14181, #18002) - Warn when a function component is updated during another component's render phase (@acdlite in #17099)
- Deprecate
unstable_createPortal(@trueadm in #17880) - Fix
onMouseEnterbeing fired on disabled buttons (@AlfredoGJ in #17675) - Call
shouldComponentUpdatetwice when developing inStrictMode(@bvaughn in #17942) - Add
versionproperty to ReactDOM (@ealush in #15780) - Don't call
toString()ofdangerouslySetInnerHTML(@sebmarkbage in #17773) - Show component stacks in more warnings (@gaearon in #17922, #17586)
Concurrent Mode (Experimental)
- Warn for problematic usages of
ReactDOM.createRoot()(@trueadm in #17937) - Remove
ReactDOM.createRoot()callback params and added warnings on usage (@bvaughn in #17916) - Don't group Idle/Offscreen work with other work (@sebmarkbage in #17456)
- Adjust
SuspenseListCPU bound heuristic (@sebmarkbage in #17455) - Add missing event plugin priorities (@trueadm in #17914)
- Fix
isPendingonly being true when transitioning from inside an input event (@acdlite in #17382) - Fix
React.memocomponents dropping updates when interrupted by a higher priority update (@acdlite in #18091) - Don't warn when suspending at the wrong priority (@gaearon in #17971)
- Fix a bug with rebasing updates (@acdlite and @sebmarkbage in #17560, #17510, #17483, #17480)
v16.12.0
React DOM
React Is
v16.11.0
React DOM
- Fix
mouseenterhandlers from firing twice inside nested React containers. @yuanoook in #16928 - Remove
unstable_createRootandunstable_createSyncRootexperimental APIs. (These are available in the Experimental channel ascreateRootandcreateSyncRoot.) (@acdlite in #17088)
v16.10.2
React DOM
- Fix regression in react-native-web by restoring order of arguments in event plugin extractors (@necolas in #16978)
v16.10.1
React DOM
- Fix regression in Next.js apps by allowing Suspense mismatch during hydration to silently proceed (@sebmarkbage in #16943)
v16.10.0
React DOM
- Fix edge case where a hook update wasn't being memoized. (@sebmarkbage in #16359)
- Fix heuristic for determining when to hydrate, so we don't incorrectly hydrate during an update. (@sebmarkbage in #16739)
- Clear additional fiber fields during unmount to save memory. (@trueadm in #16807)
- Fix bug with required text fields in Firefox. (@halvves in #16578)
- Prefer
Object.isinstead of inline polyfill, when available. (@ku8ar in #16212) - Fix bug when mixing Suspense and error handling. (@acdlite in #16801)
Scheduler (Experimental)
- Improve queue performance by switching its internal data structure to a min binary heap. (@acdlite in #16245)
- Use
postMessageloop with short intervals instead of attempting to align to frame boundaries withrequestAnimationFrame. (@acdlite in #16214)
useSubscription
- Avoid tearing issue when a mutation happens and the previous update is still in progress. (@bvaughn in #16623)
v16.9.0
React
- Add
<React.Profiler>API for gathering performance measurements programmatically. (@bvaughn in #15172) - Remove
unstable_ConcurrentModein favor ofunstable_createRoot. (@acdlite in #15532)
React DOM
- Deprecate old names for the
UNSAFE_*lifecycle methods. (@bvaughn in #15186 and @threepointone in #16103) - Deprecate
javascript:URLs as a common attack surface. (@sebmarkbage in #15047) - Deprecate uncommon "module pattern" (factory) components. (@sebmarkbage in #15145)
- Add support for the
disablePictureInPictureattribute on<video>. (@eek in #15334) - Add support for
onLoadevent for<embed>. (@cherniavskii in #15614) - Add support for editing
useStatestate from DevTools. (@bvaughn in #14906) - Add support for toggling Suspense from DevTools. (@gaearon in #15232)
- Warn when
setStateis called fromuseEffect, creating a loop. (@gaearon in #15180) - Fix a memory leak. (@paulshen in #16115)
- Fix a crash inside
findDOMNodefor components wrapped in<Suspense>. (@acdlite in #15312) - Fix pending effects from being flushed too late. (@acdlite in #15650)
- Fix incorrect argument order in a warning message. (@brickspert in #15345)
- Fix hiding Suspense fallback nodes when there is an
!importantstyle. (@acdlite in #15861 and #15882) - Slightly improve hydration performance. (@bmeurer in #15998)
React DOM Server
React Test Utilities and Test Renderer
- Add
act(async () => ...)for testing asynchronous state updates. (@threepointone in #14853) - Add support for nesting
actfrom different renderers. (@threepointone in #16039 and #16042) - Warn in Strict Mode if effects are scheduled outside an
act()call. (@threepointone in #15763 and #16041) - Warn when using
actfrom the wrong renderer. (@threepointone in #15756)
ESLint Plugin: React Hooks
v16.8.6
React DOM
- Fix an incorrect bailout in
useReducer(). (@acdlite in #15124) - Fix iframe warnings in Safari DevTools. (@renanvalentin in #15099)
- Warn if
contextTypeis set toContext.Consumerinstead ofContext. (@aweary in #14831) - Warn if
contextTypeis set to invalid values. (@gaearon in #15142)
v16.8.5
React DOM
- Don't set the first option as selected in select tag with
sizeattribute. (@kulek1 in #14242) - Improve the
useEffect(async () => ...)warning message. (@gaearon in #15118) - Improve the error message sometimes caused by duplicate React. (@jaredpalmer in #15139)
React DOM Server
React Shallow Renderer
- Fix
setStatein shallow renderer to work with Hooks. (@gaearon in #15120) - Fix shallow renderer to support
React.memo. (@aweary in #14816) - Fix shallow renderer to support Hooks inside
forwardRef. (@eps1lon in #15100)
v16.8.4
React DOM and other renderers
- Fix a bug where DevTools caused a runtime error when inspecting a component that used a
useContexthook. (@bvaughn in #14940)
v16.8.3
React DOM
- Fix a bug that caused inputs to behave incorrectly in UMD builds. (@gaearon in #14914)
- Fix a bug that caused render phase updates to be discarded. (@gaearon in #14852)
React DOM Server
- Unwind the context stack when a stream is destroyed without completing, to prevent incorrect values during a subsequent render. (@overlookmotel in #14706)
ESLint Plugin for React Hooks
v16.8.2
React DOM
- Fix
ReactDOM.renderbeing ignored insideuseEffect. (@gaearon in #14799) - Fix a crash when unmounting empty portals. (@gaearon in #14820)
- Fix
useImperativeHandleto work correctly when no deps are specified. (@gaearon in #14801) - Fix
crossOriginattribute to work in SVGimageelements. (@aweary in #14832) - Fix a false positive warning when using Suspense with Hooks. (@gaearon in #14821)
React Test Utils and React Test Renderer
- Include component stack into the
act()warning. (@threepointone in #14855)
v16.8.1
React DOM and React Test Renderer
React Test Utils
- Fix a crash in Node environment. (@threepointone in #14768)
v16.8.0
React
- Add Hooks — a way to use state and other React features without writing a class. (@acdlite et al. in #13968)
- Improve the
useReducerHook lazy initialization API. (@acdlite in #14723)
React DOM
- Bail out of rendering on identical values for
useStateanduseReducerHooks. (@acdlite in #14569) - Use
Object.isalgorithm for comparinguseStateanduseReducervalues. (@Jessidhia in #14752) - Don’t compare the first argument passed to
useEffect/useMemo/useCallbackHooks. (@acdlite in #14594) - Support synchronous thenables passed to
React.lazy(). (@gaearon in #14626) - Render components with Hooks twice in Strict Mode (DEV-only) to match class behavior. (@gaearon in #14654)
- Warn about mismatching Hook order in development. (@threepointone in #14585 and @acdlite in #14591)
- Effect clean-up functions must return either
undefinedor a function. All other values, includingnull, are not allowed. @acdlite in #14119
React Test Renderer and Test Utils
- Support Hooks in the shallow renderer. (@trueadm in #14567)
- Fix wrong state in
shouldComponentUpdatein the presence ofgetDerivedStateFromPropsfor Shallow Renderer. (@chenesan in #14613) - Add
ReactTestRenderer.act()andReactTestUtils.act()for batching updates so that tests more closely match real behavior. (@threepointone in #14744)
ESLint Plugin: React Hooks
- Initial release. (@calebmer in #13968)
- Fix reporting after encountering a loop. (@calebmer and @Yurickh in #14661)
- Don't consider throwing to be a rule violation. (@sophiebits in #14040)
v16.7.0
React DOM
- Fix performance of
React.lazyfor large numbers of lazily-loaded components. (@acdlite in #14429) - Clear fields on unmount to avoid memory leaks. (@trueadm in #14276)
- Fix bug with SSR and context when mixing
react-dom/[email protected]andreact@<16.6. (@gaearon in #14291) - Fix a performance regression in profiling mode. (@bvaughn in #14383)
Scheduler (Experimental)
- Post to MessageChannel instead of window. (@acdlite in #14234)
- Reduce serialization overhead. (@developit in #14249)
- Fix fallback to
setTimeoutin testing environments. (@bvaughn in #14358) - Add methods for debugging. (@mrkev in #14053)
v16.6.3
React DOM
- Fix bugs in
Suspenseandlazy. (@acdlite in #14133, #14157, and #14164) - Fix highlighting of
React.memoupdates in React DevTools. (@bvaughn in #14141) - Fix interaction of Suspense with the React Profiler. (@bvaughn in #14065)
- Fix a false positive warning when using Suspense. (@acdlite in #14158)
React DOM Server
- Fix incorrect sharing of context state between
renderToNodeStream()calls. (@sebmarkbage in #14182) - Add a warning about incorrect usage of the context API. (@trueadm in #14033)
v16.6.2
This release was published in a broken state and should be skipped.
v16.6.1
React DOM
- Fallback should not remount every time a promise resolves. (@acdlite in #14083)
- Fix bug where Suspense keeps showing fallback even after everything finishes loading. (@acdlite in #14083)
- Fix a crash when Suspense finishes loading in IE11. (@sophiebits in #14126)
- Fix unresolved default props in lifecycle methods of a lazy component. (@gaearon in #14112)
- Fix bug when recovering from an error thrown during complete phase. (@gaearon in #14104)
Scheduler (Experimental)
v16.6.0
React
- Add
React.memo()as an alternative toPureComponentfor functions. (@acdlite in #13748) - Add
React.lazy()for code splitting components. (@acdlite in #13885) React.StrictModenow warns about legacy context API. (@bvaughn in #13760)React.StrictModenow warns aboutfindDOMNode. (@sebmarkbage in #13841)- Rename
unstable_AsyncModetounstable_ConcurrentMode. (@trueadm in #13732) - Rename
unstable_PlaceholdertoSuspense, anddelayMstomaxDuration. (@gaearon in #13799 and @sebmarkbage in #13922)
React DOM
- Add
contextTypeas a more ergonomic way to subscribe to context from a class. (@bvaughn in #13728) - Add
getDerivedStateFromErrorlifecycle method for catching errors in a future asynchronous server-side renderer. (@bvaughn in #13746) - Warn when
<Context>is used instead of<Context.Consumer>. (@trueadm in #13829) - Fix gray overlay on iOS Safari. (@philipp-spiess in #13778)
- Fix a bug caused by overwriting
window.eventin development. (@sergei-startsev in #13697)
React DOM Server
- Add support for
React.memo(). (@alexmckenley in #13855) - Add support for
contextType. (@alexmckenley and @sebmarkbage in #13889)
Scheduler (Experimental)
- Rename the package to
scheduler. (@gaearon in #13683) - Support priority levels, continuations, and wrapped callbacks. (@acdlite in #13720 and #13842)
- Improve the fallback mechanism in non-DOM environments. (@acdlite in #13740)
- Schedule
requestAnimationFrameearlier. (@acdlite in #13785) - Fix the DOM detection to be more thorough. (@trueadm in #13731)
- Fix bugs with interaction tracing. (@bvaughn in #13590)
- Add the
envifytransform to the package. (@mridgway in #13766)
v16.5.2
React DOM
- Fixed a recent
<iframe>regression (@JSteunou in #13650) - Fix
updateWrapperso that<textarea>s no longer re-render when data is unchanged (@joelbarbosa in #13643)
Schedule (Experimental)
- Renaming "tracking" API to "tracing" (@bvaughn in #13641)
- Add UMD production+profiling entry points (@bvaughn in #13642)
- Refactored
scheduleto remove some React-isms and improve performance for when deferred updates time out (@acdlite in #13582)
v16.5.1
React
- Improve the warning when
React.forwardRefreceives an unexpected number of arguments. (@andresroberto in #13636)
React DOM
- Fix a regression in unstable exports used by React Native Web. (@aweary in #13598)
- Fix a crash when component defines a method called
isReactComponent. (@gaearon in #13608) - Fix a crash in development mode in IE9 when printing a warning. (@link-alex in #13620)
- Provide a better error message when running
react-dom/profilingwithschedule/tracking. (@bvaughn in #13605) - If a
ForwardRefcomponent defines adisplayName, use it in warnings. (@probablyup in #13615)
Schedule (Experimental)
v16.5.0
React
- Add a warning if
React.forwardRefrender function doesn't take exactly two arguments (@bvaughn in #13168) - Improve the error message when passing an element to
createElementby mistake (@DCtheTall in #13131) - Don't call profiler
onRenderuntil after mutations (@bvaughn in #13572)
React DOM
- Add support for React DevTools Profiler (@bvaughn in #13058)
- Add
react-dom/profilingentry point alias for profiling in production (@bvaughn in #13570) - Add
onAuxClickevent for browsers that support it (@jquense in #11571) - Add
movementXandmovementYfields to mouse events (@jasonwilliams in #9018) - Add
tangentialPressureandtwistfields to pointer events (@motiz88 in #13374) - Minimally support iframes (nested browsing contexts) in selection event handling (@acusti in #12037)
- Support passing booleans to the
focusableSVG attribute (@gaearon in #13339) - Ignore
<noscript>on the client when hydrating (@Ephem in #13537) - Fix
gridAreato be treated as a unitless CSS property (@mgol in #13550) - Fix incorrect data in
compositionendevent when typing Korean on IE11 (@crux153 in #12563) - Fix a crash when using dynamic
childrenin the<option>tag (@Slowyn in #13261, @gaearon in #13465) - Fix the
checkedattribute not getting initially set on theinput(@dilidili in #13114) - Fix hydration of
dangerouslySetInnerHTMLwhen__htmlis not a string (@gaearon in #13353) - Fix a warning about missing controlled
onChangeto fire on falsy values too (@nicolevy in #12628) - Fix
submitandresetbuttons getting an empty label (@ellsclytn in #12780) - Fix the
onSelectevent not being triggered after drag and drop (@gaearon in #13422) - Fix the
onClickevent not working inside a portal on iOS (@aweary in #11927) - Fix a performance issue when thousands of roots are re-rendered (@gaearon in #13335)
- Fix a performance regression that also caused
onChangeto not fire in some cases (@gaearon in #13423) - Handle errors in more edge cases gracefully (@gaearon in #13237 and @acdlite in #13269)
- Don't use proxies for synthetic events in development (@gaearon in #12171)
- Warn when
"false"or"true"is the value of a boolean DOM prop (@motiz88 in #13372) - Warn when
this.stateis initialized toprops(@veekas in #11658) - Don't compare
styleon hydration in IE due to noisy false positives (@mgol in #13534) - Include
StrictModein the component stack (@gaearon in #13240) - Don't overwrite
window.eventin IE (@ConradIrwin in #11696) - Improve component stack for the
folder/index.jsnaming convention (@gaearon in #12059) - Improve a warning when using
getDerivedStateFromPropswithout initialized state (@flxwu in #13317) - Improve a warning about invalid textarea usage (@raunofreiberg in #13361)
- Treat invalid Symbol and function values more consistently (@raunofreiberg in #13362 and #13389)
- Allow Electron
<webview>tag without warnings (@philipp-spiess in #13301) - Don't show the uncaught error addendum if
e.preventDefault()was called (@gaearon in #13384) - Warn about rendering Generators (@gaearon in #13312)
- Remove irrelevant suggestion of a legacy method from a warning (@zx6658 in #13169)
- Remove
unstable_deferredUpdatesin favor ofunstable_scheduleWorkfromschedule(@gaearon in #13488) - Fix unstable asynchronous mode from doing unnecessary work when an update takes too long (@acdlite in #13503)
React DOM Server
- Fix crash with nullish children when using
dangerouslySetInnerHtmlin a selected<option>(@mridgway in #13078) - Fix crash when
setTimeoutis missing (@dustinsoftware in #13088)
React Test Renderer and Test Utils
- Fix
thisin a functional component for shallow renderer to beundefined(@koba04 in #13144) - Deprecate a Jest-specific
ReactTestUtils.mockComponent()helper (@bvaughn in #13193) - Warn about
ReactDOM.createPortalusage within the test renderer (@bvaughn in #12895) - Improve a confusing error message (@gaearon in #13351)
React ART
- Add support for DevTools (@yunchancho in #13173)
Schedule (Experimental)
- New package for cooperatively scheduling work in a browser environment. It's used by React internally, but its public API is not finalized yet. (@flarnie in #12624)
v16.4.2
React DOM Server
-
Fix a potential XSS vulnerability when the attacker controls an attribute name (
CVE-2018-6341). This fix is available in the latest[email protected], as well as in previous affected minor versions:[email protected],[email protected],[email protected], and[email protected]. (@gaearon in #13302) -
Fix a crash in the server renderer when an attribute is called
hasOwnProperty. This fix is only available in[email protected]. (@gaearon in #13303)
v16.4.1
React
React DOM
- Fix a crash when the input
typechanges from some other types totext. (@spirosikmd in #12135) - Fix a crash in IE11 when restoring focus to an SVG element. (@ThaddeusJiang in #12996)
- Fix a range input not updating in some cases. (@Illu in #12939)
- Fix input validation triggering unnecessarily in Firefox. (@nhunzaker in #12925)
- Fix an incorrect
event.targetvalue for theonChangeevent in IE9. (@nhunzaker in #12976) - Fix a false positive error when returning an empty
<React.Fragment />from a component. (@philipp-spiess in #12966)
React DOM Server
- Fix an incorrect value being provided by new context API. (@ericsoderberghp in #12985, @gaearon in #13019)
React Test Renderer
- Allow multiple root children in test renderer traversal API. (@gaearon in #13017)
- Fix
getDerivedStateFromProps()in the shallow renderer to not discard the pending state. (@fatfisz in #13030)
v16.4.0
React
- Add a new experimental
React.unstable_Profilercomponent for measuring performance. (@bvaughn in #12745)
React DOM
- Add support for the Pointer Events specification. (@philipp-spiess in #12507)
- Properly call
getDerivedStateFromProps()regardless of the reason for re-rendering. (@acdlite in #12600 and #12802) - Fix a bug that prevented context propagation in some cases. (@gaearon in #12708)
- Fix re-rendering of components using
forwardRef()on a deepersetState(). (@gaearon in #12690) - Fix some attributes incorrectly getting removed from custom element nodes. (@airamrguez in #12702)
- Fix context providers to not bail out on children if there's a legacy context provider above. (@gaearon in #12586)
- Add the ability to specify
propTypeson a context provider component. (@nicolevy in #12658) - Fix a false positive warning when using
react-lifecycles-compatin<StrictMode>. (@bvaughn in #12644) - Warn when the
forwardRef()render function haspropTypesordefaultProps. (@bvaughn in #12644) - Improve how
forwardRef()and context consumers are displayed in the component stack. (@sophiebits in #12777) - Change internal event names. This can break third-party packages that rely on React internals in unsupported ways. (@philipp-spiess in #12629)
React Test Renderer
- Fix the
getDerivedStateFromProps()support to match the new React DOM behavior. (@koba04 in #12676) - Fix a
testInstance.parentcrash 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)- Shallow renderer now ignores
setState()updaters that returnnullorundefined. (@koba04 in #12756)
React ART
React Call Return (Experimental)
- This experiment was deleted because it was affecting the bundle size and the API wasn't good enough. It's likely to come back in the future in some other form. (@gaearon in #12820)
React Reconciler (Experimental)
- The new host config shape is flat and doesn't use nested objects. (@gaearon in #12792)
v16.3.2
React
- Improve the error message when passing
nullorundefinedtoReact.cloneElement. (@nicolevy in #12534)
React DOM
- Fix an IE crash in development when using
<StrictMode>. (@bvaughn in #12546) - Fix labels in User Timing measurements for new component types. (@bvaughn in #12609)
- Improve the warning about wrong component type casing. (@nicolevy in #12533)
- Improve general performance in development mode. (@gaearon in #12537)
- Improve performance of the experimental
unstable_observedBitsAPI with nesting. (@gaearon in #12543)
React Test Renderer
v16.3.1
React
- Fix a false positive warning in IE11 when using
Fragment. (@heikkilamarko in #12504) - Prefix a private API. (@Andarist in #12501)
- Improve the warning when calling
setState()in constructor. (@gaearon in #12532)
React DOM
- Fix
getDerivedStateFromProps()not getting applied in some cases. (@acdlite in #12528) - Fix a performance regression in development mode. (@gaearon in #12510)
- Fix error handling bugs in development mode. (@gaearon and @acdlite in #12508)
- Improve user timing API messages for profiling. (@flarnie in #12384)
Create Subscription
- Set the package version to be in sync with React releases. (@bvaughn in #12526)
- Add a peer dependency on React 16.3+. (@NMinhNguyen in #12496)
v16.3.0
React
- Add a new officially supported context API. (@acdlite in #11818)
- Add a new
React.createRef()API as an ergonomic alternative to callback refs. (@trueadm in #12162) - Add a new
React.forwardRef()API to let components forward their refs to a child. (@bvaughn in #12346) - Fix a false positive warning in IE11 when using
React.Fragment. (@XaveScor in #11823) - Replace
React.unstable_AsyncComponentwithReact.unstable_AsyncMode. (@acdlite in #12117) - Improve the error message when calling
setState()on an unmounted component. (@sophiebits in #12347)
React DOM
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Deploy preview for react-grecaptcha ready!
Built with commit d8c3a6654c35f237e53dcfb9af518f59378dcb2c
https://deploy-preview-105--react-grecaptcha.netlify.app
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.