Skip to content

Commit f2ea15a

Browse files
matticbotrenovate-botanomiexretrofox
authored
Update Bundled @wordpress/* monorepo (#52187)
* Update Bundled @wordpress/* monorepo * Fix patch for `@wordpress/build` v0.23.0 * align protect a11y pin with the bundled group * Backup: report unknown activity totals as null to DataViews dataviews 19 clamps the page to the last one it knows about, so a fallback of 1 sent the reader to page 1 whenever the log failed or was paused offline * wp-build-polyfills: keep reusable-blocks on the private-apis allowlist private-apis 1.55.0 dropped it, but the copy WordPress 7.0 ships still opts in * Premium Analytics: cast the report params Edit control like its key dataviews 19 adds setValue to NormalizedField, so the unresolved Attributes generic no longer unifies with the concrete control props * Boost: expect the theme 2.1 warning color in the overview e2e @wordpress/theme 2.1.0 moves --wpds-color-foreground-content-warning-weak from #926300 to #936300 * update @wordpress/* packages to the .55 train folds the wordpress-monorepo renovate round (#52188) so both trains land together and the tree stops carrying two copies of components, element and core-data * pnpmfile: drop the dataviews dependency hack dataviews 19 declares every dependency of its wp bundle itself (WordPress/gutenberg#81843), so the hack only duplicated them as optionalDependencies * refresh the pnpmfile checksum in the lockfile * align My Jetpack wp-build pins with the round the wp-build port (#52204) landed pinned to admin-ui 2.9, build 0.22, route 0.20 and the .54 train * dedupe the lockfile after the trunk merge collapses the testing-library 16.3.2 / 14.6.1 copies left behind trunk's #52297 bump * Forms: assert the console error useCreateForm logs jest-console 9.3.0 keeps its spies across jest.restoreAllMocks(), so the error the hook logs on a failed creation has to be expected * Charts: wrap useElementSize test updates in act() jest-console 9.3.0 surfaces the act() warnings that clearAllMocks() used to discard before the console assertion ran * Social: pre-fill the Bluesky handle on reconnect InputControl spreads defaultValue onto its controlled input, so the handle never showed and React warned; keep the handle in state * Jetpack: await the Newsletter email toggle in its test ToggleGroupControl settles its radio store after render, and jest-console 9.3.0 now reports that act() warning * Jetpack: fix the Popover ignoreContext prop type PropTypes.function does not exist, so the shape check only logged a warning that jest-console 9.3.0 now reports * VideoPress: narrow the files transform before calling it blocks 16 types findTransform's result as the union of every transform kind, and files.isMatch takes the file list alone * e2e: accept both labels of the preview menu item e2e-test-utils-playwright 2.0.0 looks for Gutenberg trunk's 'Preview (opens in a new tab)', while the WP 7.0/7.1 editor still says 'Preview in new tab', so Forms' openPreviewPage never found it * e2e: match the View button exactly the substring match also resolved Document Overview in the editor top bar * PayPal: drop the spy tracking jest-console needed jest-console 9.3.0 keeps its console spies across restoreAllMocks(), so afterEach can restore every spy the suite made again * recolor stroke-based icons with color, not fill @wordpress/icons 16 draws 98 icons as strokes with an inline fill:none, so the CSS fill rules that tinted them stopped applying; the AI message keeps fill for its own filled SVG --------- Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Brad Jorsch <brad.jorsch@automattic.com> Co-authored-by: Damián Suárez <rdsuarez@gmail.com>
1 parent 2a0af5b commit f2ea15a

342 files changed

Lines changed: 6827 additions & 7242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.pnpm-patches/@wordpress__build.patch‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,3 @@ index 96c4627..48fcf28 100644
3333
@@ -182 +201 @@
3434
- JS;
3535
+JS;
36-
@@ -331 +350,6 @@
37-
- <div id="{{PAGE_SLUG}}-wp-admin-app"></div>
38-
+ <?php
39-
+ // Core's pre-CSS Modules Boot layout uses this class for viewport sizing.
40-
+ // Remove it when the minimum supported WordPress version includes the Boot
41-
+ // changes from Gutenberg #81756.
42-
+ ?>
43-
+ <div id="{{PAGE_SLUG}}-wp-admin-app" class="boot-layout-container"></div>

‎.pnpmfile.cjs‎

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,3 @@
1-
// Packages we need to copy versions from for `@wordpress/dataviews/wp`.
2-
const wpPkgs = [
3-
[ '@wordpress/components', 'change-case' ],
4-
[ '@wordpress/components', '@emotion/cache' ],
5-
[ '@wordpress/components', '@emotion/css' ],
6-
[ '@wordpress/components', '@emotion/react' ],
7-
[ '@wordpress/components', '@emotion/styled' ],
8-
[ '@wordpress/components', '@emotion/utils' ],
9-
[ '@wordpress/components', '@floating-ui/react-dom' ],
10-
[ '@wordpress/components', 'framer-motion' ],
11-
[ '@wordpress/components', 'highlight-words-core' ],
12-
[ '@wordpress/components', 'is-plain-object' ],
13-
[ '@wordpress/components', 'memize' ],
14-
[ '@wordpress/components', '@use-gesture/react' ],
15-
[ '@wordpress/components', 'uuid' ],
16-
[ '@wordpress/components', '@wordpress/hooks' ],
17-
[ '@wordpress/components', 'react-colorful' ],
18-
[ '@wordpress/data', 'use-memo-one' ],
19-
[ '@wordpress/ui', '@base-ui/react' ],
20-
[ '@wordpress/ui', '@daypicker/react' ],
21-
[ '@wordpress/ui', '@wordpress/theme', 'colorjs.io' ],
22-
];
23-
const wpPkgFetches = {};
24-
const wpPkgsUsed = new Set();
25-
const addWpPkgDep = async ( pkg, fromPkg, ver, deplist ) => {
26-
const [ dep, ...rest ] = deplist;
27-
28-
if ( ! wpPkgFetches[ fromPkg ] ) {
29-
wpPkgFetches[ fromPkg ] = fetch( `https://registry.npmjs.org/${ fromPkg }` ).then( r =>
30-
r.json()
31-
);
32-
}
33-
const deps = ( await wpPkgFetches[ fromPkg ] ).versions[ ver ].dependencies;
34-
35-
if ( rest.length > 0 ) {
36-
if ( deps[ dep ] === undefined ) {
37-
// This version of the package lacks the dep? We'll check in afterAllResolved for no version having it.
38-
return;
39-
}
40-
const ver2 = deps[ dep ].replace( /^\^/, '' ).replace( /\+[0-9a-f]+$/, '' );
41-
await addWpPkgDep( pkg, dep, ver2, rest );
42-
} else {
43-
if ( deps[ dep ] === undefined ) {
44-
// Ditto.
45-
return;
46-
}
47-
wpPkgsUsed.add( dep );
48-
pkg.optionalDependencies[ dep ] = deps[ dep ];
49-
}
50-
};
51-
521
/**
532
* Fix package dependencies.
543
*
@@ -146,21 +95,6 @@ async function fixDeps( pkg ) {
14695
pkg.peerDependencies.react = '^18';
14796
}
14897

149-
// We need to add the missing deps for `@wordpress/dataviews` because
150-
// the build fails when using pnpm with hoisting.
151-
// @see https://github.com/WordPress/gutenberg/issues/67864
152-
if ( pkg.name === '@wordpress/dataviews' ) {
153-
for ( const deplist of wpPkgs ) {
154-
const [ fromPkg, ...rest ] = deplist;
155-
if ( ! pkg.dependencies[ fromPkg ] ) {
156-
// Old version of dataviews lacks a new dep? We'll check in afterAllResolved for it being an old dep instead.
157-
continue;
158-
}
159-
const ver = pkg.dependencies[ fromPkg ].replace( /^\^/, '' ).replace( /\+[0-9a-f]+$/, '' );
160-
await addWpPkgDep( pkg, fromPkg, ver, rest );
161-
}
162-
}
163-
16498
// Turn @wordpress/eslint-plugin's eslint plugin deps into peer deps.
16599
// https://github.com/WordPress/gutenberg/issues/39810
166100
if ( pkg.name === '@wordpress/eslint-plugin' ) {
@@ -447,10 +381,9 @@ async function readPackage( pkg, context ) {
447381
*
448382
* @see https://pnpm.io/pnpmfile#hooksafterallresolvedlockfile-context-lockfile--promiselockfile
449383
* @param {object} lockfile - Lockfile data.
450-
* @param {object} context - Pnpm object of some sort.
451384
* @return {object} Modified lockfile.
452385
*/
453-
function afterAllResolved( lockfile, context ) {
386+
function afterAllResolved( lockfile ) {
454387
// If there's only one "importer", it's probably pnpx rather than the monorepo. Don't interfere.
455388
if ( Object.keys( lockfile.importers ).length === 1 ) {
456389
return lockfile;
@@ -489,17 +422,6 @@ function afterAllResolved( lockfile, context ) {
489422
}
490423
}
491424

492-
for ( const deplist of wpPkgs ) {
493-
for ( const dep of deplist ) {
494-
if ( ! wpPkgFetches[ dep ] && ! wpPkgsUsed.has( dep ) ) {
495-
context.log(
496-
// prettier-ignore
497-
`pnpmfile hack needs updating: wpPkgs entry [ ${ deplist.join( ', ' ) } ] was not used. Is it obsolete?`
498-
);
499-
}
500-
}
501-
}
502-
503425
return lockfile;
504426
}
505427

0 commit comments

Comments
 (0)