Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a0373ca
Fix missing dependencies for packages
manzoorwanijk Jan 1, 2026
50e6e42
Fix ts config and errors
manzoorwanijk Jan 1, 2026
331a3ac
Fix caniuse-lite error
manzoorwanijk Jan 1, 2026
f610232
Add changelog entries
manzoorwanijk Jan 1, 2026
5f2b06c
Fix lints
manzoorwanijk Jan 1, 2026
4b15515
Update ignored dependencies in license checker
manzoorwanijk Jan 1, 2026
390a7af
Fix node peer dependency
manzoorwanijk Jan 1, 2026
2fcf2c3
Remove puppeteer from direct dependencies
manzoorwanijk Jan 1, 2026
2b02b3d
Merge branch 'trunk' into fix/missing-dependencies
manzoorwanijk Jan 2, 2026
138325a
Update package-lock.json
manzoorwanijk Jan 2, 2026
03857e5
Use caret versions
manzoorwanijk Jan 7, 2026
7f2ae4a
Merge branch 'trunk' into fix/missing-dependencies
manzoorwanijk Jan 7, 2026
1893e28
Restore removed and change dependencies
manzoorwanijk Jan 7, 2026
d798ef6
Remove @ariakit/react-core from dependencies
manzoorwanijk Jan 7, 2026
3d637d2
Add css-to-react-native-transform to dependencies and remove eslint c…
manzoorwanijk Jan 7, 2026
5f11d92
Improve matcher casting
manzoorwanijk Jan 7, 2026
8f378da
Remove @ariakit/test from dataviews package
manzoorwanijk Jan 7, 2026
8dc5312
Merge branch 'trunk' into fix/missing-dependencies
manzoorwanijk Jan 7, 2026
4f7ac64
Add esbuild as a dev dependency to dataviews
manzoorwanijk Jan 7, 2026
6647d4e
Get rid of the last remaining no-extraneous-dependencies comment
manzoorwanijk Jan 7, 2026
2317270
Update esbuild in wp-build
manzoorwanijk Jan 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/check-licenses.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ import spawn from 'cross-spawn';
*/
import { checkDeps, getLicenses } from '../packages/scripts/utils/license.js';

const ignored = [ '@ampproject/remapping', 'webpack' ];
const ignored = [
'@ampproject/remapping',
'webpack',
// Jest internals with Apache-2.0 license - only used for testing, not distributed.
'bser',
'fb-watchman',
'walker',
];

/*
* `wp-scripts check-licenses` uses prod and dev dependencies of the package to scan for dependencies. With npm workspaces, workspace packages (the @wordpress/* packages) are not listed in the main package json and this approach does not work.
Expand Down
1,148 changes: 903 additions & 245 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
"@playwright/test": "1.57.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@storybook/addon-a11y": "9.1.17",
"@storybook/addon-docs": "9.1.17",
"@storybook/addon-docs": "^9.1.17",
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
"@storybook/icons": "1.4.0",
"@storybook/react-webpack5": "9.1.17",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "14.3.0",
"@testing-library/user-event": "14.4.3",
"@types/node": "20.17.10",
"@types/node": "^20.17.10",
"@types/prettier": "2.4.4",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@types/react": "^18.3.27",
"@types/react-dom": "^18.3.1",
"@types/semver": "7.3.8",
"@types/sprintf-js": "1.1.2",
"@types/uuid": "8.3.1",
Expand All @@ -73,8 +73,8 @@
"concurrently": "3.5.0",
"cross-env": "7.0.3",
"cross-spawn": "^7.0.6",
"css-loader": "6.2.0",
"esbuild": "0.25.10",
"css-loader": "^6.2.0",
"esbuild": "^0.27.2",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-eslint-comments": "3.1.2",
"eslint-plugin-import": "2.25.2",
Expand All @@ -94,7 +94,7 @@
"jest-environment-jsdom": "^30.2.0",
"jest-jasmine2": "29.6.2",
"jest-junit": "13.0.0",
"jest-message-util": "29.6.2",
"jest-message-util": "^29.6.2",
"jest-watch-typeahead": "2.2.2",
"json2md": "2.0.1",
"jsonc-parser": "3.3.1",
Expand All @@ -114,14 +114,14 @@
"reassure": "0.7.1",
"resize-observer-polyfill": "1.5.1",
"rimraf": "5.0.10",
"sass": "1.54.0",
"sass": "^1.54.0",
"sass-embedded": "1.93.2",
"sass-loader": "16.0.3",
"semver": "7.5.4",
"simple-git": "3.24.0",
"snapshot-diff": "0.10.0",
"sprintf-js": "1.1.1",
"storybook": "9.1.17",
"storybook": "^9.1.17",
"storybook-addon-source-link": "1.0.1",
"storybook-addon-tag-badges": "2.0.4",
"style-loader": "3.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-import-jsx-pragma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@babel/plugin-syntax-jsx": "7.25.7"
"@babel/plugin-syntax-jsx": "^7.25.7"
},
"peerDependencies": {
"@babel/core": "^7.25.7"
Expand Down
3 changes: 3 additions & 0 deletions packages/block-serialization-default-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"wpScript": true,
"types": "build-types",
"sideEffects": false,
"devDependencies": {
"@wordpress/block-serialization-spec-parser": "file:../block-serialization-spec-parser"
},
"publishConfig": {
"access": "public"
}
Expand Down
1 change: 1 addition & 0 deletions packages/block-serialization-spec-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"main": "parser.js",
"exports": {
".": "./parser.js",
"./shared-tests": "./shared-tests.js",
"./package.json": "./package.json"
},
"wpScript": true,
Expand Down
1 change: 1 addition & 0 deletions packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"@wordpress/a11y": "file:../a11y",
"@wordpress/admin-ui": "file:../admin-ui",
"@wordpress/base-styles": "file:../base-styles",
"@wordpress/commands": "file:../commands",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
Expand Down
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Code Quality

- Fix missing dependencies. [#74310](https://github.com/WordPress/gutenberg/pull/74310)

### Breaking Changes

- Validated form controls (private API): Removed `onValidate` prop (use `onChange` to set `customValidity` messages, or add conditionals directly inside the `customValidity` prop instead) ([#73559](https://github.com/WordPress/gutenberg/pull/73559)).
Expand Down
7 changes: 7 additions & 0 deletions packages/components/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// When typeRoots is set in tsconfig, TypeScript only includes
// type definitions found in the specified directories.
// To ensure that global types are included, we need to
// explicitly reference them here.
import '@testing-library/jest-dom';
import '@wordpress/jest-console';
import 'snapshot-diff';
7 changes: 7 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@
},
"devDependencies": {
"@ariakit/test": "^0.4.7",
"@storybook/addon-docs": "^9.1.17",
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14",
"@wordpress/jest-console": "file:../jest-console",
"csstype": "^3.2.3",
"snapshot-diff": "^0.10.0",
"storybook": "^9.1.17",
"timezone-mock": "^1.3.6"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,17 @@ const BaseComponent = ( {
const TestComponent = withNotices( BaseComponent );

const TestNoticeOperations = withNotices(
forwardRef( ( props, ref ) => {
forwardRef<
unknown,
WithNoticeProps & { notifications?: ReturnType< typeof noticesFrom > }
>( ( props, ref ) => {
useImperativeHandle( ref, () => ( { ...props.noticeOperations } ) );
return <BaseComponent { ...props } />;
return (
<BaseComponent
{ ...props }
notifications={ props.notifications ?? [] }
/>
);
} )
);

Expand Down
4 changes: 2 additions & 2 deletions packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"gutenberg-env",
"gutenberg-test-env",
"css-modules",
"jest",
"@testing-library/jest-dom"
"jest"
]
},
"references": [
Expand All @@ -30,6 +29,7 @@
{ "path": "../rich-text" },
{ "path": "../warning" }
],
"files": [ "global.d.ts" ],
"exclude": [
"src/**/*.android.js",
"src/**/*.ios.js",
Expand Down
1 change: 1 addition & 0 deletions packages/dataviews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Reorganize internal code. [#74188](https://github.com/WordPress/gutenberg/pull/74188)
- Improve stories and tests. [#74192](https://github.com/WordPress/gutenberg/pull/74192)
- Update DataForm stories. [#74196](https://github.com/WordPress/gutenberg/pull/74196)
- Fix missing dependencies. [#74310](https://github.com/WordPress/gutenberg/pull/74310)

### Bug Fixes

Expand Down
1 change: 0 additions & 1 deletion packages/dataviews/build.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* External dependencies
*/
// eslint-disable-next-line import/no-extraneous-dependencies
const esbuild = require( 'esbuild' );

const wpExternals = {
Expand Down
5 changes: 5 additions & 0 deletions packages/dataviews/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// When typeRoots is set in tsconfig, TypeScript only includes
// type definitions found in the specified directories.
// To ensure that global types are included, we need to
// explicitly reference them here.
import '@testing-library/jest-dom';
5 changes: 4 additions & 1 deletion packages/dataviews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@
"remove-accents": "^0.5.0"
},
"devDependencies": {
"@ariakit/test": "^0.4.7"
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14",
"esbuild": "^0.27.2",
"storybook": "^9.1.17"
},
"peerDependencies": {
"react": "^18.0.0",
Expand Down
8 changes: 2 additions & 6 deletions packages/dataviews/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": [
"gutenberg-env",
"gutenberg-test-env",
"jest",
"@testing-library/jest-dom"
]
"types": [ "gutenberg-env", "gutenberg-test-env", "jest" ]
},
"references": [
{ "path": "../components" },
Expand All @@ -27,6 +22,7 @@
{ "path": "../url" },
{ "path": "../warning" }
],
"files": [ "global.d.ts" ],
"exclude": [
"src/**/*.android.js",
"src/**/*.ios.js",
Expand Down
6 changes: 5 additions & 1 deletion packages/dependency-extraction-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
"json2php": "^0.0.7"
},
"devDependencies": {
"mkdirp": "3.0.1"
"atob": "^2.1.2",
"css-loader": "^6.2.0",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.9.2",
"mkdirp": "^3.0.1"
},
"peerDependencies": {
"webpack": "^5.0.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"remark-parse": "6.0.3",
"unified": "7.1.0"
},
"devDependencies": {
"@types/babel__core": "^7.20.5"
},
"publishConfig": {
"access": "public"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-test-utils-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"@types/mime": "2.0.3"
},
"peerDependencies": {
"@playwright/test": ">=1"
"@playwright/test": ">=1",
"@types/node": "^20.17.10"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion packages/e2e-test-utils-playwright/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"composite": false,
"module": "Node16",
"moduleResolution": "node16",
"types": [ "node" ],
"noEmit": false,
"outDir": "build",
"sourceMap": true,
Expand Down
6 changes: 6 additions & 0 deletions packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"@wordpress/interactivity": "file:../interactivity",
"@wordpress/interactivity-router": "file:../interactivity-router"
},
"peerDependencies": {
"jest": ">=29",
"puppeteer-core": ">=23",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"types": "build-types",
"sideEffects": false,
"dependencies": {
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/react": "^18.3.27",
"@types/react-dom": "^18.3.1",
"@wordpress/escape-html": "file:../escape-html",
"change-case": "^4.1.2",
"is-plain-object": "^5.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"requireindex": "^1.2.0"
},
"devDependencies": {
"@types/eslint": "^8",
"@types/estree": "1.0.5"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/format-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"wpScript": true,
"dependencies": {
"@wordpress/a11y": "file:../a11y",
"@wordpress/base-styles": "file:../base-styles",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
Expand Down
5 changes: 5 additions & 0 deletions packages/global-styles-engine/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// When typeRoots is set in tsconfig, TypeScript only includes
// type definitions found in the specified directories.
// To ensure that global types are included, we need to
// explicitly reference them here.
import '@testing-library/jest-dom';
4 changes: 4 additions & 0 deletions packages/global-styles-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"is-plain-object": "^5.0.0",
"memize": "^2.1.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14"
},
"publishConfig": {
"access": "public"
}
Expand Down
10 changes: 3 additions & 7 deletions packages/global-styles-engine/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"checkJs": false,
"types": [
"gutenberg-env",
"gutenberg-test-env",
"jest",
"@testing-library/jest-dom"
]
"types": [ "gutenberg-env", "gutenberg-test-env", "jest" ]
},
"references": [
{ "path": "../data" },
{ "path": "../i18n" },
{ "path": "../style-engine" }
]
],
"files": [ "global.d.ts" ]
}
1 change: 1 addition & 0 deletions packages/global-styles-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"dependencies": {
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/base-styles": "file:../base-styles",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
Expand Down
2 changes: 2 additions & 0 deletions packages/image-cropper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"types": "build-types",
"sideEffects": false,
"dependencies": {
"@wordpress/components": "file:../components",
"@wordpress/element": "file:../element",
"@wordpress/i18n": "file:../i18n",
"clsx": "^2.1.1",
"dequal": "^2.0.3",
"react-easy-crop": "^5.4.2"
Expand Down
6 changes: 5 additions & 1 deletion packages/image-cropper/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"compilerOptions": {
"checkJs": false
},
"references": [ { "path": "../element" } ]
"references": [
{ "path": "../components" },
{ "path": "../element" },
{ "path": "../i18n" }
]
}
3 changes: 3 additions & 0 deletions packages/interactivity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"@preact/signals": "^1.3.0",
"preact": "^10.24.2"
},
"devDependencies": {
"@types/jest": "^29.5.14"
},
"publishConfig": {
"access": "public"
}
Expand Down
Loading
Loading