Skip to content

Commit

Permalink
fix(deps): update babel monorepo (#92654)
Browse files Browse the repository at this point in the history
* fix(deps): update babel monorepo

* Update tests to match new formatting

* Add eslint types

* Dedupe deps

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Chris Holder <chris.holder@automattic.com>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent 8b1f765 commit 8893bef
Show file tree
Hide file tree
Showing 22 changed files with 839 additions and 917 deletions.
2 changes: 1 addition & 1 deletion apps/odyssey-stats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@automattic/webpack-extensive-lodash-replacement-plugin": "workspace:^",
"@automattic/webpack-inline-constant-exports-plugin": "workspace:^",
"@automattic/wp-babel-makepot": "workspace:^",
"@babel/core": "^7.24.5",
"@babel/core": "^7.25.8",
"@size-limit/file": "^8.2.6",
"@wordpress/dependency-extraction-webpack-plugin": "^5.9.0",
"autoprefixer": "^10.2.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/wpcom-block-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@automattic/calypso-url": "workspace:^",
"@automattic/typography": "workspace:^",
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"@wordpress/api-fetch": "^7.8.0",
"@wordpress/base-styles": "^5.8.0",
"@wordpress/block-editor": "^14.3.0",
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@automattic/wpcom-checkout": "workspace:^",
"@automattic/wpcom-template-parts": "workspace:^",
"@automattic/zendesk-client": "workspace:^",
"@babel/core": "^7.24.5",
"@babel/core": "^7.25.8",
"@emotion/css": "^11.11.2",
"@emotion/jest": "^11.11.0",
"@emotion/react": "^11.11.1",
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@
"@automattic/calypso-package-generator": "workspace:^",
"@automattic/calypso-storybook": "workspace:^",
"@automattic/eslint-plugin-json": "workspace:^",
"@babel/core": "^7.24.5",
"@babel/eslint-parser": "^7.24.5",
"@babel/register": "^7.23.7",
"@babel/runtime": "^7.24.5",
"@babel/core": "^7.25.8",
"@babel/eslint-parser": "^7.25.8",
"@babel/register": "^7.25.7",
"@babel/runtime": "^7.25.7",
"@bartekbp/typescript-checkstyle": "^5.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.13",
"@signal-noise/stylelint-scales": "^2.0.3",
Expand All @@ -250,6 +250,7 @@
"@testing-library/jest-dom": "^6.4.5",
"@types/chroma-js": "^2.4.4",
"@types/dompurify": "^3.0.5",
"@types/eslint": "^9.6.1",
"@types/gtag.js": "^0.0.19",
"@types/superagent": "^4.1.24",
"@types/wordpress__blocks": "^12.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-i18n-calypso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@automattic/calypso-typescript-config": "workspace:^"
},
"peerDependencies": {
"@babel/core": "^7.24.5"
"@babel/core": "^7.25.8"
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@automattic/calypso-typescript-config": "workspace:^",
"@babel/core": "^7.24.5"
"@babel/core": "^7.25.8"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/babel-plugin-transform-wpcalypso-async/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ describe( 'babel-plugin-transform-wpcalypso-async', () => {
const code = transform( 'export default () => <AsyncLoad require="foo" />;' );

expect( code ).toBe(
'var _ref = () => import( /*webpackChunkName: "async-load-foo"*/"foo");\n' +
'export default (() => <AsyncLoad require={_ref} />);'
'var _ref = () => import(/*webpackChunkName: "async-load-foo"*/"foo");\n' +
'export default () => <AsyncLoad require={_ref} />;'
);
} );
} );
Expand All @@ -49,7 +49,7 @@ describe( 'babel-plugin-transform-wpcalypso-async', () => {
'var _ref = () => {\n' +
' throw new Error("ignoring load of: async-load-foo");\n' +
'};\n' +
'export default (() => <AsyncLoad require={_ref} />);'
'export default () => <AsyncLoad require={_ref} />;'
);
} );
} );
Expand All @@ -72,7 +72,7 @@ describe( 'babel-plugin-transform-wpcalypso-async', () => {
test( 'should transform asyncRequire to an import with nice name', () => {
const code = transform( 'asyncRequire( "foo/bar" );' );

expect( code ).toBe( 'import( /*webpackChunkName: "async-load-foo-bar"*/"foo/bar");' );
expect( code ).toBe( 'import(/*webpackChunkName: "async-load-foo-bar"*/"foo/bar");' );
} );
} );

Expand Down Expand Up @@ -106,8 +106,8 @@ describe( 'babel-plugin-transform-wpcalypso-async', () => {

// Check that the transformed code has been further transformed with patchedImport
expect( transformResult.code ).toBe(
'var _ref = () => patchedImport( /*webpackChunkName: "async-load-foo"*/"foo");\n' +
'export default (() => <AsyncLoad require={_ref} />);'
'var _ref = () => patchedImport(/*webpackChunkName: "async-load-foo"*/"foo");\n' +
'export default () => <AsyncLoad require={_ref} />;'
);
} );
} );
20 changes: 10 additions & 10 deletions packages/calypso-babel-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"@automattic/babel-plugin-i18n-calypso": "workspace:^",
"@automattic/babel-plugin-preserve-i18n": "workspace:^",
"@automattic/babel-plugin-transform-wpcalypso-async": "workspace:^",
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/helpers": "^7.24.5",
"@babel/cli": "^7.25.7",
"@babel/core": "^7.25.8",
"@babel/helpers": "^7.25.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@babel/plugin-transform-runtime": "^7.24.3",
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@babel/register": "^7.23.7",
"@babel/runtime": "^7.24.5",
"@babel/plugin-transform-react-jsx": "^7.25.7",
"@babel/plugin-transform-runtime": "^7.25.7",
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"@babel/register": "^7.25.7",
"@babel/runtime": "^7.25.7",
"@emotion/babel-plugin": "^11.11.0",
"@wordpress/babel-plugin-import-jsx-pragma": "^5.8.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/calypso-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@automattic/calypso-babel-config": "workspace:^",
"@automattic/languages": "workspace:^",
"@automattic/webpack-rtl-plugin": "workspace:^",
"@babel/compat-data": "^7.24.4",
"@babel/core": "^7.24.5",
"@babel/compat-data": "^7.25.8",
"@babel/core": "^7.25.8",
"@types/webpack-env": "^1.18.5",
"@wordpress/browserslist-config": "^6.8.0",
"@wordpress/dependency-extraction-webpack-plugin": "^5.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/calypso-codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"homepage": "https://github.com/Automattic/wp-calypso/tree/HEAD/packages/calypso-codemods#readme",
"dependencies": {
"5to6-codemod": "^1.8.0",
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/core": "^7.25.8",
"@babel/preset-env": "^7.25.8",
"jscodeshift": "^0.13.0",
"lodash": "^4.17.21",
"react-codemod": "^5.0.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/calypso-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"bugs": "https://github.com/Automattic/wp-calypso/issues",
"dependencies": {
"@babel/core": "^7.24.5",
"@babel/core": "^7.25.8",
"babel-jest": "^29.6.1",
"enhanced-resolve": "^5.8.3",
"jest": "^29.7.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-plugin-wpcalypso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node": ">=v22.9.0"
},
"peerDependencies": {
"@babel/core": ">=7.24.5",
"@babel/core": ">=7.25.8",
"eslint": ">=8.57.0",
"eslint-plugin-inclusive-language": "^2.2.1",
"eslint-plugin-jsdoc": "^46.10.1",
Expand All @@ -41,9 +41,9 @@
},
"devDependencies": {
"@automattic/calypso-typescript-config": "workspace:^",
"@babel/core": "^7.24.5",
"@babel/eslint-parser": "^7.24.5",
"@babel/parser": "^7.24.5",
"@babel/core": "^7.25.8",
"@babel/eslint-parser": "^7.25.8",
"@babel/parser": "^7.25.8",
"eslint": "^8.57.0"
}
}
2 changes: 1 addition & 1 deletion packages/i18n-calypso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"homepage": "https://github.com/Automattic/wp-calypso/tree/HEAD/packages/i18n-calypso#readme",
"dependencies": {
"@automattic/interpolate-components": "workspace:^",
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"@tannin/sprintf": "^1.1.0",
"@wordpress/compose": "^7.8.0",
"debug": "^4.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/jetpack-ai-calypso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"webpack": "^5.94.0"
},
"peerDependencies": {
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"@wordpress/data": "^10.8.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/language-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@automattic/languages": "workspace:^",
"@automattic/search": "workspace:^",
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"@wordpress/base-styles": "^5.8.0",
"@wordpress/components": "^28.8.0",
"@wordpress/i18n": "^5.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/load-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"access": "public"
},
"dependencies": {
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"debug": "^4.3.3"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"types": "dist/types",
"dependencies": {
"@automattic/typography": "workspace:^",
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"@wordpress/base-styles": "^5.8.0",
"@wordpress/components": "^28.8.0",
"@wordpress/compose": "^7.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/social-previews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"webpack": "^5.94.0"
},
"peerDependencies": {
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/wp-babel-makepot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
},
"dependencies": {
"@automattic/babel-plugin-i18n-calypso": "workspace:^",
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/plugin-proposal-decorators": "^7.24.1",
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@babel/cli": "^7.25.7",
"@babel/core": "^7.25.8",
"@babel/plugin-proposal-decorators": "^7.25.7",
"@babel/preset-env": "^7.25.8",
"@babel/preset-react": "^7.25.7",
"@babel/preset-typescript": "^7.25.7",
"commander": "^5.1.0",
"gettext-parser": "^4.0.3",
"glob": "^7.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/wpcom-xhr-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prepack": "yarn run clean && yarn run build"
},
"dependencies": {
"@babel/runtime": "^7.24.5",
"@babel/runtime": "^7.25.7",
"debug": "^4.3.3",
"superagent": "^3.8.3",
"wp-error": "^1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/wpcom.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@automattic/calypso-eslint-overrides": "workspace:^",
"@automattic/calypso-typescript-config": "workspace:^",
"@babel/core": "^7.24.5",
"@babel/core": "^7.25.8",
"babel-loader": "^8.2.3",
"npm-run-all": "^4.1.5",
"webpack": "^5.94.0",
Expand Down
Loading

0 comments on commit 8893bef

Please sign in to comment.