@wordpress/element 5.35.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 6.0.0 (2024-05-31)
6
+
7
+ ### Breaking Changes
8
+
9
+ - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases ([#31270](https://github.com/WordPress/gutenberg/pull/61930)). Learn more about [Node.js releases](https://nodejs.org/en/about/previous-releases).
10
+
5
11
  ## 5.35.0 (2024-05-16)
6
12
 
7
13
  ## 5.34.0 (2024-05-02)
@@ -136,7 +142,7 @@
136
142
 
137
143
  ### Bug Fix
138
144
 
139
- - Serialize will now keep correct casing for SVG attributes ([#38936](https://github.com/WordPress/gutenberg/pull/38936)).
145
+ - Serialize will now keep correct casing for SVG attributes ([#38936](https://github.com/WordPress/gutenberg/pull/38936)).
140
146
 
141
147
  ## 4.1.0 (2022-01-27)
142
148
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/element",
3
- "version": "5.35.0",
3
+ "version": "6.0.0",
4
4
  "description": "Element React module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,7 +20,8 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=12"
23
+ "node": ">=18.12.0",
24
+ "npm": ">=8.19.2"
24
25
  },
25
26
  "main": "build/index.js",
26
27
  "module": "build-module/index.js",
@@ -31,7 +32,7 @@
31
32
  "@babel/runtime": "^7.16.0",
32
33
  "@types/react": "^18.2.79",
33
34
  "@types/react-dom": "^18.2.25",
34
- "@wordpress/escape-html": "^2.58.0",
35
+ "@wordpress/escape-html": "^3.0.0",
35
36
  "change-case": "^4.1.2",
36
37
  "is-plain-object": "^5.0.0",
37
38
  "react": "^18.3.0",
@@ -40,5 +41,5 @@
40
41
  "publishConfig": {
41
42
  "access": "public"
42
43
  },
43
- "gitHead": "42f38f287506a6b3ed8ccba839b18ad066821044"
44
+ "gitHead": "2f30cddff15723ac7017fd009fc5913b7b419400"
44
45
  }
@@ -80,7 +80,7 @@ describe( 'createInterpolateElement', () => {
80
80
  );
81
81
  const component = createInterpolateElement( testString, {
82
82
  // eslint-disable-next-line jsx-a11y/anchor-has-content
83
- a: <a href={ 'https://github.com' } className={ 'some_class' } />,
83
+ a: <a href="https://github.com" className="some_class" />,
84
84
  } );
85
85
  expect( JSON.stringify( component ) ).toEqual(
86
86
  JSON.stringify( expectedElement )
@@ -322,12 +322,11 @@ describe( 'renderElement()', () => {
322
322
  <Provider value={ { value: '1st provided' } }>
323
323
  <Consumer>{ ( context ) => context.value }</Consumer>
324
324
  </Provider>
325
- { '|' }
325
+ |
326
326
  <Provider value={ { value: '2nd provided' } }>
327
327
  <Consumer>{ ( context ) => context.value }</Consumer>
328
328
  </Provider>
329
- { '|' }
330
- <Consumer>{ ( context ) => context.value }</Consumer>
329
+ |<Consumer>{ ( context ) => context.value }</Consumer>
331
330
  </Fragment>
332
331
  );
333
332
 
@@ -344,8 +343,7 @@ describe( 'renderElement()', () => {
344
343
  <Provider value={ { value: 'inner provided' } }>
345
344
  <Consumer>{ ( context ) => context.value }</Consumer>
346
345
  </Provider>
347
- { '|' }
348
- <Consumer>{ ( context ) => context.value }</Consumer>
346
+ |<Consumer>{ ( context ) => context.value }</Consumer>
349
347
  </Provider>
350
348
  );
351
349