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

Aswathy/fix: updated the babel packages and security issue of babel-traverse #17225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ module.exports = {
presets: ['@babel/preset-react', '@babel/preset-typescript'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-transform-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-export-namespace-from',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-transform-optional-chaining',
'@babel/plugin-transform-nullish-coalescing-operator',
],
},
},
Expand Down
12 changes: 6 additions & 6 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-export-namespace-from",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
"@babel/plugin-transform-optional-chaining",
"@babel/plugin-transform-nullish-coalescing-operator"
]
}
2 changes: 1 addition & 1 deletion jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'babel-polyfill';
import '@babel/polyfill';
6,621 changes: 2,262 additions & 4,359 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
"node": "18.x"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-decorators": "^7.12.12",
"@babel/plugin-proposal-export-default-from": "^7.12.1",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-transform-class-properties": "^7.25.4",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-proposal-export-default-from": "^7.24.7",
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/plugin-proposal-unicode-property-regex": "^7.16.7",
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
"@babel/plugin-transform-optional-chaining": "^7.24.8",
"@babel/plugin-transform-unicode-property-regex": "^7.24.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/config-nx-scopes": "^17.0.0",
Expand All @@ -35,7 +37,7 @@
"@types/react-dom": "^18.0.0",
"@types/react-router-dom": "^5.1.6",
"@types/react-virtualized": "^9.21.21",
"babel-polyfill": "^6.26.0",
"@babel/polyfill": "^7.12.1 ",
"dotenv-webpack": "^8.0.1",
"husky": "^7.0.0",
"jest": "^26.4.2",
Expand Down Expand Up @@ -93,11 +95,11 @@
"prepare": "husky install"
},
"dependencies": {
"@babel/preset-typescript": "^7.16.5",
"@babel/preset-typescript": "^7.24.7",
"@deriv-com/analytics": "1.14.0",
"@sendbird/chat": "^4.9.7",
"@types/react-transition-group": "^4.4.4",
"babel-jest": "^27.3.1",
"babel-jest": "^29.7.0",
"dotenv": "^8.2.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"yup": "^0.32.11"
},
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.5",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@deriv/api-types": "1.0.172",
"@jest/globals": "^26.5.3",
"@testing-library/react": "^12.0.0",
Expand All @@ -66,7 +66,7 @@
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"babel-loader": "^9.2.1",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.0.1",
"css-minimizer-webpack-plugin": "^3.0.1",
Expand Down
14 changes: 7 additions & 7 deletions packages/appstore/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-export-namespace-from",
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-unicode-property-regex", { "useUnicodeFlag": false }],
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
["@babel/plugin-transform-unicode-property-regex", { "useUnicodeFlag": false }],
"@babel/plugin-transform-optional-chaining",
"@babel/plugin-transform-nullish-coalescing-operator"
]
}
8 changes: 4 additions & 4 deletions packages/appstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-react": "^7.24.7",
"@deriv/api-types": "1.0.172",
"@deriv/publisher": "^0.0.1-beta4",
"@storybook/addon-docs": "^6.5.10",
Expand All @@ -64,8 +64,8 @@
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"@types/react-router-dom": "^5.1.6",
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"@babel/core": "^7.25.2",
"babel-loader": "^9.2.1",
"concurrently": "^5.3.0",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/bot-skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"author": "Binary.com",
"license": "MIT",
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-react": "^7.24.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"deep-diff": "^1.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/bot-web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
"author": "Binary.com",
"license": "MIT",
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-react": "^7.24.7",
"@testing-library/react": "^12.0.0",
"@types/dompurify": "^3.0.5",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"babel-loader": "^9.2.1",
"clean-webpack-plugin": "^3.0.0",
"concurrently": "^5.3.0",
"copy-webpack-plugin": "^9.0.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/cashier/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-export-namespace-from",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
"@babel/plugin-transform-optional-chaining",
"@babel/plugin-transform-nullish-coalescing-operator"
]
}
6 changes: 3 additions & 3 deletions packages/cashier/build/loaders-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const js_loaders = [
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-transform-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-export-namespace-from',
'@babel/plugin-syntax-dynamic-import',
],
},
Expand Down
24 changes: 12 additions & 12 deletions packages/cashier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-decorators": "^7.12.12",
"@babel/plugin-proposal-export-default-from": "^7.12.1",
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-transform-class-properties": "^7.25.4",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-proposal-export-default-from": "^7.24.7",
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
"@babel/plugin-transform-optional-chaining": "^7.24.8",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/loadjs": "^4.0.1",
"@types/qrcode.react": "^1.0.2",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"babel-loader": "^9.2.1",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/cfd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"@types/react-loadable": "^5.5.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"@babel/eslint-parser": "^7.25.1",
"babel-loader": "^9.2.1",
"circular-dependency-plugin": "^5.2.2",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^9.0.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-transform-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-transform-object-rest-spread',
'@babel/plugin-transform-export-namespace-from',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-transform-optional-chaining',
'@babel/plugin-transform-nullish-coalescing-operator',
['@babel/plugin-proposal-private-methods', { loose: true }],
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
['@babel/plugin-transform-private-property-in-object', { loose: true }],
],
},
},
Expand Down
8 changes: 4 additions & 4 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"author": "Deriv",
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-react": "^7.24.7",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-info": "^5.3.21",
Expand All @@ -48,7 +48,7 @@
"@types/lodash.throttle": "^4.1.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"babel-loader": "^9.2.1",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin-v6": "npm:copy-webpack-plugin@6",
"cross-env": "^5.2.0",
Expand Down
1 change: 0 additions & 1 deletion packages/components/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ module.exports = function () {
classnames: 'classnames',
'react-div-100vh': 'react-div-100vh',
'framer-motion': 'framer-motion',
'babel-polyfill': 'babel-polyfill',
'prop-types': 'prop-types',
'react-transition-group': 'react-transition-group',
react: 'react',
Expand Down
14 changes: 7 additions & 7 deletions packages/core/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
["@babel/plugin-proposal-unicode-property-regex", { "useUnicodeFlag": false }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
["@babel/plugin-transform-unicode-property-regex", { "useUnicodeFlag": false }],
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-export-namespace-from",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
"@babel/plugin-transform-optional-chaining",
"@babel/plugin-transform-nullish-coalescing-operator"
]
}
11 changes: 5 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
},
"homepage": "https://github.com/deriv-com/deriv-app",
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-proposal-private-property-in-object": "^7.12.1",
"@babel/plugin-proposal-unicode-property-regex": "^7.16.7",
"@babel/preset-react": "^7.16.7",
"@babel/plugin-transform-unicode-property-regex": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.5.0",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"babel-loader": "^9.2.1",
"circular-dependency-plugin": "^5.2.2",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^9.0.1",
Expand Down Expand Up @@ -94,7 +94,6 @@
"workbox-webpack-plugin": "^6.0.2"
},
"dependencies": {
"@babel/polyfill": "^7.4.4",
"@datadog/browser-rum": "^5.11.0",
"@deriv-com/analytics": "1.14.0",
"@deriv-com/quill-tokens": "2.0.4",
Expand Down Expand Up @@ -123,7 +122,7 @@
"@deriv/utils": "^1.0.0",
"@deriv/wallets": "^1.0.0",
"acorn": "^6.1.1",
"babel-polyfill": "^6.26.0",
"@babel/polyfill": "^7.12.1 ",
"canvas-toBlob": "^1.0.0",
"classnames": "^2.2.6",
"crc-32": "^1.2.0",
Expand Down
Loading
Loading