8000 Fix dependency issues (#100) · coder/backstage-plugins@8f195c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f195c5

Browse files
authored
Fix dependency issues (#100)
* Revert dependencies to pre-Dependabot This reverts all dependencies to how they were scaffolded, before Dependabot started making updates. * Test all plugins when yarn.lock file changes Since the plugins, app, and backend share a lockfile, it seems we can get some odd issues when we update dependencies that are not caught until the next time a plugin is tested. In particular, this happened with Dependabot, and although we were updating the package.json as well to make sure affected plugins were tested I think the issue comes with updating dependencies of dependencies not directly listed in the package.json. * Remove backend-test-utils from devcontainers-backend
1 parent ae8e71f commit 8f195c5

File tree

8 files changed

+825
-1278
lines changed

8 files changed

+825
-1278
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@ jobs:
3131
filters: |
3232
coder:
3333
- ".github/workflows/test.yaml"
34+
- "yarn.lock"
3435
- "plugins/backstage-plugin-coder/**"
3536
devcontainers-backend:
3637
- ".github/workflows/test.yaml"
38+
- "yarn.lock"
3739
- "plugins/backstage-plugin-devcontainers-backend/**"
3840
devcontainers-react:
3941
- ".github/workflows/test.yaml"
42+
- "yarn.lock"
4043
- "plugins/backstage-plugin-devcontainers-react/**"
4144
plugin:
4245
needs: changes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
},
3434
"devDependencies": {
3535
"@backstage/cli": "^0.25.1",
36-
"@backstage/e2e-test-utils": "^0.1.1",
36+
"@backstage/e2e-test-utils": "^0.1.0",
3737
"@playwright/test": "^1.32.3",
38-
"@spotify/prettier-config": "^15.0.0",
38+
"@spotify/prettier-config": "^12.0.0",
3939
"concurrently": "^8.0.0",
4040
"lerna": "^7.3.0",
4141
"node-gyp": "^9.0.0",

packages/app/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
"lint": "backstage-cli package lint"
1515
},
1616
"dependencies": {
17-
"@backstage/app-defaults": "^1.5.0",
17+
"@backstage/app-defaults": "^1.4.7",
1818
"@backstage/catalog-model": "^1.4.3",
1919
"@backstage/cli": "^0.25.1",
2020
"@backstage/core-app-api": "^1.11.3",
21-
"@backstage/core-components": "^0.14.0",
21+
"@backstage/core-components": "^0.13.10",
2222
"@backstage/core-plugin-api": "^1.8.2",
2323
"@backstage/integration-react": "^1.1.23",
24-
"@backstage/plugin-api-docs": "^0.11.2",
24+
"@backstage/plugin-api-docs": "^0.10.3",
2525
"@backstage/plugin-catalog": "^1.16.1",
2626
"@backstage/plugin-catalog-common": "^1.0.20",
2727
"@backstage/plugin-catalog-graph": "^0.3.3",
2828
"@backstage/plugin-catalog-import": "^0.10.5",
2929
"@backstage/plugin-catalog-react": "^1.9.3",
30-
"@backstage/plugin-github-actions": "^0.6.14",
30+
"@backstage/plugin-github-actions": "^0.6.10",
3131
"@backstage/plugin-org": "^0.6.19",
3232
"@backstage/plugin-permission-react": "^0.4.19",
3333
"@backstage/plugin-scaffolder": "^1.17.1",
34-
"@backstage/plugin-search": "^1.4.6",
34+
"@backstage/plugin-search": "^1.4.5",
3535
"@backstage/plugin-search-react": "^1.7.5",
36-
"@backstage/plugin-tech-radar": "^0.7.0",
36+
"@backstage/plugin-tech-radar": "^0.6.12",
3737
"@backstage/plugin-techdocs": "^1.9.3",
38-
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.5",
38+
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.4",
3939
"@backstage/plugin-techdocs-react": "^1.1.15",
40-
"@backstage/plugin-user-settings": "^0.8.1",
40+
"@backstage/plugin-user-settings": "^0.8.0",
4141
"@backstage/theme": "^0.5.0",
4242
"@coder/backstage-plugin-coder": "0.0.0",
4343
"@coder/backstage-plugin-devcontainers-react": "0.0.0",
@@ -46,16 +46,16 @@
4646
"history": "^5.0.0",
4747
"react": "^18.0.2",
4848
"react-dom": "^18.0.2",
49-
"react-router": "^6.22.3",
50-
"react-router-dom": "^6.22.3",
49+
"react-router": "^6.3.0",
50+
"react-router-dom": "^6.3.0",
5151
"react-use": "^17.2.4"
5252
},
5353
"devDependencies": {
5454
"@backstage/test-utils": "^1.4.7",
5555
"@playwright/test": "^1.32.3",
5656
"@testing-library/dom": "^9.0.0",
57-
"@testing-library/jest-dom": "^6.4.2",
58-
"@testing-library/react": "^14.2.1",
57+
"@testing-library/jest-dom": "^6.0.0",
58+
"@testing-library/react": "^14.0.0",
5959
"@testing-library/user-event": "^14.0.0",
6060
"@types/react-dom": "*",
6161
"cross-env": "^7.0.0"

packages/backend/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,32 @@
1616
"build-image": "docker build ../.. -f Dockerfile --tag backstage"
1717
},
1818
"dependencies": {
19-
"@backstage/backend-common": "^0.21.5",
20-
"@backstage/backend-tasks": "^0.5.20",
19+
"@backstage/backend-common": "^0.20.1",
20+
"@backstage/backend-tasks": "^0.5.14",
2121
"@backstage/catalog-client": "^1.5.2",
2222
"@backstage/catalog-model": "^1.4.3",
2323
"@backstage/config": "^1.1.1",
2424
"@backstage/plugin-app-backend": "^0.3.57",
25-
"@backstage/plugin-auth-backend": "^0.22.2",
25+
"@backstage/plugin-auth-backend": "^0.20.3",
2626
"@backstage/plugin-auth-node": "^0.4.3",
2727
"@backstage/plugin-catalog-backend": "^1.16.1",
2828
"@backstage/plugin-catalog-backend-module-github": "^0.4.7",
2929
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.6",
3030
"@backstage/plugin-permission-common": "^0.7.12",
31-
"@backstage/plugin-permission-node": "^0.7.24",
31+
"@backstage/plugin-permission-node": "^0.7.20",
3232
"@backstage/plugin-proxy-backend": "^0.4.7",
33-
"@backstage/plugin-scaffolder-backend": "^1.22.2",
33+
"@backstage/plugin-scaffolder-backend": "^1.20.0",
3434
"@backstage/plugin-search-backend": "^1.4.9",
3535
"@backstage/plugin-search-backend-module-catalog": "^0.1.13",
36-
"@backstage/plugin-search-backend-module-pg": "^0.5.24",
37-
"@backstage/plugin-search-backend-module-techdocs": "^0.1.21",
36+
"@backstage/plugin-search-backend-module-pg": "^0.5.18",
37+
"@backstage/plugin-search-backend-module-techdocs": "^0.1.13",
3838
"@backstage/plugin-search-backend-node": "^1.2.13",
39-
"@backstage/plugin-techdocs-backend": "^1.9.6",
39+
"@backstage/plugin-techdocs-backend": "^1.9.2",
4040
"@coder/backstage-plugin-devcontainers-backend": "0.0.0",
4141
"app": "link:../app",
4242
"better-sqlite3": "^9.0.0",
4343
"dockerode": "^3.3.1",
44-
"express": "^4.19.2",
44+
"express": "^4.17.1",
4545
"express-promise-router": "^4.1.0",
4646
"node-gyp": "^9.0.0",
4747
"pg": "^8.11.3",
@@ -52,7 +52,7 @@
5252
"@types/dockerode": "^3.3.0",
5353
"@types/express": "^4.17.6",
5454
"@types/express-serve-static-core": "^4.17.5",
55-
"@types/luxon": "^3.4.2"
55+
"@types/luxon": "^2.0.4"
5656
},
5757
"files": [
5858
"dist"

plugins/backstage-plugin-coder/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"postpack": "backstage-cli package postpack"
3333
},
3434
"dependencies": {
35-
"@backstage/core-components": "^0.14.0",
35+
"@backstage/core-components": "^0.13.10",
3636
"@backstage/core-plugin-api": "^1.8.2",
3737
"@backstage/integration-react": "^1.1.24",
3838
"@backstage/plugin-catalog-react": "^1.10.0",
@@ -52,7 +52,7 @@
5252
"@backstage/core-app-api": "^1.11.3",
5353
"@backstage/dev-utils": "^1.0.26",
5454
"@backstage/test-utils": "^1.4.7",
55-
"@testing-library/jest-dom": "^6.4.2",
55+
"@testing-library/jest-dom": "^5.10.1",
5656
"@testing-library/react": "^14.2.1",
5757
"@testing-library/user-event": "^14.0.0",
5858
"msw": "^1.0.0"

plugins/backstage-plugin-devcontainers-backend/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,20 @@
2323
"postpack": "backstage-cli package postpack"
2424
},
2525
"dependencies": {
26-
"@backstage/backend-common": "^0.21.5",
26+
"@backstage/backend-common": "^0.20.1",
2727
"@backstage/catalog-client": "^1.6.0",
2828
"@backstage/catalog-model": "^1.4.4",
2929
"@backstage/config": "^1.1.1",
3030
"@backstage/errors": "^1.2.3",
3131
"@backstage/plugin-catalog-common": "^1.0.21",
3232
"@backstage/plugin-catalog-node": "^1.7.2",
3333
"@types/express": "*",
34-
"express": "^4.19.2",
34+
"express": "^4.17.1",
3535
"express-promise-router": "^4.1.0",
3636
"winston": "^3.2.1",
3737
"yn": "^4.0.0"
3838
},
3939
"devDependencies": {
40-
"@backstage/backend-test-utils": "^0.3.4",
4140
"@backstage/cli": "^0.25.1",
4241
"@types/supertest": "^2.0.12",
4342
"msw": "^1.0.0",

plugins/backstage-plugin-devcontainers-react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@backstage/catalog-model": "^1.4.4",
28-
"@backstage/core-components": "^0.14.0",
28+
"@backstage/core-components": "^0.13.10",
2929
"@backstage/core-plugin-api": "^1.8.2",
3030
"@backstage/plugin-catalog-react": "^1.10.0",
3131
"@backstage/theme": "^0.5.0",
@@ -42,8 +42,8 @@
4242
"@backstage/core-app-api": "^1.11.3",
4343
"@backstage/dev-utils": "^1.0.26",
4444
"@backstage/test-utils": "^1.4.7",
45-
"@testing-library/jest-dom": "^6.4.2",
46-
"@testing-library/react": "^14.2.1",
45+
"@testing-library/jest-dom": "^6.0.0",
46+
"@testing-library/react": "^14.0.0",
4747
"@testing-library/user-event": "^14.0.0",
4848
"msw": "^1.0.0"
4949
},

0 commit comments

Comments
 (0)
0