Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update several npm dependencies #13612

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function (api) {
shippedProposals: true,
targets,
useBuiltIns: 'usage',
corejs: '3.35.1',
corejs: '3.36.1',
},
],
[
Expand Down
2 changes: 1 addition & 1 deletion docs/right-click-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Right click menu will give the user a right click menu that is intuitive to use
|--|--|
|Main actions|These options can apply across any element or media|
|Layer distribution options/actions|These options help the user move the selected element between the different layers (objects in the canvas)|
|Element styling options/actions|These options help the user manage the Element's style properties||
|Element styling options/actions|These options help the user manage the Element's style properties|
|Page action options|These options help the user manage the different Pages in the story|

### Actions
Expand Down
2 changes: 1 addition & 1 deletion jest-puppeteer.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
const {
PUPPETEER_DEVTOOLS = false,
PUPPETEER_HEADLESS = 'new',
PUPPETEER_HEADLESS = true,
PUPPETEER_PRODUCT = 'chrome',
PUPPETEER_SLOWMO = 0,
} = process.env;
Expand Down
2 changes: 1 addition & 1 deletion karma-dashboard.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = function (config) {

puppeteerLauncher: {
puppeteer: {
headless: config.headless ? 'new' : false,
headless: Boolean(config.headless),
slowMo: config.slowMo || 0,
devtools: config.devtools || false,
snapshots: config.snapshots || false,
Expand Down
2 changes: 1 addition & 1 deletion karma-story-editor.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = function (config) {

puppeteerLauncher: {
puppeteer: {
headless: config.headless ? 'new' : false,
headless: Boolean(config.headless),
slowMo: config.slowMo || 0,
devtools: config.devtools || false,
snapshots: config.snapshots || false,
Expand Down
4,572 changes: 2,690 additions & 1,882 deletions package-lock.json

Large diffs are not rendered by default.

77 changes: 40 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"devDependencies": {
"@ampproject/toolbox-optimizer": "^2.9.0",
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.9",
"@babel/core": "^7.24.3",
"@babel/eslint-parser": "^7.24.1",
"@babel/eslint-plugin": "^7.23.5",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/preset-env": "^7.24.3",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@googleforcreators/dashboard": "*",
"@googleforcreators/design-system": "*",
"@googleforcreators/fonts": "*",
Expand All @@ -48,9 +48,9 @@
"@googleforcreators/story-editor": "*",
"@jest/types": "^29.6.3",
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
"@percy/cli": "^1.27.7",
"@percy/cli": "^1.28.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@prettier/plugin-xml": "^3.2.2",
"@prettier/plugin-xml": "^3.3.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
Expand All @@ -73,18 +73,18 @@
"@stylelint/postcss-css-in-js": "^0.38.0",
"@svgr/rollup": "^8.0.1",
"@svgr/webpack": "^8.0.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.3.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.11",
"@types/jest": "^29.5.12",
"@types/jsdom": "^21.1.3",
"@types/node": "^20.10.6",
"@types/node": "^20.11.30",
"@types/styled-components": "^5.1.26",
"@types/uuid": "^9.0.4",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@web-stories-wp/e2e-tests": "*",
"@web-stories-wp/eslint-import-resolver": "*",
"@web-stories-wp/jest-amp": "*",
Expand All @@ -101,34 +101,34 @@
"babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^2.1.4",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"browserslist": "^4.22.3",
"browserslist": "^4.23.0",
"circular-dependency-plugin": "^5.2.2",
"core-js": "^3.35.1",
"core-js": "^3.36.1",
"cross-env": "^7.0.3",
"css-loader": "^6.9.1",
"css-loader": "^6.10.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"cssnano": "^6.0.2",
"eslint": "^8.56.0",
"cssnano": "^6.1.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jest-dom": "^5.2.0",
"eslint-plugin-jest-extended": "^2.0.0",
"eslint-plugin-jsdoc": "^48.0.4",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-markdown": "^4.0.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-security": "^2.1.0",
"eslint-plugin-styled-components-a11y": "^2.1.31",
"eslint-plugin-security": "^2.1.1",
"eslint-plugin-styled-components-a11y": "^2.1.32",
"eslint-plugin-testing-library": "^6.1.0",
"html-webpack-plugin": "^5.6.0",
"husky": "^9.0.6",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-axe": "^8.0.0",
"jest-canvas-mock": "^2.5.2",
Expand All @@ -138,25 +138,25 @@
"jest-matcher-deep-close-to": "^3.0.2",
"jest-silent-reporter": "^0.5.0",
"jest-styled-components": "^7.2.0",
"karma": "^6.4.2",
"karma": "^6.4.3",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-jasmine": "^5.1.0",
"karma-parallel": "^0.3.1",
"karma-sourcemap-loader": "^0.4.0",
"karma-webpack": "^5.0.0",
"lint-staged": "^15.2.0",
"markdownlint-cli": "^0.38.0",
"mini-css-extract-plugin": "^2.7.7",
"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.2",
"markdownlint-cli": "^0.39.0",
"mini-css-extract-plugin": "^2.8.1",
"mockdate": "^3.0.5",
"npm-package-json-lint": "^7.0.0",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.0",
"postcss-jsx": "^0.36.4",
"postcss-styled-syntax": "^0.6.4",
"postcss-syntax": "^0.36.2",
"prettier": "^3.2.4",
"puppeteer": "^21.9.0",
"prettier": "^3.2.5",
"puppeteer": "^22.6.1",
"react-refresh": "^0.14.0",
"react-test-renderer": "^17.0.2",
"rollup": "^2.79.1",
Expand All @@ -172,19 +172,22 @@
"stylelint-prettier": "^4.1.0",
"stylis-plugin-rtl": "^1.0.0",
"terser-webpack-plugin": "^5.3.10",
"typescript": "^5.3.3",
"webpack": "^5.90.0",
"typescript": "^5.4.3",
"webpack": "^5.91.0",
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpackbar": "^6.0.0",
"webpack-dev-server": "^5.0.4",
"webpackbar": "^6.0.1",
"worker-loader": "^3.0.8",
"workspaces-run": "^1.0.2"
},
"overrides": {
"@axe-core/puppeteer": {
"puppeteer": "$puppeteer"
},
"@pmmmwh/react-refresh-webpack-plugin": {
"webpack-dev-server": "$webpack-dev-server"
},
"@typescript-eslint/parser": "$@typescript-eslint/parser",
"@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin",
"date-fns": "^2.30.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/activation-notice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
"main": "./src/index.tsx",
"types": "dist-types/index.d.ts",
"dependencies": {
"@emotion/is-prop-valid": "^1.2.1",
"@emotion/is-prop-valid": "^1.2.2",
"@googleforcreators/tracking": "*",
"@wordpress/element": "^5.24.0",
"@wordpress/i18n": "^4.47.0",
"flagged": "^2.0.10",
"polished": "^4.2.2",
"polished": "^4.3.1",
"styled-components": "^6.0.7",
"stylis-plugin-rtl": "^2.1.1"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/commander/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
},
"type": "module",
"dependencies": {
"commander": "^11.1.0",
"semver": "^7.5.4"
"commander": "^12.0.0",
"semver": "^7.6.0"
},
"devDependencies": {
"@types/node": "^20.10.6",
"@types/semver": "^7.5.6"
"@types/node": "^20.11.30",
"@types/semver": "^7.5.8"
},
"bin": {
"commander": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/date/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@googleforcreators/i18n": "*",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0"
"date-fns-tz": "^2.0.1"
},
"devDependencies": {
"mockdate": "^3.0.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/react-modal": "^3.16.3",
"big.js": "^6.2.1",
"mousetrap": "^1.6.5",
"polished": "^4.2.2",
"polished": "^4.3.1",
"prop-types": "^15.8.1",
"react-modal": "^3.16.1",
"react-transition-group": "^4.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"main": "./src/index.js",
"dependencies": {
"@wordpress/url": "^3.48.0",
"expect-puppeteer": "^9.0.1"
"expect-puppeteer": "^10.0.0"
},
"devDependencies": {
"@percy/puppeteer": "^2.0.2"
Expand Down
6 changes: 4 additions & 2 deletions packages/e2e-test-utils/src/deleteWidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ async function deleteWidgets() {
await item.$eval('.widget-action', (toggleButton) => toggleButton.click());

// Transition animation.
await page.waitForTimeout(300);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 300));

await item.$eval('.widget-control-remove', (deleteLink) =>
deleteLink.click()
);

// Transition animation.
await page.waitForTimeout(300);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 300));
}
/* eslint-enable no-await-in-loop */

Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-test-utils/src/insertWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ async function insertWidget(name) {
);

// Transition animation.
await page.waitForTimeout(300);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 300));

await expect(page).toMatchElement('#widgets-right .widget .widget-title', {
text: name,
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-test-utils/src/publishPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ async function publishPost() {
await openPublishPanel();

// Wait for the panel to fully slide in.
await page.waitForTimeout(500);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 500));
}

// Publish the post
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-test-utils/src/setAnalyticsCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ async function setAnalyticsCode(code) {

await expect(page).toClick('button', { text: 'Save' });
// Wait for setting to save.
await page.waitForTimeout(1000);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 1000));
}

export default setAnalyticsCode;
3 changes: 2 additions & 1 deletion packages/e2e-test-utils/src/shopping.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const insertProduct = async (product, clickOnTab = true) => {

expect(page).toClick(`[aria-label="Add ${product}"]`);

await page.waitForTimeout(400);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 400));

await page.waitForSelector(
'[aria-label="Design menu"] [aria-label="Product"]',
Expand Down
8 changes: 4 additions & 4 deletions packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"@web-stories-wp/jest-puppeteer-amp": "*",
"@web-stories-wp/jest-resolver": "*",
"@wordpress/jest-console": "^7.18.0",
"babel-jest": "^29.5.0",
"expect-puppeteer": "^9.0.1",
"jest-environment-puppeteer": "^9.0.2",
"babel-jest": "^29.7.0",
"expect-puppeteer": "^10.0.0",
"jest-environment-puppeteer": "^10.0.1",
"jest-extended": "^4.0.2",
"jest-json-schema": "^6.1.0",
"jest-puppeteer": "^9.0.2"
"jest-puppeteer": "^10.0.1"
},
"peerDependencies": {
"puppeteer": "*"
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/src/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ process.env.WP_BASE_URL = WP_BASE_URL;
export default {
rootDir: '../../../',
resolver: '@web-stories-wp/jest-resolver',
preset: '<rootDir>/packages/e2e-tests/node_modules/jest-puppeteer',
preset: '<rootDir>/node_modules/jest-puppeteer',
testEnvironment: '<rootDir>/packages/e2e-tests/src/puppeteerEnvironment.js',
testMatch: ['**/specs/**/*.[jt]s'],
testPathIgnorePatterns: [
Expand All @@ -46,7 +46,7 @@ export default {
setupFilesAfterEnv: [
'jest-extended/all',
'<rootDir>/packages/e2e-tests/src/config/bootstrap.js',
'<rootDir>/packages/e2e-tests/node_modules/@wordpress/jest-console',
'<rootDir>/node_modules/@wordpress/jest-console',
'<rootDir>/node_modules/expect-puppeteer',
],
modulePathIgnorePatterns: ['<rootDir>/build', '<rootDir>/vendor'],
Expand Down
3 changes: 2 additions & 1 deletion packages/e2e-tests/src/specs/dashboard/adminMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ describe('Admin Menu', () => {

// Navigating through WP to a new page syncs the WP current page in Nav
await page.hover('#menu-posts-web-story');
await page.waitForTimeout(100);
// TODO: Remove and replace with waitForSelector or locator API.
await new Promise((r) => setTimeout(r, 100));
await Promise.all([
page.waitForNavigation(),
expect(page).toClick('#menu-posts-web-story a', {
Expand Down
Loading
Loading