Commit e3ded56590d for woocommerce
commit e3ded56590d360974fa0fcb950d3b80869f55c35
Author: Ján Mikláš <neosinner@gmail.com>
Date: Thu Nov 26 17:40:09 2026 +0100
Share @types declaration packages through a pnpm types catalog (#71469)
* Declare shared @types packages through a types catalog
Nine @types packages were declared with hand-copied ranges across up to 16 workspace packages. A types catalog gives them one source of truth, and syncpack now requires catalog:types for those entries in dependencies and devDependencies.
Every resolved version stays the same: the lockfile only gains the catalog block and the new specifiers. Peer dependency ranges and the @types/react override stay literal, since they are public ranges and changing the override would re-resolve the whole lockfile. Blocks keeps its exact @types/lodash 4.14.182 pin, which resolves differently from the shared range.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NM9YXuFWofeyujZojqgDiD
* Add changelog entries for the types catalog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NM9YXuFWofeyujZojqgDiD
* Move build-only typings to devDependencies
* Move Jest typings to the types catalog
* Use the types catalog for the React override
* Move Sass and its override to the tooling catalog
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/.syncpackrc b/.syncpackrc
index f41a26e8109..3512f519cb8 100644
--- a/.syncpackrc
+++ b/.syncpackrc
@@ -26,13 +26,38 @@
"isBanned": true
},
{
+ "label": "block-library pins @types/lodash 4.14.182 until its remaining lodash use is removed",
"dependencies": [
- "@types/node"
+ "@types/lodash"
+ ],
+ "packages": [
+ "@woocommerce/block-library"
+ ],
+ "isIgnored": true
+ },
+ {
+ "label": "Shared type declarations",
+ "dependencyTypes": [
+ "prod",
+ "dev",
+ "pnpmOverrides"
+ ],
+ "dependencies": [
+ "@types/debug",
+ "@types/jest",
+ "@types/lodash",
+ "@types/node",
+ "@types/prop-types",
+ "@types/qs",
+ "@types/react",
+ "@types/react-dom",
+ "@types/react-transition-group",
+ "@types/semver"
],
"packages": [
"**"
],
- "pinVersion": "^24.1.0"
+ "policy": "catalog"
},
{
"dependencies": [
@@ -108,7 +133,8 @@
"label": "Shared build tooling",
"dependencyTypes": [
"prod",
- "dev"
+ "dev",
+ "pnpmOverrides"
],
"dependencies": [
"@babel/cli",
@@ -121,7 +147,6 @@
"@commander-js/extra-typings",
"@jest/globals",
"@oclif/core",
- "@types/jest",
"@wordpress/browserslist-config",
"@wordpress/env",
"@wordpress/postcss-plugins-preset",
@@ -146,6 +171,7 @@
"postcss-loader",
"prettier",
"rimraf",
+ "sass",
"sass-loader",
"simple-git",
"ts-jest",
diff --git a/package.json b/package.json
index 97ca2944c75..c19932afed9 100644
--- a/package.json
+++ b/package.json
@@ -53,7 +53,7 @@
"devDependencies": {
"@babel/preset-env": "catalog:tooling",
"@babel/runtime": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/monorepo-utils": "workspace:*",
@@ -76,7 +76,7 @@
"prettier": "catalog:tooling",
"regenerator-runtime": "^0.13.11",
"rimraf": "catalog:tooling",
- "sass": "^1.69.5",
+ "sass": "catalog:tooling",
"sass-loader": "catalog:tooling",
"stylelint": "catalog:tooling",
"syncpack": "15.3.3",
diff --git a/packages/js/admin-layout/changelog/wooplug-8336-types-catalog b/packages/js/admin-layout/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/admin-layout/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/admin-layout/package.json b/packages/js/admin-layout/package.json
index 7f25c259e3c..c487f05f5ab 100644
--- a/packages/js/admin-layout/package.json
+++ b/packages/js/admin-layout/package.json
@@ -70,7 +70,7 @@
"@wordpress/element": "catalog:wp-min"
},
"devDependencies": {
- "@types/react": "18.3.x",
+ "@types/react": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/components/changelog/wooplug-8336-types-catalog b/packages/js/components/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/components/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/components/package.json b/packages/js/components/package.json
index 0b951a9003f..55ddb00459f 100644
--- a/packages/js/components/package.json
+++ b/packages/js/components/package.json
@@ -160,9 +160,9 @@
"@testing-library/react": "^16.x.x",
"@testing-library/user-event": "13.5.0",
"@types/canvas-confetti": "^1.6.4",
- "@types/jest": "catalog:tooling",
- "@types/lodash": "^4.14.202",
- "@types/prop-types": "^15.7.11",
+ "@types/jest": "catalog:types",
+ "@types/lodash": "catalog:types",
+ "@types/prop-types": "catalog:types",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/wordpress__viewport": "catalog:wp-min",
"@woocommerce/eslint-config": "workspace:*",
diff --git a/packages/js/csv-export/changelog/wooplug-8336-types-catalog b/packages/js/csv-export/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/csv-export/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/csv-export/package.json b/packages/js/csv-export/package.json
index f89446b100f..e7eea7480b5 100644
--- a/packages/js/csv-export/package.json
+++ b/packages/js/csv-export/package.json
@@ -58,12 +58,10 @@
"watch:build:project": "pnpm --stream '/^watch:build:project:.*$/'",
"watch:build:project:esm": "node build.mjs --watch"
},
- "dependencies": {
- "@types/node": "^24.1.0"
- },
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/currency/changelog/wooplug-8336-types-catalog b/packages/js/currency/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/currency/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/currency/package.json b/packages/js/currency/package.json
index a7702e2e0a8..3c6fe62e7c7 100644
--- a/packages/js/currency/package.json
+++ b/packages/js/currency/package.json
@@ -84,8 +84,8 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/jest": "catalog:tooling",
- "@types/react": "18.3.x",
+ "@types/jest": "catalog:types",
+ "@types/react": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/customer-effort-score/changelog/wooplug-8336-types-catalog b/packages/js/customer-effort-score/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/customer-effort-score/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/customer-effort-score/package.json b/packages/js/customer-effort-score/package.json
index 1849121f7d5..a960f001912 100644
--- a/packages/js/customer-effort-score/package.json
+++ b/packages/js/customer-effort-score/package.json
@@ -93,8 +93,8 @@
"@babel/core": "catalog:tooling",
"@testing-library/dom": "^10.4.x",
"@testing-library/react": "^16.x.x",
- "@types/jest": "catalog:tooling",
- "@types/prop-types": "^15.7.11",
+ "@types/jest": "catalog:types",
+ "@types/prop-types": "catalog:types",
"@types/testing-library__jest-dom": "^5.14.9",
"@woocommerce/data": "workspace:*",
"@woocommerce/eslint-config": "workspace:*",
diff --git a/packages/js/data/changelog/wooplug-8336-types-catalog b/packages/js/data/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/data/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/data/package.json b/packages/js/data/package.json
index 184f88a5bf1..97ce62b30c8 100644
--- a/packages/js/data/package.json
+++ b/packages/js/data/package.json
@@ -94,12 +94,12 @@
"@babel/runtime": "catalog:tooling",
"@testing-library/dom": "^10.4.x",
"@testing-library/react": "^16.x.x",
- "@types/jest": "catalog:tooling",
- "@types/lodash": "^4.14.202",
+ "@types/jest": "catalog:types",
+ "@types/lodash": "catalog:types",
"@types/md5": "^2.3.5",
- "@types/node": "^24.1.0",
- "@types/qs": "^6.9.10",
- "@types/react": "18.3.x",
+ "@types/node": "catalog:types",
+ "@types/qs": "catalog:types",
+ "@types/react": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/date/changelog/wooplug-8336-types-catalog b/packages/js/date/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/date/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/date/package.json b/packages/js/date/package.json
index 123b6634ad5..cb467026e44 100644
--- a/packages/js/date/package.json
+++ b/packages/js/date/package.json
@@ -47,10 +47,10 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/jest": "catalog:tooling",
- "@types/lodash": "^4.14.202",
- "@types/node": "^24.1.0",
- "@types/qs": "^6.9.10",
+ "@types/jest": "catalog:types",
+ "@types/lodash": "catalog:types",
+ "@types/node": "catalog:types",
+ "@types/qs": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/e2e-utils-playwright/changelog/wooplug-8336-types-catalog b/packages/js/e2e-utils-playwright/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/e2e-utils-playwright/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/e2e-utils-playwright/package.json b/packages/js/e2e-utils-playwright/package.json
index bd2bc08b98d..701b7b52633 100644
--- a/packages/js/e2e-utils-playwright/package.json
+++ b/packages/js/e2e-utils-playwright/package.json
@@ -72,8 +72,8 @@
},
"devDependencies": {
"@playwright/test": "^1.63.0",
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/email-editor/changelog/wooplug-8336-types-catalog b/packages/js/email-editor/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/email-editor/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/email-editor/package.json b/packages/js/email-editor/package.json
index 56b627ac82b..44162245dba 100644
--- a/packages/js/email-editor/package.json
+++ b/packages/js/email-editor/package.json
@@ -127,12 +127,12 @@
"@testing-library/react": "^16.x.x",
"@testing-library/user-event": "13.5.0",
"@types/history": "^4.7.11",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
"@types/js-cookie": "^3.0.2",
- "@types/lodash": "^4.14.180",
- "@types/node": "^24.1.0",
- "@types/react": "18.3.x",
- "@types/react-dom": "18.3.x",
+ "@types/lodash": "catalog:types",
+ "@types/node": "catalog:types",
+ "@types/react": "catalog:types",
+ "@types/react-dom": "catalog:types",
"@types/wordpress__block-editor": "catalog:wp-min",
"@types/wordpress__block-library": "catalog:wp-min",
"@types/wordpress__blocks": "catalog:wp-min",
diff --git a/packages/js/experimental/changelog/wooplug-8336-types-catalog b/packages/js/experimental/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/experimental/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/experimental/package.json b/packages/js/experimental/package.json
index d86afb9dee4..bd6403c5329 100644
--- a/packages/js/experimental/package.json
+++ b/packages/js/experimental/package.json
@@ -73,8 +73,8 @@
"@testing-library/dom": "10.4.1",
"@testing-library/react": "^16.x.x",
"@testing-library/user-event": "13.5.0",
- "@types/jest": "catalog:tooling",
- "@types/react-transition-group": "^4.4.10",
+ "@types/jest": "catalog:types",
+ "@types/react-transition-group": "catalog:types",
"@types/testing-library__jest-dom": "^5.14.9",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
diff --git a/packages/js/explat/changelog/wooplug-8336-types-catalog b/packages/js/explat/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/explat/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/explat/package.json b/packages/js/explat/package.json
index 8d3e262b800..33fcc084722 100644
--- a/packages/js/explat/package.json
+++ b/packages/js/explat/package.json
@@ -75,10 +75,10 @@
"devDependencies": {
"@babel/core": "catalog:tooling",
"@types/cookie": "^0.6.0",
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
- "@types/qs": "^6.9.10",
- "@types/react": "18.3.x",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
+ "@types/qs": "catalog:types",
+ "@types/react": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/expression-evaluation/changelog/wooplug-8336-types-catalog b/packages/js/expression-evaluation/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..c14e565389c
--- /dev/null
+++ b/packages/js/expression-evaluation/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Use the shared catalog for Jest typings. Production code is unaffected.
diff --git a/packages/js/expression-evaluation/package.json b/packages/js/expression-evaluation/package.json
index 6fa955e4f90..e6c1f1bb180 100644
--- a/packages/js/expression-evaluation/package.json
+++ b/packages/js/expression-evaluation/package.json
@@ -74,7 +74,7 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/navigation/changelog/wooplug-8336-types-catalog b/packages/js/navigation/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/navigation/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/navigation/package.json b/packages/js/navigation/package.json
index e8d6b4684ee..9be7f8f0411 100644
--- a/packages/js/navigation/package.json
+++ b/packages/js/navigation/package.json
@@ -94,8 +94,8 @@
"devDependencies": {
"@babel/core": "catalog:tooling",
"@babel/runtime": "catalog:tooling",
- "@types/jest": "catalog:tooling",
- "@types/qs": "^6.9.10",
+ "@types/jest": "catalog:types",
+ "@types/qs": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/notices/changelog/wooplug-8336-types-catalog b/packages/js/notices/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/notices/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/notices/package.json b/packages/js/notices/package.json
index 20c25832603..0bf999f5254 100644
--- a/packages/js/notices/package.json
+++ b/packages/js/notices/package.json
@@ -87,7 +87,7 @@
"private": true,
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/lodash": "^4.14.202",
+ "@types/lodash": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/number/changelog/wooplug-8336-types-catalog b/packages/js/number/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/number/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/number/package.json b/packages/js/number/package.json
index e9537d70e47..36727534be0 100644
--- a/packages/js/number/package.json
+++ b/packages/js/number/package.json
@@ -73,8 +73,8 @@
"devDependencies": {
"@babel/core": "catalog:tooling",
"@babel/runtime": "catalog:tooling",
- "@types/jest": "catalog:tooling",
- "@types/lodash": "^4.14.202",
+ "@types/jest": "catalog:types",
+ "@types/lodash": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/onboarding/changelog/wooplug-8336-types-catalog b/packages/js/onboarding/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/onboarding/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/onboarding/package.json b/packages/js/onboarding/package.json
index b60c2f1f709..6f4fbb908c9 100644
--- a/packages/js/onboarding/package.json
+++ b/packages/js/onboarding/package.json
@@ -82,8 +82,8 @@
"devDependencies": {
"@babel/core": "catalog:tooling",
"@testing-library/react": "^16.x.x",
- "@types/jest": "catalog:tooling",
- "@types/react": "18.3.x",
+ "@types/jest": "catalog:types",
+ "@types/react": "catalog:types",
"@types/string-similarity": "4.0.0",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
diff --git a/packages/js/remote-logging/changelog/wooplug-8336-types-catalog b/packages/js/remote-logging/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/remote-logging/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/remote-logging/package.json b/packages/js/remote-logging/package.json
index 041fdcca2e5..9ac4507f270 100644
--- a/packages/js/remote-logging/package.json
+++ b/packages/js/remote-logging/package.json
@@ -71,9 +71,9 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/debug": "^4.1.12",
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/debug": "catalog:types",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/sanitize/changelog/wooplug-8336-types-catalog b/packages/js/sanitize/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..c14e565389c
--- /dev/null
+++ b/packages/js/sanitize/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Use the shared catalog for Jest typings. Production code is unaffected.
diff --git a/packages/js/sanitize/package.json b/packages/js/sanitize/package.json
index 430092881b3..27c7470c7a5 100644
--- a/packages/js/sanitize/package.json
+++ b/packages/js/sanitize/package.json
@@ -43,7 +43,7 @@
"devDependencies": {
"@babel/core": "catalog:tooling",
"@types/dompurify": "^2.0.4",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
"@types/trusted-types": "^2.0.7",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/js/settings-ui/changelog/wooplug-8336-types-catalog b/packages/js/settings-ui/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/settings-ui/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/settings-ui/package.json b/packages/js/settings-ui/package.json
index a9891bc85c6..d6a7fb63afe 100644
--- a/packages/js/settings-ui/package.json
+++ b/packages/js/settings-ui/package.json
@@ -45,8 +45,8 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/jest": "catalog:tooling",
- "@types/react": "18.3.x",
+ "@types/jest": "catalog:types",
+ "@types/react": "catalog:types",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
"@woocommerce/internal-js-tests": "workspace:*",
diff --git a/packages/js/tracks/changelog/wooplug-8336-types-catalog b/packages/js/tracks/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/packages/js/tracks/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/packages/js/tracks/package.json b/packages/js/tracks/package.json
index f78cdb06e4e..806716b0a45 100644
--- a/packages/js/tracks/package.json
+++ b/packages/js/tracks/package.json
@@ -73,9 +73,9 @@
},
"devDependencies": {
"@babel/core": "catalog:tooling",
- "@types/debug": "^4.1.12",
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/debug": "catalog:types",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/packages/php/woocommerce-analytics/changelog/wooplug-8336-types-catalog b/packages/php/woocommerce-analytics/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..0d9fe80cfbe
--- /dev/null
+++ b/packages/php/woocommerce-analytics/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: changed
+Comment: Use the shared catalog for Jest typings. Production code is unaffected.
diff --git a/packages/php/woocommerce-analytics/package.json b/packages/php/woocommerce-analytics/package.json
index 481a720b557..9b77b175dbd 100644
--- a/packages/php/woocommerce-analytics/package.json
+++ b/packages/php/woocommerce-analytics/package.json
@@ -36,7 +36,7 @@
"@babel/preset-env": "catalog:tooling",
"@babel/preset-typescript": "catalog:tooling",
"@jest/globals": "catalog:tooling",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
"@types/jquery": "3.5.33",
"@wordpress/browserslist-config": "catalog:tooling",
"@wordpress/dependency-extraction-webpack-plugin": "next",
diff --git a/plugins/woocommerce-beta-tester/changelog/wooplug-8336-types-catalog b/plugins/woocommerce-beta-tester/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce-beta-tester/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce-beta-tester/package.json b/plugins/woocommerce-beta-tester/package.json
index aaef6fb77bd..5d6f4b1a538 100644
--- a/plugins/woocommerce-beta-tester/package.json
+++ b/plugins/woocommerce-beta-tester/package.json
@@ -11,8 +11,9 @@
"version": "4.0.0",
"homepage": "http://github.com/woocommerce/woocommerce-beta-tester",
"devDependencies": {
- "@types/react": "18.3.x",
- "@types/react-dom": "18.3.x",
+ "@types/prop-types": "catalog:types",
+ "@types/react": "catalog:types",
+ "@types/react-dom": "catalog:types",
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
@@ -28,7 +29,6 @@
"uglify-js": "^3.17.4"
},
"dependencies": {
- "@types/prop-types": "^15.7.11",
"@woocommerce/data": "workspace:*",
"@woocommerce/remote-logging": "workspace:*",
"@wordpress/api-fetch": "catalog:wp-min",
diff --git a/plugins/woocommerce/admin-screens/changelog/wooplug-8336-types-catalog b/plugins/woocommerce/admin-screens/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce/admin-screens/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce/admin-screens/package.json b/plugins/woocommerce/admin-screens/package.json
index e502913fcfe..b2cdbd08f30 100644
--- a/plugins/woocommerce/admin-screens/package.json
+++ b/plugins/woocommerce/admin-screens/package.json
@@ -47,8 +47,8 @@
"react-dom": "18.3.x"
},
"devDependencies": {
- "@types/jest": "catalog:tooling",
- "@types/react": "18.3.x",
+ "@types/jest": "catalog:types",
+ "@types/react": "catalog:types",
"@typescript-eslint/eslint-plugin": "^8.63.0",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/internal-build": "workspace:*",
diff --git a/plugins/woocommerce/changelog/wooplug-8336-types-catalog b/plugins/woocommerce/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce/client/admin/changelog/wooplug-8336-types-catalog b/plugins/woocommerce/client/admin/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce/client/admin/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce/client/admin/package.json b/plugins/woocommerce/client/admin/package.json
index 9b19f40b89e..7898ad43513 100644
--- a/plugins/woocommerce/client/admin/package.json
+++ b/plugins/woocommerce/client/admin/package.json
@@ -136,13 +136,13 @@
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "13.5.0",
"@types/cookie": "^0.4.1",
- "@types/debug": "4.1.12",
- "@types/jest": "catalog:tooling",
- "@types/lodash": "^4.14.202",
- "@types/node": "^24.1.0",
- "@types/qs": "^6.9.10",
- "@types/react": "18.3.x",
- "@types/react-transition-group": "^4.4.10",
+ "@types/debug": "catalog:types",
+ "@types/jest": "catalog:types",
+ "@types/lodash": "catalog:types",
+ "@types/node": "catalog:types",
+ "@types/qs": "catalog:types",
+ "@types/react": "catalog:types",
+ "@types/react-transition-group": "catalog:types",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/tinymce": "^4.6.9",
"@types/wordpress__block-editor": "catalog:wp-min",
@@ -197,7 +197,7 @@
"replace": "^1.2.2",
"rimraf": "catalog:tooling",
"rtlcss": "4.3.x",
- "sass": "^1.69.5",
+ "sass": "catalog:tooling",
"sass-loader": "catalog:tooling",
"stylelint": "catalog:tooling",
"ts-jest": "catalog:tooling",
diff --git a/plugins/woocommerce/client/blocks/changelog/wooplug-8336-types-catalog b/plugins/woocommerce/client/blocks/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce/client/blocks/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce/client/blocks/package.json b/plugins/woocommerce/client/blocks/package.json
index d8e01b967bb..e04fc892db3 100644
--- a/plugins/woocommerce/client/blocks/package.json
+++ b/plugins/woocommerce/client/blocks/package.json
@@ -107,13 +107,13 @@
"@testing-library/react": "15.0.7",
"@testing-library/user-event": "14.5.2",
"@types/gtag.js": "0.0.10",
- "@types/jest": "catalog:tooling",
+ "@types/jest": "catalog:types",
"@types/jquery": "3.5.14",
"@types/lodash": "4.14.182",
- "@types/prop-types": "^15.7.11",
- "@types/react": "18.3.x",
- "@types/react-dom": "18.3.x",
- "@types/react-transition-group": "^4.4.10",
+ "@types/prop-types": "catalog:types",
+ "@types/react": "catalog:types",
+ "@types/react-dom": "catalog:types",
+ "@types/react-transition-group": "catalog:types",
"@types/wordpress__block-editor": "catalog:wp-min",
"@types/wordpress__block-library": "catalog:wp-min",
"@types/wordpress__blocks": "catalog:wp-min",
diff --git a/plugins/woocommerce/client/legacy/changelog/wooplug-8336-types-catalog b/plugins/woocommerce/client/legacy/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/plugins/woocommerce/client/legacy/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/plugins/woocommerce/client/legacy/package.json b/plugins/woocommerce/client/legacy/package.json
index 7a26d2b48a2..b0f430bc581 100644
--- a/plugins/woocommerce/client/legacy/package.json
+++ b/plugins/woocommerce/client/legacy/package.json
@@ -22,7 +22,7 @@
"test:js": "wp-scripts test-unit-js --config jest.config.json"
},
"devDependencies": {
- "@types/node": "^24.1.0",
+ "@types/node": "catalog:types",
"@wordpress/browserslist-config": "catalog:tooling",
"@wordpress/scripts": "catalog:tooling",
"@wordpress/stylelint-config": "catalog:tooling",
@@ -42,7 +42,7 @@
"jest-fixed-jsdom": "catalog:tooling",
"jquery": "3.7.1",
"jquery4": "npm:jquery@4.0.0",
- "sass": "^1.69.5",
+ "sass": "catalog:tooling",
"stylelint": "catalog:tooling"
},
"dependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3df4569cde0..28baecd4bd7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -229,9 +229,6 @@ catalogs:
'@oclif/core':
specifier: ^4.13.5
version: 4.13.5
- '@types/jest':
- specifier: 29.5.x
- version: 29.5.14
'@wordpress/browserslist-config':
specifier: next
version: 6.43.1-next.v.202604091042.0
@@ -331,6 +328,34 @@ catalogs:
webpack-cli:
specifier: 5.1.x
version: 5.1.4
+ types:
+ '@types/debug':
+ specifier: ^4.1.12
+ version: 4.1.12
+ '@types/jest':
+ specifier: 29.5.x
+ version: 29.5.14
+ '@types/lodash':
+ specifier: ^4.14.202
+ version: 4.17.24
+ '@types/node':
+ specifier: ^24.1.0
+ version: 24.12.2
+ '@types/prop-types':
+ specifier: ^15.7.11
+ version: 15.7.15
+ '@types/qs':
+ specifier: ^6.9.10
+ version: 6.15.0
+ '@types/react-dom':
+ specifier: 18.3.x
+ version: 18.3.7
+ '@types/react-transition-group':
+ specifier: ^4.4.10
+ version: 4.4.12
+ '@types/semver':
+ specifier: ^7.5.6
+ version: 7.7.1
wp-bundled:
'@wordpress/admin-ui':
specifier: 2.5.0
@@ -540,7 +565,7 @@ importers:
specifier: catalog:tooling
version: 7.25.7
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -890,13 +915,13 @@ importers:
specifier: ^1.6.4
version: 1.9.0
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@types/prop-types':
- specifier: ^15.7.11
+ specifier: catalog:types
version: 15.7.15
'@types/testing-library__jest-dom':
specifier: ^5.14.9
@@ -980,17 +1005,16 @@ importers:
packages/js/create-woo-extension: {}
packages/js/csv-export:
- dependencies:
- '@types/node':
- specifier: ^24.1.0
- version: 24.12.2
devDependencies:
'@babel/core':
specifier: catalog:tooling
version: 7.29.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
+ '@types/node':
+ specifier: catalog:types
+ version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
version: link:../../../tools/eslint-config
@@ -1050,7 +1074,7 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/react':
specifier: 18.3.x
@@ -1132,10 +1156,10 @@ importers:
specifier: ^16.x.x
version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/prop-types':
- specifier: ^15.7.11
+ specifier: catalog:types
version: 15.7.15
'@types/testing-library__jest-dom':
specifier: ^5.14.9
@@ -1280,19 +1304,19 @@ importers:
specifier: ^16.x.x
version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@types/md5':
specifier: ^2.3.5
version: 2.3.6
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/qs':
- specifier: ^6.9.10
+ specifier: catalog:types
version: 6.15.0
'@types/react':
specifier: 18.3.x
@@ -1365,16 +1389,16 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/qs':
- specifier: ^6.9.10
+ specifier: catalog:types
version: 6.15.0
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -1466,10 +1490,10 @@ importers:
specifier: ^1.63.0
version: 1.63.0
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -1620,22 +1644,22 @@ importers:
specifier: ^4.7.11
version: 4.7.11
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/js-cookie':
specifier: ^3.0.2
version: 3.0.6
'@types/lodash':
- specifier: ^4.14.180
+ specifier: catalog:types
version: 4.17.24
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/react':
specifier: 18.3.x
version: 18.3.28
'@types/react-dom':
- specifier: 18.3.x
+ specifier: catalog:types
version: 18.3.7(@types/react@18.3.28)
'@types/wordpress__block-editor':
specifier: catalog:wp-min
@@ -1793,10 +1817,10 @@ importers:
specifier: 13.5.0
version: 13.5.0(@testing-library/dom@10.4.1)
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/react-transition-group':
- specifier: ^4.4.10
+ specifier: catalog:types
version: 4.4.12(@types/react@18.3.28)
'@types/testing-library__jest-dom':
specifier: ^5.14.9
@@ -1893,13 +1917,13 @@ importers:
specifier: ^0.6.0
version: 0.6.0
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/qs':
- specifier: ^6.9.10
+ specifier: catalog:types
version: 6.15.0
'@types/react':
specifier: 18.3.x
@@ -1951,7 +1975,7 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2209,10 +2233,10 @@ importers:
specifier: catalog:tooling
version: 7.25.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/qs':
- specifier: ^6.9.10
+ specifier: catalog:types
version: 6.15.0
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2276,7 +2300,7 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2328,10 +2352,10 @@ importers:
specifier: catalog:tooling
version: 7.25.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2413,7 +2437,7 @@ importers:
specifier: ^16.x.x
version: 16.3.2(@testing-library/dom@10.4.1)(@types/react-dom@18.3.7(@types/react@18.3.28))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/react':
specifier: 18.3.x
@@ -2498,13 +2522,13 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/debug':
- specifier: ^4.1.12
+ specifier: catalog:types
version: 4.1.12
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2556,7 +2580,7 @@ importers:
specifier: ^2.0.4
version: 2.4.0
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/trusted-types':
specifier: ^2.0.7
@@ -2620,7 +2644,7 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/react':
specifier: 18.3.x
@@ -2675,13 +2699,13 @@ importers:
specifier: catalog:tooling
version: 7.29.7
'@types/debug':
- specifier: ^4.1.12
+ specifier: catalog:types
version: 4.1.12
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -2768,7 +2792,7 @@ importers:
specifier: catalog:tooling
version: 29.5.0
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/jquery':
specifier: 3.5.33
@@ -2912,9 +2936,6 @@ importers:
plugins/woocommerce-beta-tester:
dependencies:
- '@types/prop-types':
- specifier: ^15.7.11
- version: 15.7.15
'@woocommerce/data':
specifier: workspace:*
version: link:../../packages/js/data
@@ -2949,11 +2970,14 @@ importers:
specifier: ^15.8.1
version: 15.8.1
devDependencies:
+ '@types/prop-types':
+ specifier: catalog:types
+ version: 15.7.15
'@types/react':
specifier: 18.3.x
version: 18.3.28
'@types/react-dom':
- specifier: 18.3.x
+ specifier: catalog:types
version: 18.3.7(@types/react@18.3.28)
'@woocommerce/dependency-extraction-webpack-plugin':
specifier: workspace:*
@@ -3041,7 +3065,7 @@ importers:
version: 18.3.1(react@18.3.1)
devDependencies:
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/react':
specifier: 18.3.x
@@ -3351,25 +3375,25 @@ importers:
specifier: ^0.4.1
version: 0.4.1
'@types/debug':
- specifier: 4.1.12
+ specifier: catalog:types
version: 4.1.12
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/lodash':
- specifier: ^4.14.202
+ specifier: catalog:types
version: 4.17.24
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/qs':
- specifier: ^6.9.10
+ specifier: catalog:types
version: 6.15.0
'@types/react':
specifier: 18.3.x
version: 18.3.28
'@types/react-transition-group':
- specifier: ^4.4.10
+ specifier: catalog:types
version: 4.4.12(@types/react@18.3.28)
'@types/testing-library__jest-dom':
specifier: ^5.14.9
@@ -3739,7 +3763,7 @@ importers:
specifier: 0.0.10
version: 0.0.10
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/jquery':
specifier: 3.5.14
@@ -3748,16 +3772,16 @@ importers:
specifier: 4.14.182
version: 4.14.182
'@types/prop-types':
- specifier: ^15.7.11
+ specifier: catalog:types
version: 15.7.15
'@types/react':
specifier: 18.3.x
version: 18.3.28
'@types/react-dom':
- specifier: 18.3.x
+ specifier: catalog:types
version: 18.3.7(@types/react@18.3.28)
'@types/react-transition-group':
- specifier: ^4.4.10
+ specifier: catalog:types
version: 4.4.12(@types/react@18.3.28)
'@types/wordpress__block-editor':
specifier: catalog:wp-min
@@ -4058,7 +4082,7 @@ importers:
version: https://codeload.github.com/woocommerce/sourcebuster-js/tar.gz/b28980f98d8ed3f35ac84974e603a6c3bd103752
devDependencies:
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@wordpress/browserslist-config':
specifier: catalog:tooling
@@ -4155,10 +4179,10 @@ importers:
version: 4.0.2
devDependencies:
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -4207,7 +4231,7 @@ importers:
version: 10.9.2(@swc/core@1.15.24)(@types/node@24.12.2)(typescript@5.7.3)
devDependencies:
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
tools/eslint-config:
@@ -4296,10 +4320,10 @@ importers:
version: 4.0.2
devDependencies:
'@types/jest':
- specifier: catalog:tooling
+ specifier: catalog:types
version: 29.5.14
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@woocommerce/eslint-config':
specifier: workspace:*
@@ -4346,16 +4370,16 @@ importers:
'@oclif/plugin-plugins':
specifier: ^5.4.87
version: 5.5.0
- '@types/semver':
- specifier: ^7.5.6
- version: 7.7.1
semver:
specifier: ^7.5.4
version: 7.7.4
devDependencies:
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
+ '@types/semver':
+ specifier: catalog:types
+ version: 7.7.1
'@woocommerce/eslint-config':
specifier: workspace:*
version: link:../eslint-config
@@ -4421,10 +4445,10 @@ importers:
specifier: ^4.2.9
version: 4.2.9
'@types/node':
- specifier: ^24.1.0
+ specifier: catalog:types
version: 24.12.2
'@types/semver':
- specifier: ^7.5.6
+ specifier: catalog:types
version: 7.7.1
typescript:
specifier: catalog:tooling
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 0e65cf5b5b4..134e8c0ef22 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -80,7 +80,6 @@ catalogs:
# Keep direct Jest packages on 29.5.x; WordPress scripts manages its own test runner.
'@jest/globals': 29.5.x
'@oclif/core': ^4.13.5
- '@types/jest': 29.5.x
'@wordpress/browserslist-config': next
'@wordpress/build': 0.24.0
'@wordpress/env': 12.0.0
@@ -107,6 +106,7 @@ catalogs:
postcss-loader: 4.3.x
prettier: npm:wp-prettier@3.9.6
rimraf: 5.0.5
+ sass: 1.69.5
sass-loader: 10.5.x
simple-git: ^4.0.2
stylelint: ^16.9.0
@@ -115,6 +115,20 @@ catalogs:
webpack: 5.112.2
webpack-cli: 5.1.x
+ # Shared type declarations. `@types/wordpress__*` stay in `wp-min`.
+ types:
+ '@types/debug': ^4.1.12
+ # Keep in sync with Jest in `tooling`.
+ '@types/jest': 29.5.x
+ '@types/lodash': ^4.14.202
+ '@types/node': ^24.1.0
+ '@types/prop-types': ^15.7.11
+ '@types/qs': ^6.9.10
+ '@types/react': 18.3.x
+ '@types/react-dom': 18.3.x
+ '@types/react-transition-group': ^4.4.10
+ '@types/semver': ^7.5.6
+
packages:
- 'packages/js/*'
- 'packages/php/*'
@@ -137,7 +151,7 @@ packages:
# Dependency resolution (migrated from the `pnpm` field of package.json)
overrides:
- '@types/react': 18.3.x
+ '@types/react': 'catalog:types'
# Patch exact Colord 2.9.3 pins without changing other versions; remove when their parents use patched releases.
'colord@2.9.3': 2.9.4
'@wordpress/data-controls>@wordpress/api-fetch': 'catalog:wp-min'
@@ -146,7 +160,7 @@ overrides:
# @automattic/components 2.x lists react-router-dom but never imports it; drop once it is on 5.x.
'@automattic/components>react-router-dom': ~7.18.5
react-resize-aware: 3.1.1
- sass: 1.69.5
+ sass: 'catalog:tooling'
patchedDependencies:
'@wordpress/edit-site@5.15.0': bin/patches/@wordpress__edit-site@5.15.0.patch
diff --git a/tools/code-analyzer/changelog/wooplug-8336-types-catalog b/tools/code-analyzer/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/tools/code-analyzer/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/tools/code-analyzer/package.json b/tools/code-analyzer/package.json
index a51143a6667..4dd8fefa4cc 100644
--- a/tools/code-analyzer/package.json
+++ b/tools/code-analyzer/package.json
@@ -23,8 +23,8 @@
"simple-git": "catalog:tooling"
},
"devDependencies": {
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "catalog:tooling",
diff --git a/tools/compare-perf/changelog/wooplug-8336-types-catalog b/tools/compare-perf/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/tools/compare-perf/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/tools/compare-perf/package.json b/tools/compare-perf/package.json
index adbed2b6344..13a7c96a413 100644
--- a/tools/compare-perf/package.json
+++ b/tools/compare-perf/package.json
@@ -19,7 +19,7 @@
"ts-node": "^10.9.2"
},
"devDependencies": {
- "@types/node": "^24.1.0"
+ "@types/node": "catalog:types"
},
"engines": {
"node": "^24.15.0"
diff --git a/tools/monorepo-utils/changelog/wooplug-8336-types-catalog b/tools/monorepo-utils/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/tools/monorepo-utils/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/tools/monorepo-utils/package.json b/tools/monorepo-utils/package.json
index 9c9f4abd608..57ecce44b59 100644
--- a/tools/monorepo-utils/package.json
+++ b/tools/monorepo-utils/package.json
@@ -47,8 +47,8 @@
"simple-git": "catalog:tooling"
},
"devDependencies": {
- "@types/jest": "catalog:tooling",
- "@types/node": "^24.1.0",
+ "@types/jest": "catalog:types",
+ "@types/node": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"copy-webpack-plugin": "catalog:tooling",
diff --git a/tools/package-release/changelog/wooplug-8336-types-catalog b/tools/package-release/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/tools/package-release/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/tools/package-release/package.json b/tools/package-release/package.json
index b4c3dfc4182..005edb83f8c 100644
--- a/tools/package-release/package.json
+++ b/tools/package-release/package.json
@@ -27,11 +27,11 @@
"@oclif/core": "catalog:tooling",
"@oclif/plugin-help": "^6.2.58",
"@oclif/plugin-plugins": "^5.4.87",
- "@types/semver": "^7.5.6",
"semver": "^7.5.4"
},
"devDependencies": {
- "@types/node": "^24.1.0",
+ "@types/node": "catalog:types",
+ "@types/semver": "catalog:types",
"@woocommerce/eslint-config": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "catalog:tooling",
diff --git a/tools/release-posts/changelog/wooplug-8336-types-catalog b/tools/release-posts/changelog/wooplug-8336-types-catalog
new file mode 100644
index 00000000000..2b4e02fc41e
--- /dev/null
+++ b/tools/release-posts/changelog/wooplug-8336-types-catalog
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Declare shared @types packages through the workspace types catalog; no production change.
diff --git a/tools/release-posts/package.json b/tools/release-posts/package.json
index 6378a7db9dd..a3f1d4521e6 100644
--- a/tools/release-posts/package.json
+++ b/tools/release-posts/package.json
@@ -15,8 +15,8 @@
"@tsconfig/node16": "^1.0.4",
"@types/ejs": "^3.1.5",
"@types/lodash.shuffle": "^4.2.9",
- "@types/node": "^24.1.0",
- "@types/semver": "^7.5.6",
+ "@types/node": "catalog:types",
+ "@types/semver": "catalog:types",
"typescript": "catalog:tooling"
},
"dependencies": {