@wordpress/element
Advanced tools
Comparing version 4.20.0 to 5.0.0
@@ -5,2 +5,8 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 5.0.0 (2022-12-14) | ||
### Breaking Changes | ||
- Updated dependencies to require React 18 ([45235](https://github.com/WordPress/gutenberg/pull/45235)) | ||
## 4.20.0 (2022-11-16) | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "@wordpress/element", | ||
"version": "4.20.0", | ||
"version": "5.0.0", | ||
"description": "Element React module for WordPress.", | ||
@@ -32,9 +32,9 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.16.0", | ||
"@types/react": "^17.0.37", | ||
"@types/react-dom": "^17.0.11", | ||
"@wordpress/escape-html": "^2.22.0", | ||
"@types/react": "^18.0.21", | ||
"@types/react-dom": "^18.0.6", | ||
"@wordpress/escape-html": "^2.23.0", | ||
"change-case": "^4.1.2", | ||
"is-plain-object": "^5.0.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "7ac04f446242452d3cb24372f9ca58f0cae97715" | ||
"gitHead": "1eb65aabe6738097f4c062e78f69ae8f05879848" | ||
} |
@@ -212,11 +212,9 @@ /** | ||
expect( container.firstChild ).toContainHTML( '<em>string!</em>' ); | ||
expect( container.firstChild ).not.toContainHTML( '<strong>' ); | ||
expect( container ).toContainHTML( '<em>string!</em>' ); | ||
expect( container ).not.toContainHTML( '<strong>' ); | ||
rerender( <TestComponent switchKey={ false } /> ); | ||
expect( container.firstChild ).toContainHTML( | ||
'<strong>string!</strong>' | ||
); | ||
expect( container.firstChild ).not.toContainHTML( '<em>' ); | ||
expect( container ).toContainHTML( '<strong>string!</strong>' ); | ||
expect( container ).not.toContainHTML( '<em>' ); | ||
} ); | ||
@@ -223,0 +221,0 @@ it( 'handles parsing emojii correctly', () => { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
379220
5221
+ Added@types/react@18.3.12(transitive)
+ Added@types/react-dom@18.3.1(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@types/react@17.0.83(transitive)
- Removed@types/react-dom@17.0.25(transitive)
- Removed@types/scheduler@0.16.8(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)
Updated@types/react@^18.0.21
Updated@types/react-dom@^18.0.6
Updatedreact@^18.2.0
Updatedreact-dom@^18.2.0