Skip to content

Commit

Permalink
chore(packages): bump deps to fix vulnerabilities (#3366)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrokohler authored May 8, 2023
1 parent 969e769 commit 285dff3
Show file tree
Hide file tree
Showing 11 changed files with 1,536 additions and 2,968 deletions.
16 changes: 15 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// https://babeljs.io/docs/en/options#babelrcroots
const { extendDefaultPlugins } = require('svgo');

module.exports = {
babelrcRoots: ['./platform/*', './extensions/*', './modes/*'],
presets: [
Expand All @@ -7,7 +9,19 @@ module.exports = {
'@babel/preset-typescript',
],
plugins: [
'inline-react-svg',
[
'inline-react-svg',
{
svgo: {
plugins: extendDefaultPlugins([
{
name: 'removeViewBox',
active: false,
},
]),
},
},
],
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-transform-typescript',
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
Expand Down
2 changes: 1 addition & 1 deletion extensions/cornerstone-dicom-seg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^10.11.0",
"react-i18next": "^12.2.2",
"react-router": "^6.8.1",
"react-router-dom": "^6.8.1",
"webpack": "^5.50.0",
Expand Down
2 changes: 1 addition & 1 deletion extensions/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^10.11.0",
"react-i18next": "^12.2.2",
"webpack": "^5.50.0",
"webpack-merge": "^5.7.3"
},
Expand Down
1 change: 1 addition & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
roots: ['<rootDir>/src'],
testMatch: ['<rootDir>/src/**/*.test.js'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
Expand Down
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
"autoprefixer": "^10.4.4",
"babel-eslint": "9.x",
"babel-loader": "^8.2.4",
"babel-plugin-inline-react-svg": "1.1.0",
"babel-plugin-module-resolver": "^3.2.0",
"babel-plugin-inline-react-svg": "^2.0.2",
"babel-plugin-module-resolver": "^5.0.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^9.0.1",
"cross-env": "^5.2.0",
Expand All @@ -106,20 +106,21 @@
"extract-css-chunks-webpack-plugin": "^4.5.4",
"html-webpack-plugin": "^5.3.2",
"husky": "^3.0.0",
"jest": "^24.8.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-canvas-mock": "^2.1.0",
"jest-junit": "^6.4.0",
"lerna": "^6.5.1",
"lerna": "^6.6.1",
"lint-staged": "^9.0.2",
"mini-css-extract-plugin": "^2.1.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"optimize-css-assets-webpack-plugin": "^6.0.1",
"postcss": "^8.3.5",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.1.1",
"postcss-preset-env": "^7.4.3",
"prettier": "^1.18.2",
"react-hot-loader": "^4.13.0",
"serve": "^11.1.0",
"serve": "^14.2.0",
"shader-loader": "^1.3.1",
"start-server-and-test": "^1.10.0",
"style-loader": "^1.0.0",
Expand All @@ -146,6 +147,11 @@
]
},
"resolutions": {
"**/@babel/runtime": "^7.20.13"
"**/@babel/runtime": "^7.20.13",
"nth-check": "^2.1.1",
"trim-newlines": "^5.0.0",
"glob-parent": "^6.0.2",
"trim": "^1.0.0",
"package-json": "^8.1.0"
}
}
2 changes: 1 addition & 1 deletion platform/cli/templates/extension/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^10.11.0",
"react-i18next": "^12.2.2",
"react-router": "^6.8.1",
"react-router-dom": "^6.8.1",
"webpack": "^5.50.0",
Expand Down
16 changes: 8 additions & 8 deletions platform/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.0.1",
"@docusaurus/plugin-client-redirects": "2.0.1",
"@docusaurus/plugin-ideal-image": "2.0.1",
"@docusaurus/plugin-pwa": "2.0.1",
"@docusaurus/preset-classic": "2.0.1",
"@docusaurus/remark-plugin-npm2yarn": "2.0.1",
"@docusaurus/theme-live-codeblock": "2.0.1",
"@docusaurus/plugin-google-gtag": "2.0.1",
"@docusaurus/core": "2.4.0",
"@docusaurus/plugin-client-redirects": "2.4.0",
"@docusaurus/plugin-ideal-image": "2.4.0",
"@docusaurus/plugin-pwa": "2.4.0",
"@docusaurus/preset-classic": "2.4.0",
"@docusaurus/remark-plugin-npm2yarn": "2.4.0",
"@docusaurus/theme-live-codeblock": "2.4.0",
"@docusaurus/plugin-google-gtag": "2.4.0",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"classnames": "^2.3.2",
Expand Down
4 changes: 2 additions & 2 deletions platform/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"i18next-browser-languagedetector": "^3.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^10.11.0"
"react-i18next": "^12.2.2"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
Expand All @@ -46,7 +46,7 @@
"i18next-browser-languagedetector": "^3.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^10.11.0",
"react-i18next": "^12.2.2",
"webpack-merge": "^5.7.3"
}
}
2 changes: 1 addition & 1 deletion platform/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"browser-detect": "^0.2.28",
"classnames": "^2.3.2",
"lodash.debounce": "4.0.8",
"moment": "2.24.0",
"moment": "2.29.4",
"mousetrap": "^1.6.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion platform/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-dropzone": "^10.1.7",
"react-i18next": "^10.11.0",
"react-i18next": "^12.2.2",
"react-resize-detector": "^6.7.6",
"react-router": "^6.8.1",
"react-router-dom": "^6.8.1"
Expand Down
Loading

0 comments on commit 285dff3

Please sign in to comment.