Skip to content
Closed
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/kafka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/catalog-model": "workspace:^",
"@backstage/catalog-model": "0.1.1",
"@backstage/config": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/core-plugin-api": "0.1.0",
"@backstage/plugin-catalog-react": "1.0.0",
Comment on lines +27 to +31
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

These changes downgrade several @backstage packages to very old versions (e.g., @backstage/catalog-model from what is likely a much newer workspace version to 0.1.1). This is likely to cause breaking changes and runtime errors due to API incompatibilities. I've suggested reverting these changes.

While this might resolve the Snyk vulnerabilities in transitive dependencies, it's not the correct approach. A better way to resolve these vulnerabilities in a yarn workspace project is to use resolutions in the root package.json to force the vulnerable packages (ajv, qs) to a non-vulnerable version. For example:

"resolutions": {
  "ajv": "^8.12.0",
  "qs": "^6.5.3"
}

After adding the resolutions, you'll need to run yarn install to update the yarn.lock file. This PR also notes that yarn.lock was not updated, which is another critical issue that needs to be addressed.

    "@backstage/catalog-model": "workspace:^",
    "@backstage/config": "workspace:^",
    "@backstage/core-components": "workspace:^",
    "@backstage/core-plugin-api": "workspace:^",
    "@backstage/plugin-catalog-react": "workspace:^"

"@backstage/theme": "workspace:^",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
Expand Down
Loading