Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/element

Package Overview
Dependencies
Maintainers
25
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/element - npm Package Compare versions

Comparing version 4.20.0 to 5.0.0

6

CHANGELOG.md

@@ -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 @@

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc