Skip to content
Open
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
6 changes: 3 additions & 3 deletions plugins/xcmetrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/core-components": "workspace:^",
"@backstage/core-components": "0.1.0",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/theme": "0.1.1",
Comment on lines +26 to +29

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Pinning @backstage/core-components and @backstage/theme to specific, older versions instead of using workspace:^ is highly problematic in this monorepo setup. This change breaks the local package linking provided by Yarn workspaces, forcing the use of published, outdated versions from the registry instead of the current code in your repository.

  • @backstage/core-components is being downgraded from its workspace version (0.13.4-next.0) to 0.1.0.
  • @backstage/theme is being downgraded from its workspace version (0.4.1) to 0.1.1.

This will likely cause build failures, runtime errors, and inconsistencies with other packages in the monorepo. It's recommended to revert these changes and instead use Yarn's resolutions feature in the root package.json to force a specific version of the vulnerable transitive dependency across the entire workspace. This will fix the security issue without breaking your monorepo's structure.

Suggested change
"@backstage/core-components": "0.1.0",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/theme": "0.1.1",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/theme": "workspace:^",

"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
"lodash": "^4.17.21",
"lodash": "^4.17.23",
"luxon": "^3.0.0",
"react-use": "^17.2.4",
"recharts": "^2.5.0"
Expand Down
Loading