-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump the WordPress packages to use React 18 #13443
Conversation
Bumps the wp-packages group with 19 updates: | Package | Update | | --- | --- | | [@wordpress/babel-plugin-import-jsx-pragma](https://github.com/WordPress/gutenberg/tree/HEAD/packages/babel-plugin-import-jsx-pragma) | 4.18.0 to 4.21.0 | | [@wordpress/dependency-extraction-webpack-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/dependency-extraction-webpack-plugin) | 4.18.0 to 4.21.0 | | [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) | 14.8.0 to 14.11.0 | | [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) | 22.1.0 to 25.4.0 | | [@wordpress/compose](https://github.com/WordPress/gutenberg/tree/HEAD/packages/compose) | 5.20.0 to 6.15.0 | | [@wordpress/data](https://github.com/WordPress/gutenberg/tree/HEAD/packages/data) | 7.6.0 to 9.8.0 | | [@wordpress/dom-ready](https://github.com/WordPress/gutenberg/tree/HEAD/packages/dom-ready) | 3.24.0 to 3.38.0 | | [@wordpress/i18n](https://github.com/WordPress/gutenberg/tree/HEAD/packages/i18n) | 4.24.0 to 4.38.0 | | [@wordpress/jest-console](https://github.com/WordPress/gutenberg/tree/HEAD/packages/jest-console) | 6.7.0 to 7.9.0 | | [@wordpress/jest-puppeteer-axe](https://github.com/WordPress/gutenberg/tree/HEAD/packages/jest-puppeteer-axe) | 5.7.0 to 6.9.0 | | [@wordpress/api-fetch](https://github.com/WordPress/gutenberg/tree/HEAD/packages/api-fetch) | 6.21.0 to 6.35.0 | | [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) | 10.5.0 to 12.6.0 | | [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) | 11.21.0 to 12.15.0 | | [@wordpress/core-data](https://github.com/WordPress/gutenberg/tree/HEAD/packages/core-data) | 5.5.0 to 6.15.0 | | [@wordpress/date](https://github.com/WordPress/gutenberg/tree/HEAD/packages/date) | 4.24.0 to 4.38.0 | | [@wordpress/icons](https://github.com/WordPress/gutenberg/tree/HEAD/packages/icons) | 9.15.0 to 9.29.0 | | [@wordpress/notices](https://github.com/WordPress/gutenberg/tree/HEAD/packages/notices) | 3.24.0 to 4.6.0 | | [@wordpress/url](https://github.com/WordPress/gutenberg/tree/HEAD/packages/url) | 3.25.0 to 3.39.0 | | [@wordpress/viewport](https://github.com/WordPress/gutenberg/tree/HEAD/packages/viewport) | 4.20.0 to 5.15.0 | Updates `@wordpress/babel-plugin-import-jsx-pragma` from 4.18.0 to 4.21.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/babel-plugin-import-jsx-pragma) Updates `@wordpress/dependency-extraction-webpack-plugin` from 4.18.0 to 4.21.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/dependency-extraction-webpack-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/dependency-extraction-webpack-plugin) Updates `@wordpress/eslint-plugin` from 14.8.0 to 14.11.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/eslint-plugin) Updates `@wordpress/components` from 22.1.0 to 25.4.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/components) Updates `@wordpress/compose` from 5.20.0 to 6.15.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/compose/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/compose) Updates `@wordpress/data` from 7.6.0 to 9.8.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/data/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/data) Updates `@wordpress/dom-ready` from 3.24.0 to 3.38.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/dom-ready/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/dom-ready) Updates `@wordpress/i18n` from 4.24.0 to 4.38.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/i18n/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/i18n) Updates `@wordpress/jest-console` from 6.7.0 to 7.9.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/jest-console/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/jest-console) Updates `@wordpress/jest-puppeteer-axe` from 5.7.0 to 6.9.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/jest-puppeteer-axe/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/jest-puppeteer-axe) Updates `@wordpress/api-fetch` from 6.21.0 to 6.35.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/api-fetch/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/api-fetch) Updates `@wordpress/block-editor` from 10.5.0 to 12.6.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/block-editor) Updates `@wordpress/blocks` from 11.21.0 to 12.15.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/blocks) Updates `@wordpress/core-data` from 5.5.0 to 6.15.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/core-data/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/core-data) Updates `@wordpress/date` from 4.24.0 to 4.38.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/date/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/date) Updates `@wordpress/icons` from 9.15.0 to 9.29.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/icons/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/icons) Updates `@wordpress/notices` from 3.24.0 to 4.6.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/notices/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/notices) Updates `@wordpress/url` from 3.25.0 to 3.39.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/url/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/url) Updates `@wordpress/viewport` from 4.20.0 to 5.15.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/viewport/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/viewport) --- updated-dependencies: - dependency-name: "@wordpress/babel-plugin-import-jsx-pragma" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/dependency-extraction-webpack-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/components" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/compose" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/data" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/dom-ready" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/i18n" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/jest-console" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/jest-puppeteer-axe" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/api-fetch" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/block-editor" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/blocks" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/core-data" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/date" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/icons" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/notices" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages - dependency-name: "@wordpress/url" dependency-type: direct:production update-type: version-update:semver-minor dependency-group: wp-packages - dependency-name: "@wordpress/viewport" dependency-type: direct:production update-type: version-update:semver-major dependency-group: wp-packages ... Signed-off-by: dependabot[bot] <[email protected]>
@AnuragVasanwala maybe you have an idea here on how to fix the React package aliases? |
`webpackExports` could not be used with destructuring assignment.
This comment was marked as resolved.
This comment was marked as resolved.
Now everything works except for TypeScript, which doesn't like that there are multiple versions of Not type-checking the |
Size Change: -441 B (0%) Total Size: 2.74 MB
ℹ️ View Unchanged
|
Plugin builds for 0be73e4 are ready 🛎️!
|
Context
The newer versions of the WP-related packages (e.g. for the Gutenberg block) require React 18, whereas our editor and dashboard still use React 17. This is relevant already now, but mandatory once we bump our WP minimum requirement (#13424).
Summary
activation-notice
package to use styled-components v6 as a result, because of React 18 support.activation-notice
for now, otherwise TS complains about mixed React versions.Relevant Technical Choices
To-do
@types/react
User-facing changes
N/A
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRSee #13424