Skip to content

Commit

Permalink
Update announcements plugins to v1.34.2 (#2407)
Browse files Browse the repository at this point in the history
* migrate env and docker-compose

Signed-off-by: Kurt King <[email protected]>

* Bump to v1.34.2

Signed-off-by: Kurt King <[email protected]>

* Add missing app-config and node scripts

Signed-off-by: Kurt King <[email protected]>

* fix: access and privatePackages

Signed-off-by: Kurt King <[email protected]>

* update changeset config and remove private from package.json

Signed-off-by: Kurt King <[email protected]>

* update deps and prettier config

Signed-off-by: Kurt King <[email protected]>

* fix deps

Signed-off-by: Kurt King <[email protected]>

---------

Signed-off-by: Kurt King <[email protected]>
  • Loading branch information
kurtaking authored Dec 27, 2024
1 parent 6c1d3b0 commit 48094fc
Show file tree
Hide file tree
Showing 11 changed files with 249 additions and 329 deletions.
10 changes: 10 additions & 0 deletions workspaces/announcements/.changeset/good-clocks-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@backstage-community/plugin-search-backend-module-announcements': patch
'@backstage-community/plugin-announcements-backend': patch
'@backstage-community/plugin-announcements-common': patch
'@backstage-community/plugin-announcements-react': patch
'@backstage-community/plugin-announcements-node': patch
'@backstage-community/plugin-announcements': patch
---

Bump all dependencies to be in line with Backstage v1.34.2. This is the first versioned release of the announcement plugins under the `@backstage-community` scope.
38 changes: 38 additions & 0 deletions workspaces/announcements/app-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
app:
title: Announcements Dev App
baseUrl: http://localhost:3000

permission:
enabled: true

backend:
baseUrl: http://localhost:7007
listen:
port: 7007
database:
# uncomment for sqlite
# client: better-sqlite3
# connection: ':memory:'
client: pg
connection:
host: ${POSTGRES_HOST}
port: ${POSTGRES_POST}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
cache:
store: memory
cors:
origin: http://localhost:3000
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
csp:
connect-src: ["'self'", 'http:', 'https:']
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
reading:
allow:
- host: localhost

auth:
providers:
guest: {}
4 changes: 3 additions & 1 deletion workspaces/announcements/backstage.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{ "version": "1.33.0" }
{
"version": "1.34.2"
}
15 changes: 7 additions & 8 deletions workspaces/announcements/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "@internal/announcements",
"version": "1.0.0",
"private": true,
"engines": {
"node": "18 || 20"
},
"scripts": {
"dev": "yarn workspaces foreach -A --include @backstage-community/plugin-announcements-backend --include @backstage-community/plugin-announcements --parallel -v -i run start",
"start": "yarn workspace @backstage-community/plugin-announcements start",
"start-backend": "yarn workspace @backstage-community/plugin-announcements-backend start",
"tsc": "tsc",
"tsc:full": "tsc --skipLibCheck false --incremental false",
"build:all": "backstage-cli repo build --all",
Expand Down Expand Up @@ -34,23 +36,20 @@
"directory": "workspaces/announcements"
},
"devDependencies": {
"@backstage/cli": "^0.29.0",
"@backstage/cli": "^0.29.4",
"@backstage/e2e-test-utils": "^0.1.1",
"@backstage/repo-tools": "^0.10.0",
"@backstage/repo-tools": "^0.12.0",
"@changesets/cli": "^2.27.1",
"@spotify/prettier-config": "^12.0.0",
"knip": "^5.27.4",
"node-gyp": "^9.0.0",
"prettier": "^2.3.2",
"typescript": "~5.3.0"
},
"dependencies": {
"knip": "^5.27.4"
},
"resolutions": {
"@types/react": "^18",
"@types/react-dom": "^18"
},
"prettier": "@spotify/prettier-config",
"prettier": "@backstage/cli/config/prettier",
"lint-staged": {
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"eslint --fix",
Expand Down
45 changes: 22 additions & 23 deletions workspaces/announcements/plugins/announcements-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -42,21 +41,21 @@
"@backstage-community/plugin-announcements-common": "workspace:^",
"@backstage-community/plugin-search-backend-module-announcements": "workspace:^",
"@backstage/backend-common": "^0.25.0",
"@backstage/backend-defaults": "^0.5.3",
"@backstage/backend-plugin-api": "^1.0.2",
"@backstage/backend-test-utils": "^1.1.0",
"@backstage/catalog-client": "^1.8.0",
"@backstage/config": "^1.3.0",
"@backstage/core-plugin-api": "^1.10.1",
"@backstage/errors": "^1.2.5",
"@backstage/plugin-auth-node": "^0.5.4",
"@backstage/plugin-events-backend": "^0.3.16",
"@backstage/plugin-events-node": "^0.4.5",
"@backstage/plugin-permission-common": "^0.8.2",
"@backstage/plugin-permission-node": "^0.8.5",
"@backstage/plugin-search-backend-node": "^1.3.5",
"@backstage/plugin-search-common": "^1.2.15",
"@backstage/plugin-signals-node": "^0.1.14",
"@backstage/backend-defaults": "^0.6.2",
"@backstage/backend-plugin-api": "^1.1.0",
"@backstage/backend-test-utils": "^1.2.0",
"@backstage/catalog-client": "^1.9.0",
"@backstage/config": "^1.3.1",
"@backstage/core-plugin-api": "^1.10.2",
"@backstage/errors": "^1.2.6",
"@backstage/plugin-auth-node": "^0.5.5",
"@backstage/plugin-events-backend": "^0.4.0",
"@backstage/plugin-events-node": "^0.4.6",
"@backstage/plugin-permission-common": "^0.8.3",
"@backstage/plugin-permission-node": "^0.8.6",
"@backstage/plugin-search-backend-node": "^1.3.6",
"@backstage/plugin-search-common": "^1.2.16",
"@backstage/plugin-signals-node": "^0.1.15",
"cross-fetch": "^3.1.5",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
Expand All @@ -69,14 +68,14 @@
"yn": "^4.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.29.2",
"@backstage/plugin-auth-backend": "^0.24.0",
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.2",
"@backstage/cli": "^0.29.4",
"@backstage/plugin-auth-backend": "^0.24.1",
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.3",
"@backstage/plugin-catalog-node": "^1.15.0",
"@backstage/plugin-permission-backend": "^0.5.51",
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.2",
"@backstage/plugin-signals-backend": "^0.2.3",
"@backstage/test-utils": "^1.7.2",
"@backstage/plugin-permission-backend": "^0.5.52",
"@backstage/plugin-permission-backend-module-allow-all-policy": "^0.2.3",
"@backstage/plugin-signals-backend": "^0.2.4",
"@backstage/test-utils": "^1.7.3",
"@types/supertest": "^2.0.15",
"@types/uuid": "^8.3.4",
"better-sqlite3": "^11.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -38,12 +37,12 @@
"postpack": "backstage-cli package postpack"
},
"devDependencies": {
"@backstage/cli": "^0.29.0"
"@backstage/cli": "^0.29.4"
},
"files": [
"dist"
],
"dependencies": {
"@backstage/plugin-permission-common": "^0.8.2"
"@backstage/plugin-permission-common": "^0.8.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -36,17 +35,17 @@
"postpack": "backstage-cli package postpack"
},
"devDependencies": {
"@backstage/backend-test-utils": "^1.1.0",
"@backstage/cli": "^0.29.0",
"@backstage/test-utils": "^1.7.2",
"@backstage/backend-test-utils": "^1.2.0",
"@backstage/cli": "^0.29.4",
"@backstage/test-utils": "^1.7.3",
"msw": "^1.3.2"
},
"files": [
"dist"
],
"dependencies": {
"@backstage-community/plugin-announcements-common": "workspace:^",
"@backstage/backend-plugin-api": "^1.0.2",
"@backstage/backend-plugin-api": "^1.1.0",
"@backstage/errors": "^1.2.6"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
Expand Down Expand Up @@ -39,16 +38,16 @@
},
"dependencies": {
"@backstage-community/plugin-announcements-common": "workspace:^",
"@backstage/core-plugin-api": "^1.10.1",
"@backstage/errors": "^1.2.5",
"@backstage/core-plugin-api": "^1.10.2",
"@backstage/errors": "^1.2.6",
"luxon": "^3.4.4",
"react-use": "^17.2.4"
},
"peerDependencies": {
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.29.2",
"@backstage/cli": "^0.29.4",
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^12.1.3",
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
Expand Down
37 changes: 18 additions & 19 deletions workspaces/announcements/plugins/announcements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -52,19 +51,19 @@
"dependencies": {
"@backstage-community/plugin-announcements-common": "workspace:^",
"@backstage-community/plugin-announcements-react": "workspace:^",
"@backstage/catalog-model": "^1.7.1",
"@backstage/core-app-api": "^1.15.2",
"@backstage/core-compat-api": "^0.3.3",
"@backstage/core-components": "^0.16.1",
"@backstage/core-plugin-api": "^1.10.1",
"@backstage/errors": "^1.2.5",
"@backstage/frontend-plugin-api": "^0.9.2",
"@backstage/plugin-catalog-react": "^1.14.2",
"@backstage/plugin-permission-react": "^0.4.28",
"@backstage/plugin-search-common": "^1.2.15",
"@backstage/plugin-search-react": "^1.8.3",
"@backstage/plugin-signals-react": "^0.0.7",
"@backstage/theme": "^0.5.7",
"@backstage/catalog-model": "^1.7.2",
"@backstage/core-app-api": "^1.15.3",
"@backstage/core-compat-api": "^0.3.4",
"@backstage/core-components": "^0.16.2",
"@backstage/core-plugin-api": "^1.10.2",
"@backstage/errors": "^1.2.6",
"@backstage/frontend-plugin-api": "^0.9.3",
"@backstage/plugin-catalog-react": "^1.15.0",
"@backstage/plugin-permission-react": "^0.4.29",
"@backstage/plugin-search-common": "^1.2.16",
"@backstage/plugin-search-react": "^1.8.4",
"@backstage/plugin-signals-react": "^0.0.8",
"@backstage/theme": "^0.6.3",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.57",
Expand All @@ -82,11 +81,11 @@
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
},
"devDependencies": {
"@backstage/cli": "^0.29.2",
"@backstage/dev-utils": "^1.1.4",
"@backstage/frontend-test-utils": "^0.2.3",
"@backstage/plugin-signals": "^0.0.13",
"@backstage/test-utils": "^1.7.2",
"@backstage/cli": "^0.29.4",
"@backstage/dev-utils": "^1.1.5",
"@backstage/frontend-test-utils": "^0.2.4",
"@backstage/plugin-signals": "^0.0.14",
"@backstage/test-utils": "^1.7.3",
"@testing-library/jest-dom": "^6.3.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
"private": true,
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -33,14 +32,14 @@
"dependencies": {
"@backstage-community/plugin-announcements-common": "workspace:^",
"@backstage-community/plugin-announcements-node": "workspace:^",
"@backstage/backend-plugin-api": "^1.0.2",
"@backstage/plugin-search-backend-node": "^1.3.5",
"@backstage/plugin-search-common": "^1.2.15"
"@backstage/backend-plugin-api": "^1.1.0",
"@backstage/plugin-search-backend-node": "^1.3.6",
"@backstage/plugin-search-common": "^1.2.16"
},
"devDependencies": {
"@backstage/backend-test-utils": "^1.1.0",
"@backstage/cli": "^0.29.0",
"@backstage/test-utils": "^1.7.2",
"@backstage/backend-test-utils": "^1.2.0",
"@backstage/cli": "^0.29.4",
"@backstage/test-utils": "^1.7.3",
"@testing-library/react": "^14.0.0",
"msw": "^1.3.2",
"react": "^18.3.1",
Expand Down
Loading

0 comments on commit 48094fc

Please sign in to comment.