From bec3ec18ac801875a830ddf097ba173069161c13 Mon Sep 17 00:00:00 2001
From: Sam Seay
Date: Thu, 9 Mar 2023 10:13:25 +1300
Subject: [PATCH] Update Syncpack and use it to pin @wordpress packages to
wp-6.0 (#37034)
---
.github/workflows/syncpack.yml | 2 +-
.syncpackrc | 84 +-
package.json | 6 +-
.../changelog/dev-pin-wp-deps-6 | 4 +
packages/js/admin-e2e-tests/package.json | 2 +-
packages/js/api/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/api/package.json | 4 +-
.../js/components/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/components/package.json | 48 +-
.../date-time-picker-control.tsx | 3 +-
.../date-time-picker-control/test/index.tsx | 6 +
.../js/currency/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/currency/package.json | 10 +-
.../changelog/dev-pin-wp-deps-6 | 4 +
.../js/customer-effort-score/package.json | 19 +-
packages/js/data/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/data/package.json | 22 +-
packages/js/date/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/date/package.json | 4 +-
.../changelog/dev-pin-wp-deps-6 | 4 +
packages/js/e2e-core-tests/package.json | 4 +-
packages/js/e2e-environment/package.json | 2 +-
packages/js/e2e-utils/package.json | 10 +-
packages/js/eslint-plugin/.eslintrc.js | 4 +
.../eslint-plugin/changelog/dev-pin-wp-deps-6 | 4 +
.../experimental/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/experimental/package.json | 7 +-
.../js/explat/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/explat/package.json | 4 +-
packages/js/internal-js-tests/package.json | 4 +-
packages/js/internal-style-build/index.js | 5 +-
packages/js/internal-style-build/package.json | 6 +-
.../js/navigation/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/navigation/package.json | 14 +-
packages/js/notices/package.json | 6 +-
.../js/onboarding/changelog/dev-pin-wp-deps-6 | 4 +
packages/js/onboarding/package.json | 13 +-
.../changelog/dev-pin-wp-deps-6 | 4 +
packages/js/product-editor/package.json | 31 +-
.../use-category-search.ts | 4 +-
.../details-name-field/details-name-field.tsx | 4 +-
.../pricing-section/pricing-field-sale.tsx | 2 +
.../test/__snapshots__/index.js.snap | 28 +-
.../test/__snapshots__/index.js.snap | 20 +-
plugins/woocommerce-admin/package.json | 58 +-
.../changelog/dev-pin-wp-deps-6 | 4 +
plugins/woocommerce-beta-tester/package.json | 18 +-
.../woocommerce/changelog/dev-pin-wp-deps-6 | 4 +
plugins/woocommerce/package.json | 6 +-
pnpm-lock.yaml | 3729 +++++++----------
tools/cli-core/package.json | 1 -
51 files changed, 1933 insertions(+), 2321 deletions(-)
create mode 100644 packages/js/admin-e2e-tests/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/api/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/components/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/currency/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/customer-effort-score/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/data/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/date/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/dependency-extraction-webpack-plugin/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/eslint-plugin/.eslintrc.js
create mode 100644 packages/js/eslint-plugin/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/experimental/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/explat/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/navigation/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/onboarding/changelog/dev-pin-wp-deps-6
create mode 100644 packages/js/product-editor/changelog/dev-pin-wp-deps-6
create mode 100644 plugins/woocommerce-beta-tester/changelog/dev-pin-wp-deps-6
create mode 100644 plugins/woocommerce/changelog/dev-pin-wp-deps-6
diff --git a/.github/workflows/syncpack.yml b/.github/workflows/syncpack.yml
index bfa6f58d262..3406ae02aee 100644
--- a/.github/workflows/syncpack.yml
+++ b/.github/workflows/syncpack.yml
@@ -25,7 +25,7 @@ jobs:
node-version: 16
- name: 'Install Syncpack'
- run: npm install -g syncpack@^8.2.4
+ run: npm install -g syncpack@^9.8.4
- name: 'List Mismatches'
run: syncpack list-mismatches
diff --git a/.syncpackrc b/.syncpackrc
index 8f228343559..57c61d0a79a 100644
--- a/.syncpackrc
+++ b/.syncpackrc
@@ -1,6 +1,6 @@
{
"dev": true,
- "filter": "^(?:config|react|react-dom|eslint|typescript|@typescript-eslint|@types/react).*$",
+ "filter": "^(?:config|react|react-dom|eslint|typescript|@typescript-eslint|@types/react|@wordpress|@types/wordpress__components|postcss).*$",
"indent": "\t",
"overrides": true,
"peer": true,
@@ -72,6 +72,88 @@
"**"
],
"pinVersion": "^8.32.0"
+ },
+ {
+ "dependencies": [
+ "@wordpress/eslint-plugin",
+ "@wordpress/babel-plugin-import-jsx-pragma",
+ "@wordpress/babel-preset-default",
+ "@wordpress/env",
+ "@wordpress/stylelint-config",
+ "@wordpress/prettier-config",
+ "@wordpress/scripts",
+ "@wordpress/jest-console",
+ "@wordpress/dependency-extraction-webpack-plugin",
+ "@wordpress/e2e-test-utils",
+ "@wordpress/jest-preset-default",
+ "@wordpress/postcss-plugins-preset",
+ "@wordpress/custom-templated-path-webpack-plugin",
+ "@wordpress/postcss-themes"
+ ],
+ "packages": [
+ "**"
+ ],
+ "isIgnored": true
+ },
+ {
+ "dependencies": [
+ "@wordpress/block**",
+ "@wordpress/viewport"
+ ],
+ "packages": [
+ "@woocommerce/product-editor",
+ "woocommerce/client/admin",
+ "@woocommerce/components"
+ ],
+ "isIgnored": true
+ },
+ {
+ "dependencies": [
+ "@wordpress/**"
+ ],
+ "packages": [
+ "@woocommerce/experimental"
+ ],
+ "isIgnored": true
+ },
+ {
+ "dependencies": [
+ "@wordpress/**"
+ ],
+ "packages": [
+ "**"
+ ],
+ "pinVersion": "wp-6.0"
+ },
+ {
+ "dependencies": [
+ "@types/wordpress__components"
+ ],
+ "packages": [
+ "**"
+ ],
+ "pinVersion": "^19.10.3"
+ },
+ {
+ "dependencies": [
+ "postcss-loader"
+ ],
+ "dependencyTypes": [
+ "devDependencies"
+ ],
+ "packages": [
+ "**"
+ ],
+ "pinVersion": "^4.3.0"
+ },
+ {
+ "dependencies": [
+ "postcss"
+ ],
+ "packages": [
+ "**"
+ ],
+ "pinVersion": "^8.4.7"
}
]
}
diff --git a/package.json b/package.json
index aa82c07e55c..84bb3b8b7ec 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"@babel/runtime": "^7.17.2",
"@types/node": "14.14.33",
"@woocommerce/eslint-plugin": "workspace:*",
- "@wordpress/data": "^6.15.0",
+ "@wordpress/data": "wp-6.0",
"@wordpress/eslint-plugin": "^11.1.0",
"@wordpress/prettier-config": "^1.1.1",
"babel-loader": "^8.2.3",
@@ -44,13 +44,13 @@
"mkdirp": "^1.0.4",
"moment": "^2.29.1",
"node-stream-zip": "^1.15.0",
- "postcss-loader": "^3.0.0",
+ "postcss-loader": "^4.3.0",
"prettier": "npm:wp-prettier@^2.2.1-beta-1",
"regenerator-runtime": "^0.13.9",
"request": "^2.88.2",
"sass": "^1.49.9",
"sass-loader": "^10.2.1",
- "syncpack": "^8.3.9",
+ "syncpack": "^9.8.4",
"turbo": "^1.7.0",
"typescript": "^4.8.3",
"url-loader": "^1.1.2",
diff --git a/packages/js/admin-e2e-tests/changelog/dev-pin-wp-deps-6 b/packages/js/admin-e2e-tests/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..f424506bcb2
--- /dev/null
+++ b/packages/js/admin-e2e-tests/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Use syncpack to update dependencies.
diff --git a/packages/js/admin-e2e-tests/package.json b/packages/js/admin-e2e-tests/package.json
index 51bffa6e593..514fe44b7af 100644
--- a/packages/js/admin-e2e-tests/package.json
+++ b/packages/js/admin-e2e-tests/package.json
@@ -41,7 +41,7 @@
"@types/config": "0.0.41",
"@types/expect-puppeteer": "^4.4.7",
"@types/puppeteer": "^5.4.5",
- "@typescript-eslint/eslint-plugin": "^5.43.0",
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
"@woocommerce/api": "^0.2.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.32.0",
diff --git a/packages/js/api/changelog/dev-pin-wp-deps-6 b/packages/js/api/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..955f4a22095
--- /dev/null
+++ b/packages/js/api/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Syncpack update of @typescript/eslint dependencies.
diff --git a/packages/js/api/package.json b/packages/js/api/package.json
index 78562c19794..bf6177b4b56 100644
--- a/packages/js/api/package.json
+++ b/packages/js/api/package.json
@@ -51,8 +51,8 @@
"@types/create-hmac": "1.1.0",
"@types/jest": "^27.4.1",
"@types/node": "13.13.5",
- "@typescript-eslint/eslint-plugin": "^5.43.0",
- "@typescript-eslint/parser": "^5.43.0",
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
+ "@typescript-eslint/parser": "^5.54.0",
"@woocommerce/eslint-plugin": "workspace:*",
"axios-mock-adapter": "^1.20.0",
"eslint": "^8.32.0",
diff --git a/packages/js/components/changelog/dev-pin-wp-deps-6 b/packages/js/components/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/components/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/components/package.json b/packages/js/components/package.json
index 6e8c2bd8496..56fe047b1e1 100644
--- a/packages/js/components/package.json
+++ b/packages/js/components/package.json
@@ -37,33 +37,34 @@
"@types/wordpress__block-library": "^2.6.1",
"@types/wordpress__blocks": "^11.0.7",
"@types/wordpress__rich-text": "^3.4.6",
+ "@types/wordpress__components": "^19.10.3",
"@woocommerce/csv-export": "workspace:*",
"@woocommerce/currency": "workspace:*",
"@woocommerce/data": "workspace:*",
"@woocommerce/date": "workspace:*",
"@woocommerce/navigation": "workspace:*",
- "@wordpress/a11y": "3.5.0",
- "@wordpress/api-fetch": "^6.0.1",
- "@wordpress/base-styles": "^4.3.0",
+ "@wordpress/a11y": "wp-6.0",
+ "@wordpress/api-fetch": "wp-6.0",
+ "@wordpress/base-styles": "wp-6.0",
"@wordpress/block-editor": "^9.8.0",
"@wordpress/block-library": "^7.16.0",
"@wordpress/blocks": "^11.18.0",
- "@wordpress/components": "19.8.5",
- "@wordpress/compose": "5.4.1",
- "@wordpress/core-data": "^4.2.1",
- "@wordpress/date": "^4.3.1",
- "@wordpress/deprecated": "^3.3.1",
- "@wordpress/dom": "^3.3.2",
- "@wordpress/element": "^4.1.1",
- "@wordpress/hooks": "^3.5.0",
- "@wordpress/html-entities": "^3.3.1",
- "@wordpress/i18n": "^4.3.1",
- "@wordpress/icons": "^8.1.0",
- "@wordpress/keyboard-shortcuts": "^3.17.0",
- "@wordpress/keycodes": "^3.3.1",
- "@wordpress/media-utils": "^4.6.0",
- "@wordpress/rich-text": "^5.17.0",
- "@wordpress/url": "^3.4.1",
+ "@wordpress/components": "wp-6.0",
+ "@wordpress/compose": "wp-6.0",
+ "@wordpress/core-data": "wp-6.0",
+ "@wordpress/date": "wp-6.0",
+ "@wordpress/deprecated": "wp-6.0",
+ "@wordpress/dom": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/hooks": "wp-6.0",
+ "@wordpress/html-entities": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
+ "@wordpress/icons": "wp-6.0",
+ "@wordpress/keyboard-shortcuts": "wp-6.0",
+ "@wordpress/keycodes": "wp-6.0",
+ "@wordpress/media-utils": "wp-6.0",
+ "@wordpress/rich-text": "wp-6.0",
+ "@wordpress/url": "wp-6.0",
"@wordpress/viewport": "^4.1.2",
"classnames": "^2.3.1",
"core-js": "^3.21.1",
@@ -86,7 +87,7 @@
"react-transition-group": "^4.4.2"
},
"peerDependencies": {
- "@wordpress/data": "^6.2.1",
+ "@wordpress/data": "wp-6.0",
"lodash": "^4.17.0",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
@@ -121,20 +122,21 @@
"@types/prop-types": "^15.7.4",
"@types/testing-library__jest-dom": "^5.14.3",
"@types/uuid": "^8.3.0",
- "@types/wordpress__components": "^19.10.1",
+ "@types/wordpress__components": "^19.10.3",
"@types/wordpress__data": "^6.0.0",
"@types/wordpress__media-utils": "^3.0.0",
"@types/wordpress__viewport": "^2.5.4",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
- "@wordpress/browserslist-config": "^4.1.1",
+ "@wordpress/browserslist-config": "wp-6.0",
"@wordpress/scripts": "^12.6.1",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.32.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
- "postcss-loader": "^3.0.0",
+ "postcss": "^8.4.7",
+ "postcss-loader": "^4.3.0",
"react": "^17.0.2",
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
diff --git a/packages/js/components/src/date-time-picker-control/date-time-picker-control.tsx b/packages/js/components/src/date-time-picker-control/date-time-picker-control.tsx
index 0a84164ecc8..0f7d8eee0fd 100644
--- a/packages/js/components/src/date-time-picker-control/date-time-picker-control.tsx
+++ b/packages/js/components/src/date-time-picker-control/date-time-picker-control.tsx
@@ -131,7 +131,8 @@ export const DateTimePickerControl: React.FC< DateTimePickerControlProps > = ( {
const formatDateTimeForDisplay = useCallback(
( dateTime: Moment ) => {
return dateTime.isValid()
- ? formatDate( displayFormat, dateTime.local() )
+ ? // @ts-expect-error TODO - fix this type error with moment
+ formatDate( displayFormat, dateTime.local() )
: dateTime.creationData().input?.toString() || '';
},
[ displayFormat ]
diff --git a/packages/js/components/src/date-time-picker-control/test/index.tsx b/packages/js/components/src/date-time-picker-control/test/index.tsx
index 1088e875feb..d7b0aa19a6c 100644
--- a/packages/js/components/src/date-time-picker-control/test/index.tsx
+++ b/packages/js/components/src/date-time-picker-control/test/index.tsx
@@ -103,6 +103,7 @@ describe( 'DateTimePickerControl', () => {
const input = container.querySelector( 'input' );
expect( input?.value ).toBe(
+ // @ts-expect-error TODO - fix this type error with moment
formatDate( default24HourDateTimeFormat, dateTime )
);
} );
@@ -122,6 +123,7 @@ describe( 'DateTimePickerControl', () => {
expect( input?.value ).toBe(
formatDate(
default24HourDateTimeFormat,
+ // @ts-expect-error TODO - fix this type error with moment
moment.utc( ambiguousISODateTimeString ).local()
)
);
@@ -142,6 +144,7 @@ describe( 'DateTimePickerControl', () => {
expect( input?.value ).toBe(
formatDate(
default24HourDateTimeFormat,
+ // @ts-expect-error TODO - fix this type error with moment
moment.utc( unambiguousISODateTimeString ).local()
)
);
@@ -159,6 +162,7 @@ describe( 'DateTimePickerControl', () => {
const input = container.querySelector( 'input' );
expect( input?.value ).toBe(
+ // @ts-expect-error TODO - fix this type error with moment
formatDate( default12HourDateTimeFormat, dateTime )
);
} );
@@ -175,6 +179,7 @@ describe( 'DateTimePickerControl', () => {
);
const input = container.querySelector( 'input' );
+ // @ts-expect-error TODO - fix this type error with moment
expect( input?.value ).toBe( formatDate( dateTimeFormat, dateTime ) );
} );
@@ -198,6 +203,7 @@ describe( 'DateTimePickerControl', () => {
const input = container.querySelector( 'input' );
expect( input?.value ).toBe(
+ // @ts-expect-error TODO - fix this type error with moment
formatDate( default24HourDateTimeFormat, updatedDateTime )
);
} );
diff --git a/packages/js/currency/changelog/dev-pin-wp-deps-6 b/packages/js/currency/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/currency/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/currency/package.json b/packages/js/currency/package.json
index f8f812ad494..46e9d4b006f 100644
--- a/packages/js/currency/package.json
+++ b/packages/js/currency/package.json
@@ -27,11 +27,11 @@
"react-native": "src/index",
"dependencies": {
"@woocommerce/number": "workspace:*",
- "@wordpress/deprecated": "^2.12.3",
- "@wordpress/element": "^4.1.1",
- "@wordpress/hooks": "^3.5.0",
- "@wordpress/html-entities": "^3.3.1",
- "@wordpress/i18n": "^3.20.0"
+ "@wordpress/deprecated": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/hooks": "wp-6.0",
+ "@wordpress/html-entities": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0"
},
"publishConfig": {
"access": "public"
diff --git a/packages/js/customer-effort-score/changelog/dev-pin-wp-deps-6 b/packages/js/customer-effort-score/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/customer-effort-score/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/customer-effort-score/package.json b/packages/js/customer-effort-score/package.json
index 45fbed8067d..bf0d5c149d3 100644
--- a/packages/js/customer-effort-score/package.json
+++ b/packages/js/customer-effort-score/package.json
@@ -26,12 +26,12 @@
"react-native": "src/index",
"dependencies": {
"@woocommerce/experimental": "workspace:*",
- "@wordpress/components": "^19.5.0",
- "@wordpress/compose": "^5.1.2",
- "@wordpress/data": "^6.15.0",
- "@wordpress/element": "^4.1.1",
- "@wordpress/i18n": "^4.3.1",
- "@wordpress/notices": "^3.3.2",
+ "@wordpress/components": "wp-6.0",
+ "@wordpress/compose": "wp-6.0",
+ "@wordpress/data": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
+ "@wordpress/notices": "wp-6.0",
"classnames": "^2.3.1",
"prop-types": "^15.8.1",
"react-transition-group": "^4.4.2"
@@ -45,17 +45,18 @@
"@types/jest": "^27.4.1",
"@types/prop-types": "^15.7.4",
"@types/testing-library__jest-dom": "^5.14.3",
- "@types/wordpress__components": "^19.10.1",
+ "@types/wordpress__components": "^19.10.3",
"@types/wordpress__data": "^6.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
- "@wordpress/browserslist-config": "^4.1.1",
+ "@wordpress/browserslist-config": "wp-6.0",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.32.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
- "postcss-loader": "^3.0.0",
+ "postcss": "^8.4.7",
+ "postcss-loader": "^4.3.0",
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
"ts-jest": "^27.1.3",
diff --git a/packages/js/data/changelog/dev-pin-wp-deps-6 b/packages/js/data/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/data/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/data/package.json b/packages/js/data/package.json
index 40196b1ea36..2e9a37e793f 100644
--- a/packages/js/data/package.json
+++ b/packages/js/data/package.json
@@ -28,16 +28,16 @@
"dependencies": {
"@woocommerce/date": "workspace:*",
"@woocommerce/navigation": "workspace:*",
- "@wordpress/api-fetch": "^6.0.1",
- "@wordpress/compose": "^5.1.2",
- "@wordpress/core-data": "^4.1.2",
- "@wordpress/data": "^6.15.0",
- "@wordpress/data-controls": "^2.3.2",
- "@wordpress/deprecated": "^3.3.1",
- "@wordpress/element": "^4.1.1",
- "@wordpress/hooks": "^3.5.0",
- "@wordpress/i18n": "^4.3.1",
- "@wordpress/url": "^3.4.1",
+ "@wordpress/api-fetch": "wp-6.0",
+ "@wordpress/compose": "wp-6.0",
+ "@wordpress/core-data": "wp-6.0",
+ "@wordpress/data": "wp-6.0",
+ "@wordpress/data-controls": "wp-6.0",
+ "@wordpress/deprecated": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/hooks": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
+ "@wordpress/url": "wp-6.0",
"dompurify": "^2.3.6",
"md5": "^2.3.0",
"qs": "^6.10.3",
@@ -72,7 +72,7 @@
"typescript": "^4.8.3"
},
"peerDependencies": {
- "@wordpress/core-data": "^4.1.0",
+ "@wordpress/core-data": "wp-6.0",
"moment": "^2.18.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
diff --git a/packages/js/date/changelog/dev-pin-wp-deps-6 b/packages/js/date/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/date/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/date/package.json b/packages/js/date/package.json
index b9788612dfd..9e645c6b523 100644
--- a/packages/js/date/package.json
+++ b/packages/js/date/package.json
@@ -27,8 +27,8 @@
"react-native": "src/index",
"dependencies": {
"@types/d3-time-format": "^2.3.0",
- "@wordpress/date": "^4.3.1",
- "@wordpress/i18n": "^4.3.1",
+ "@wordpress/date": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
"moment": "^2.29.1",
"moment-timezone": "^0.5.34",
"qs": "^6.10.3"
diff --git a/packages/js/dependency-extraction-webpack-plugin/changelog/dev-pin-wp-deps-6 b/packages/js/dependency-extraction-webpack-plugin/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/dependency-extraction-webpack-plugin/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/e2e-core-tests/package.json b/packages/js/e2e-core-tests/package.json
index 17d7e5fae6d..6b31f733e6d 100644
--- a/packages/js/e2e-core-tests/package.json
+++ b/packages/js/e2e-core-tests/package.json
@@ -24,7 +24,7 @@
],
"dependencies": {
"@jest/globals": "^27.5.1",
- "@wordpress/deprecated": "^3.2.3",
+ "@wordpress/deprecated": "wp-6.0",
"config": "3.3.7"
},
"devDependencies": {
@@ -40,7 +40,7 @@
"@woocommerce/internal-e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2",
- "@wordpress/browserslist-config": "^4.1.0",
+ "@wordpress/browserslist-config": "wp-6.0",
"eslint": "^8.32.0",
"eslint-plugin-jest": "23.20.0"
},
diff --git a/packages/js/e2e-environment/package.json b/packages/js/e2e-environment/package.json
index ed60925c913..12d589b5720 100644
--- a/packages/js/e2e-environment/package.json
+++ b/packages/js/e2e-environment/package.json
@@ -57,7 +57,7 @@
"@woocommerce/internal-e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2",
- "@wordpress/browserslist-config": "^4.1.0",
+ "@wordpress/browserslist-config": "wp-6.0",
"ndb": "^1.1.5",
"semver": "^7.3.2"
},
diff --git a/packages/js/e2e-utils/package.json b/packages/js/e2e-utils/package.json
index 5695a8f3df3..8d0bd5e0dbc 100644
--- a/packages/js/e2e-utils/package.json
+++ b/packages/js/e2e-utils/package.json
@@ -16,8 +16,8 @@
"module": "build-module/index.js",
"dependencies": {
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils#0f3ec50",
- "@wordpress/deprecated": "^3.2.3",
- "@wordpress/e2e-test-utils": "wp-5.8",
+ "@wordpress/deprecated": "wp-6.0",
+ "@wordpress/e2e-test-utils": "wp-6.0",
"config": "3.3.7",
"fishery": "^1.2.0"
},
@@ -30,13 +30,13 @@
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.12.7",
- "@typescript-eslint/eslint-plugin": "^5.43.0",
- "@typescript-eslint/parser": "^5.43.0",
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
+ "@typescript-eslint/parser": "^5.54.0",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-e2e-builds": "workspace:*",
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2",
- "@wordpress/browserslist-config": "^4.1.0",
+ "@wordpress/browserslist-config": "wp-6.0",
"eslint": "^8.32.0",
"eslint-plugin-jest": "23.20.0"
},
diff --git a/packages/js/eslint-plugin/.eslintrc.js b/packages/js/eslint-plugin/.eslintrc.js
new file mode 100644
index 00000000000..e4d185d8cd1
--- /dev/null
+++ b/packages/js/eslint-plugin/.eslintrc.js
@@ -0,0 +1,4 @@
+module.exports = {
+ extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
+ root: true,
+};
diff --git a/packages/js/eslint-plugin/changelog/dev-pin-wp-deps-6 b/packages/js/eslint-plugin/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/eslint-plugin/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/experimental/changelog/dev-pin-wp-deps-6 b/packages/js/experimental/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/experimental/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/experimental/package.json b/packages/js/experimental/package.json
index 4c64d5baeee..e105c96c0ec 100644
--- a/packages/js/experimental/package.json
+++ b/packages/js/experimental/package.json
@@ -59,16 +59,17 @@
"@types/jest": "^27.4.1",
"@types/react-transition-group": "^4.4.4",
"@types/testing-library__jest-dom": "^5.14.3",
- "@types/wordpress__components": "^19.10.1",
+ "@types/wordpress__components": "^19.10.3",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
- "@wordpress/browserslist-config": "^4.1.1",
+ "@wordpress/browserslist-config": "wp-6.0",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.32.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
- "postcss-loader": "^3.0.0",
+ "postcss": "^8.4.7",
+ "postcss-loader": "^4.3.0",
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
"ts-jest": "^27.1.3",
diff --git a/packages/js/explat/changelog/dev-pin-wp-deps-6 b/packages/js/explat/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/explat/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/explat/package.json b/packages/js/explat/package.json
index 507cf9d04ec..7f2de854bc6 100644
--- a/packages/js/explat/package.json
+++ b/packages/js/explat/package.json
@@ -32,8 +32,8 @@
"dependencies": {
"@automattic/explat-client": "^0.0.3",
"@automattic/explat-client-react-helpers": "^0.0.4",
- "@wordpress/api-fetch": "^6.0.1",
- "@wordpress/hooks": "^3.5.0",
+ "@wordpress/api-fetch": "wp-6.0",
+ "@wordpress/hooks": "wp-6.0",
"cookie": "^0.4.2",
"qs": "^6.10.3"
},
diff --git a/packages/js/internal-js-tests/package.json b/packages/js/internal-js-tests/package.json
index 42f404c817e..10e8ed1c2d8 100644
--- a/packages/js/internal-js-tests/package.json
+++ b/packages/js/internal-js-tests/package.json
@@ -32,8 +32,8 @@
"dependencies": {
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
- "@wordpress/data": "^6.15.0",
- "@wordpress/i18n": "^4.3.1",
+ "@wordpress/data": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
"@wordpress/jest-console": "^5.0.1",
"regenerator-runtime": "^0.13.9"
},
diff --git a/packages/js/internal-style-build/index.js b/packages/js/internal-style-build/index.js
index 49184b37989..5443e844a92 100644
--- a/packages/js/internal-style-build/index.js
+++ b/packages/js/internal-style-build/index.js
@@ -21,8 +21,9 @@ module.exports = {
{
loader: 'postcss-loader',
options: {
- ident: 'postcss',
- plugins: postcssPlugins,
+ postcssOptions: {
+ plugins: postcssPlugins,
+ },
},
},
{
diff --git a/packages/js/internal-style-build/package.json b/packages/js/internal-style-build/package.json
index 0227ed82d05..cfa97e112c2 100644
--- a/packages/js/internal-style-build/package.json
+++ b/packages/js/internal-style-build/package.json
@@ -23,11 +23,11 @@
"main": "index.js",
"dependencies": {
"@automattic/color-studio": "^2.5.0",
- "@wordpress/base-styles": "^4.3.0",
- "@wordpress/postcss-plugins-preset": "^1.6.0",
+ "@wordpress/base-styles": "wp-6.0",
+ "@wordpress/postcss-plugins-preset": "wp-6.0",
"css-loader": "^3.6.0",
"mini-css-extract-plugin": "^2.6.0",
- "postcss-loader": "^3.0.0",
+ "postcss-loader": "^4.3.0",
"sass-loader": "^10.2.1",
"webpack-remove-empty-scripts": "^0.7.3",
"webpack-rtl-plugin": "^2.0.0"
diff --git a/packages/js/navigation/changelog/dev-pin-wp-deps-6 b/packages/js/navigation/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/navigation/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/navigation/package.json b/packages/js/navigation/package.json
index d68f59ef901..6e44b7823ee 100644
--- a/packages/js/navigation/package.json
+++ b/packages/js/navigation/package.json
@@ -26,13 +26,13 @@
"types": "build-types",
"react-native": "src/index",
"dependencies": {
- "@wordpress/api-fetch": "^6.0.1",
- "@wordpress/components": "^19.5.0",
- "@wordpress/compose": "^5.1.2",
- "@wordpress/element": "^4.1.1",
- "@wordpress/hooks": "^3.5.0",
- "@wordpress/notices": "^3.3.2",
- "@wordpress/url": "^3.4.1",
+ "@wordpress/api-fetch": "wp-6.0",
+ "@wordpress/components": "wp-6.0",
+ "@wordpress/compose": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/hooks": "wp-6.0",
+ "@wordpress/notices": "wp-6.0",
+ "@wordpress/url": "wp-6.0",
"history": "^5.3.0",
"qs": "^6.10.3",
"react-router-dom": "^6.3.0"
diff --git a/packages/js/notices/package.json b/packages/js/notices/package.json
index 33abc61fa19..d8023264a6f 100644
--- a/packages/js/notices/package.json
+++ b/packages/js/notices/package.json
@@ -27,9 +27,9 @@
"types": "build-types",
"react-native": "src/index",
"dependencies": {
- "@wordpress/a11y": "^3.5.0",
- "@wordpress/data": "^6.15.0",
- "@wordpress/notices": "^3.3.2"
+ "@wordpress/a11y": "wp-6.0",
+ "@wordpress/data": "wp-6.0",
+ "@wordpress/notices": "wp-6.0"
},
"peerDependencies": {
"lodash": "^4.17.0",
diff --git a/packages/js/onboarding/changelog/dev-pin-wp-deps-6 b/packages/js/onboarding/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/onboarding/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/onboarding/package.json b/packages/js/onboarding/package.json
index 058a207c105..f4d4dc5074c 100644
--- a/packages/js/onboarding/package.json
+++ b/packages/js/onboarding/package.json
@@ -34,24 +34,25 @@
"@woocommerce/experimental": "workspace:*",
"@woocommerce/explat": "workspace:*",
"@woocommerce/tracks": "workspace:*",
- "@wordpress/components": "^19.5.0",
- "@wordpress/element": "^4.1.1",
- "@wordpress/i18n": "^4.3.1",
+ "@wordpress/components": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
"concurrently": "^7.0.0",
"gridicons": "^3.4.0"
},
"devDependencies": {
"@babel/core": "^7.17.5",
+ "@types/wordpress__components": "^19.10.3",
"@types/wordpress__data": "^6.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
- "@wordpress/browserslist-config": "^4.1.1",
- "@types/wordpress__components": "^19.10.1",
+ "@wordpress/browserslist-config": "wp-6.0",
"css-loader": "^3.6.0",
"eslint": "^8.32.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
- "postcss-loader": "^3.0.0",
+ "postcss": "^8.4.7",
+ "postcss-loader": "^4.3.0",
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
"ts-jest": "^27.1.3",
diff --git a/packages/js/product-editor/changelog/dev-pin-wp-deps-6 b/packages/js/product-editor/changelog/dev-pin-wp-deps-6
new file mode 100644
index 00000000000..551e0919dac
--- /dev/null
+++ b/packages/js/product-editor/changelog/dev-pin-wp-deps-6
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Sync @wordpress package versions via syncpack.
diff --git a/packages/js/product-editor/package.json b/packages/js/product-editor/package.json
index 3761897a0dd..df9b6d02a97 100644
--- a/packages/js/product-editor/package.json
+++ b/packages/js/product-editor/package.json
@@ -38,17 +38,17 @@
"@woocommerce/tracks": "workspace:^1.3.0",
"@wordpress/block-editor": "^9.8.0",
"@wordpress/blocks": "^12.3.0",
- "@wordpress/components": "^19.5.0",
- "@wordpress/compose": "^5.1.2",
- "@wordpress/data": "^8.3.0",
- "@wordpress/element": "^4.1.1",
- "@wordpress/html-entities": "^3.3.1",
- "@wordpress/i18n": "^4.26.0",
- "@wordpress/icons": "^8.1.0",
- "@wordpress/interface": "^5.3.0",
- "@wordpress/keyboard-shortcuts": "^3.17.0",
- "@wordpress/media-utils": "^4.6.0",
- "@wordpress/url": "^3.4.1",
+ "@wordpress/data": "wp-6.0",
+ "@wordpress/interface": "wp-6.0",
+ "@wordpress/keyboard-shortcuts": "wp-6.0",
+ "@wordpress/media-utils": "wp-6.0",
+ "@wordpress/components": "wp-6.0",
+ "@wordpress/compose": "wp-6.0",
+ "@wordpress/element": "wp-6.0",
+ "@wordpress/html-entities": "wp-6.0",
+ "@wordpress/i18n": "wp-6.0",
+ "@wordpress/icons": "wp-6.0",
+ "@wordpress/url": "wp-6.0",
"classnames": "^2.3.1",
"lodash": "^4.17.21",
"react-router-dom": "^6.3.0"
@@ -58,19 +58,20 @@
"@types/react": "^17.0.2",
"@types/wordpress__block-editor": "^7.0.0",
"@types/wordpress__blocks": "^11.0.7",
- "@types/wordpress__components": "^19.10.1",
+ "@types/wordpress__components": "^19.10.3",
"@types/wordpress__data": "^6.0.2",
"@types/wordpress__media-utils": "^3.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
"@wordpress/block-editor": "^9.8.0",
- "@wordpress/browserslist-config": "^4.1.1",
+ "@wordpress/browserslist-config": "wp-6.0",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.32.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
- "postcss-loader": "^3.0.0",
+ "postcss": "^8.4.7",
+ "postcss-loader": "^4.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hooks^8.0.1": "link:@testing-library/react-hooks^8.0.1",
@@ -96,7 +97,7 @@
},
"peerDependencies": {
"@types/react": "^17.0.2",
- "@wordpress/data": "^6.15.0",
+ "@wordpress/data": "wp-6.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
diff --git a/packages/js/product-editor/src/components/details-categories-field/use-category-search.ts b/packages/js/product-editor/src/components/details-categories-field/use-category-search.ts
index 275caddc10d..26ef004384c 100644
--- a/packages/js/product-editor/src/components/details-categories-field/use-category-search.ts
+++ b/packages/js/product-editor/src/components/details-categories-field/use-category-search.ts
@@ -161,9 +161,9 @@ const productCategoryQueryObject = {
*/
export const useCategorySearch = () => {
const lastSearchValue = useRef( '' );
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
const { initialCategories, totalCount } = useSelect(
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
( select: WCDataSelector ) => {
const { getProductCategories, getProductCategoriesTotalCount } =
select( EXPERIMENTAL_PRODUCT_CATEGORIES_STORE_NAME );
diff --git a/packages/js/product-editor/src/components/details-name-field/details-name-field.tsx b/packages/js/product-editor/src/components/details-name-field/details-name-field.tsx
index ef60a93c476..7099b2968da 100644
--- a/packages/js/product-editor/src/components/details-name-field/details-name-field.tsx
+++ b/packages/js/product-editor/src/components/details-name-field/details-name-field.tsx
@@ -26,9 +26,9 @@ export const DetailsNameField = ( {} ) => {
const { getInputProps, values, touched, errors, setValue } =
useFormContext< Product >();
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
const { permalinkPrefix, permalinkSuffix } = useSelect(
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
( select: WCDataSelector ) => {
const { getPermalinkParts } = select( PRODUCTS_STORE_NAME );
if ( values.id ) {
diff --git a/plugins/woocommerce-admin/client/products/fills/pricing-section/pricing-field-sale.tsx b/plugins/woocommerce-admin/client/products/fills/pricing-section/pricing-field-sale.tsx
index e3ad76fc7ea..c86d6cf3209 100644
--- a/plugins/woocommerce-admin/client/products/fills/pricing-section/pricing-field-sale.tsx
+++ b/plugins/woocommerce-admin/client/products/fills/pricing-section/pricing-field-sale.tsx
@@ -140,6 +140,7 @@ export const PricingSaleField: React.FC< PricingListFieldProps > = ( {
{ formatDate(
timeFormat,
+ // @ts-expect-error TODO - fix this type error with moment
moment().startOf( 'day' )
) }
@@ -148,6 +149,7 @@ export const PricingSaleField: React.FC< PricingListFieldProps > = ( {
{ formatDate(
timeFormat,
+ // @ts-expect-error TODO - fix this type error with moment
moment().endOf( 'day' )
) }
diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/product-types/test/__snapshots__/index.js.snap b/plugins/woocommerce-admin/client/profile-wizard/steps/product-types/test/__snapshots__/index.js.snap
index fea9ce8d34f..717bc1d930c 100644
--- a/plugins/woocommerce-admin/client/profile-wizard/steps/product-types/test/__snapshots__/index.js.snap
+++ b/plugins/woocommerce-admin/client/profile-wizard/steps/product-types/test/__snapshots__/index.js.snap
@@ -24,7 +24,7 @@ exports[`ProductTypes should render product types 1`] = `
@@ -32,15 +32,15 @@ exports[`ProductTypes should render product types 1`] = `
class="css-mgwsf4-View-Content em57xhy0"
>
@@ -228,15 +228,15 @@ exports[`ProductTypes should show annual prices on toggle 1`] = `
class="css-mgwsf4-View-Content em57xhy0"
>
@@ -59,7 +59,7 @@ Object {
class="css-mgwsf4-View-Content em57xhy0"
>
@@ -236,10 +236,10 @@ Object {
class="woocommerce-profile-wizard__newsletter-signup"
>
@@ -374,7 +374,7 @@ Object {
class="css-mgwsf4-View-Content em57xhy0"
>
@@ -551,10 +551,10 @@ Object {
class="woocommerce-profile-wizard__newsletter-signup"
>