- Updated dependencies to require React 18 (45235)
- Started exporting new React 18 APIs (46610)
- Packages: Replace
is-plain-obj
withis-plain-object
(#43511).
- Serialize will now keep correct casing for SVG attributes (#38936).
- Ensure that the package uses the latest version of React types (#37365).
- Update
rawHtml
to correctly concatenate multiple strings passed as children (see 35532)
- Upgraded React components to work with v17.0 (#29118). There are no new features in React v17.0 as explained in the blog post.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- Declare @types/react and @types/react-dom dependencies which could cause type errors when using this package with TypeScript (#25086)
- Include TypeScript type declarations (#21781)
- Hide TypeScript type declarations (#21613) after they were found to conflict with DefinitelyTyped provided declarations.
- Include TypeScript type declarations (#21248)
- Graduated
__experimentalCreateInterpolateElement
function to stable api:createInterpolateElement
(see 20699)
- Added
__experimentalCreateInterpolateElement
function (see 17376)
- The bundled
react
dependency has been updated from requiring^16.8.4
to requiring^16.9.0
(#16982). It contains new deprecations as well. - The bundled
react-dom
dependency has been updated from requiring^16.8.4
to requiring^16.9.0
(#16982).
- Added
lazy
feautre (see: https://reactjs.org/docs/react-api.html#reactlazy). - Added
Suspense
component (see: https://reactjs.org/docs/react-api.html#reactsuspense).
- Added
useCallback
hook (see: https://reactjs.org/docs/hooks-reference.html#usecallback). - Added
useContext
hook (see: https://reactjs.org/docs/hooks-reference.html#usecontext). - Added
useDebugValue
hook (see: https://reactjs.org/docs/hooks-reference.html#usedebugvalue). - Added
useEffect
hook (see: https://reactjs.org/docs/hooks-reference.html#useeffect). - Added
useImperativeHandle
hook (see: https://reactjs.org/docs/hooks-reference.html#useimperativehandle). - Added
useLayoutEffect
hook (see: https://reactjs.org/docs/hooks-reference.html#uselayouteffect). - Added
useMemo
hook (see: https://reactjs.org/docs/hooks-reference.html#usememo). - Added
useReducer
hook (see: https://reactjs.org/docs/hooks-reference.html#usereducer). - Added
useRef
hook (see: https://reactjs.org/docs/hooks-reference.html#useref). - Added
useState
hook (see: https://reactjs.org/docs/hooks-reference.html#usestate).
- New API method
isEmptyElement
was introduced (9861).
- Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.