diff --git a/.github/renovate.json5 b/.github/renovate.json5 index fef4ab6530e4..0af460458c42 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -51,6 +51,16 @@ extends: [ 'monorepo:wordpress' ], separateMajorMinor: false, prPriority: 1, + // Teams that can help test the bundled packages (dataviews, ui, build, the widget + // dashboard...), which are not externalized to WordPress and can change product UIs. + additionalReviewers: [ + 'team:jetpack-social', // Social + 'team:jetpack-my-jetpack', // My Jetpack + 'team:loop', // Newsletter dashboard & subscriber management + 'team:jetpack-newsletter', // Newsletter dashboard & subscriber management + 'team:jetpack-forms', // Forms and related component work + 'team:jetpack-stats', // Premium Analytics + ], }, { extends: [ 'monorepo:react' ], @@ -114,58 +124,6 @@ additionalReviewers: [ 'team:qualityops' ], }, - // Bundled WordPress dependencies are separated from 'monorepo:wordpress' while - // they're still considered unstable and can have significant breaking changes. - // Since they're not externalized to WP, they have higher chance of impacting functionality. - // - // Some related packages are included here too. - { - groupName: 'Bundled @wordpress/* monorepo', - matchPackageNames: [ - // Bundled packages, from the list at https://github.com/WordPress/gutenberg/blob/trunk/packages/dependency-extraction-webpack-plugin/lib/util.js#L2 - '@wordpress/admin-ui', - '@wordpress/dataviews', - '@wordpress/fields', - '@wordpress/icons', - '@wordpress/interface', - '@wordpress/style-runtime', - '@wordpress/ui', - '@wordpress/undo-manager', - '@wordpress/views', - // Additional packages polyfilled by wp-build-polyfills, which need to be kept in sync with each other. - '@wordpress/a11y', - '@wordpress/boot', - '@wordpress/notices', - '@wordpress/private-apis', - '@wordpress/rich-text', - '@wordpress/route', - '@wordpress/theme', - // Bundled into the rich-text polyfill (rich-text unlocks its private - // APIs at module scope), so it must move in lockstep with rich-text. - '@wordpress/compose', - // Not polyfilled, but notices' store types are generated against data's generics - // (notices 5.53 needs data ^10.53), so data has to move on the same train as notices. - '@wordpress/data', - // @wordpress/build is still heavily developed; its dashboards share the same bundled - // packages and test surface, so exercising build alongside the rest is practical. - '@wordpress/build', - // Widgets Dashboard packages used by Premium Analytics - '@wordpress/grid', - '@wordpress/widget-dashboard', - '@wordpress/widget-primitives', - ], - separateMajorMinor: false, - // Teams that can help test the update - additionalReviewers: [ - 'team:jetpack-social', // Social - 'team:jetpack-my-jetpack', // My Jetpack - 'team:loop', // Newsletter dashboard & subscriber management - 'team:jetpack-newsletter', // Newsletter dashboard & subscriber management - 'team:jetpack-forms', // Forms and related component work - 'team:jetpack-stats', // Premium Analytics - ], - }, - // 🤷 { groupName: 'Instant Search Dependency Updates', diff --git a/.pnpmfile.cjs b/.pnpmfile.cjs index 6a2a8f4407cf..57fb353f9a4d 100644 --- a/.pnpmfile.cjs +++ b/.pnpmfile.cjs @@ -66,7 +66,8 @@ async function fixDeps( pkg ) { pkg.peerDependencies[ dep ] = ver.replace( /^\^?/, '>=' ); } } - // Broaden this one further, because they're linked upstream but we update them in different Renovate PRs. + // Broaden this one further until after this is merged and Renovate does a run: + // https://github.com/Automattic/jetpack/pull/52316 if ( pkg.peerDependencies[ '@wordpress/theme' ] ) { pkg.peerDependencies[ '@wordpress/theme' ] = '*'; } @@ -83,10 +84,6 @@ async function fixDeps( pkg ) { delete pkg.dependencies[ dep ]; pkg.peerDependencies[ dep ] = ver.startsWith( '>' ) ? ver : ver.replace( /^\^?/, '>=' ); } - // Broaden this one further, because they're linked upstream but we update them in different Renovate PRs. - if ( pkg.peerDependencies[ '@wordpress/theme' ] ) { - pkg.peerDependencies[ '@wordpress/theme' ] = '*'; - } } // Outdated dependencies @@ -234,16 +231,6 @@ function fixPeerDeps( pkg ) { } } - // @wordpress/build's optional peer on @wordpress/theme stops below 2.0.0, blocking the theme 2.x - // that @wordpress/ui and @wordpress/boot require. Widened upstream, drop once a release carries it. - // @see https://github.com/WordPress/gutenberg/pull/82139 - if ( - pkg.name === '@wordpress/build' && - pkg.peerDependencies?.[ '@wordpress/theme' ] === '>=0.8.0 <2.0.0' - ) { - pkg.peerDependencies[ '@wordpress/theme' ] = '>=0.8.0 <3.0.0'; - } - // We use this under tsdown (Rolldown), not Rollup. The `rollup` peer is only used for one TypeScript type, and it being missing apparently makes no difference in our usage. // @see https://github.com/mjeanroy/rollup-plugin-license/issues/2110 if ( pkg.name === 'rollup-plugin-license' ) { @@ -260,14 +247,6 @@ function fixPeerDeps( pkg ) { pkg.peerDependenciesMeta[ '@size-limit/file' ] = { optional: true }; } - // Outdated peer dependency because Gutenberg is still on node 20. - if ( - pkg.name === '@wordpress/e2e-test-utils-playwright' && - ! pkg.peerDependencies?.[ '@types/node' ]?.includes( '^24.' ) - ) { - pkg.peerDependencies[ '@types/node' ] += ' || ^24.0.0'; - } - // Outdated dependency because Calypso is still on node 22. if ( pkg.name === '@automattic/calypso-config' && diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5348865160d..00bceea7b803 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,7 +4,7 @@ settings: autoInstallPeers: false excludeLinksFromLockfile: false -pnpmfileChecksum: sha256-2/4sxnwf1gm9iTBBRlBfP44BTtZ8LKNM2aZcYMyEBqM= +pnpmfileChecksum: sha256-GIavWP5TCBJB6CbbMkwcYgGm4CtAoHnaA4u+FUCns7c= patchedDependencies: '@wordpress/build': 151ae1c0c3786b862724512e48d8cfcb4b34faf4cac98e352a450abd4741e022 @@ -11540,7 +11540,7 @@ packages: engines: {node: '>=22.19.0', npm: '>=8.19.2'} peerDependencies: '@playwright/test': '>=1' - '@types/node': '>=20 || ^24.0.0' + '@types/node': '>=20' '@wordpress/edit-post@8.55.0': resolution: {integrity: sha512-/4c6I3wTlcVrhyeqOy7x/+wGk4FU4cNvO1CL0mynP84l6WzVcNl9u08CJ5gGbqXEMoAeaPOiXT4wnJefOO+P/w==} @@ -11917,7 +11917,7 @@ packages: engines: {node: ^20.19.0 || >=22.13.0, npm: '>=8.19.2'} peerDependencies: '@stylistic/stylelint-plugin': '>=5.2.1' - '@wordpress/theme': '*' + '@wordpress/theme': '>=2.1.0' stylelint: '>=17.14.1' stylelint-config-recommended: '>=18.0.0' stylelint-config-recommended-scss: '>=17.0.1' diff --git a/projects/packages/wp-build-polyfills/changelog/update-renovate-merge-wp-groups b/projects/packages/wp-build-polyfills/changelog/update-renovate-merge-wp-groups new file mode 100644 index 000000000000..47a726a38b8c --- /dev/null +++ b/projects/packages/wp-build-polyfills/changelog/update-renovate-merge-wp-groups @@ -0,0 +1,3 @@ +Significance: patch +Type: changed +Comment: Drop the webpack config comment that pointed at the Renovate group merged into monorepo:wordpress. diff --git a/projects/packages/wp-build-polyfills/webpack.config.js b/projects/packages/wp-build-polyfills/webpack.config.js index 15044ab5a601..f57ec0b06908 100644 --- a/projects/packages/wp-build-polyfills/webpack.config.js +++ b/projects/packages/wp-build-polyfills/webpack.config.js @@ -169,9 +169,6 @@ const disabledPlugins = { }; // ── Polyfill definitions ──────────────────────────────────────────────────── -// -// If adding or removing something here, you'll probably also want to add or remove it -// from the "Bundled @wordpress/* monorepo" group in `.github/renovate.json5`. const classicPolyfills = [ {