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
8 changes: 4 additions & 4 deletions plugins/analytics-module-ga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/config": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/config": "0.1.1",
"@backstage/core-components": "0.8.6",
"@backstage/core-plugin-api": "0.1.0",
"@backstage/theme": "0.1.1",
Comment on lines +25 to +28

Choose a reason for hiding this comment

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

critical

This change introduces significant downgrades for several core @backstage packages by replacing workspace:^ with outdated, pinned versions. This poses a critical risk of breaking the application due to version mismatches and API incompatibilities.

The following packages are being downgraded:

  • @backstage/config: from 1.0.8 (in workspace) to 0.1.1
  • @backstage/core-components: from 0.13.4-next.0 (in workspace) to 0.8.6
  • @backstage/core-plugin-api: from 1.5.3 (in workspace) to 0.1.0
  • @backstage/theme: from 0.4.1 (in workspace) to 0.1.1

Using workspace:^ is standard practice in this monorepo to ensure internal packages stay in sync. Pinning to old versions breaks this mechanism.

The vulnerabilities this PR aims to fix likely originate from transitive devDependencies (e.g., via @backstage/cli), not these direct dependencies. A better approach would be to target the vulnerable packages directly, for example by using resolutions in the root package.json or updating the packages that introduce the vulnerabilities.

I recommend reverting this change to avoid breaking the project.

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

"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
Expand Down
Loading