Skip to content

feat(cost-management): upgrade Backstage from 1.39.0 to 1.49.4#2946

Merged
PreetiW merged 6 commits intoredhat-developer:mainfrom
PreetiW:RHINENG-26048-BS-upgrade-1.49.4
Apr 29, 2026
Merged

feat(cost-management): upgrade Backstage from 1.39.0 to 1.49.4#2946
PreetiW merged 6 commits intoredhat-developer:mainfrom
PreetiW:RHINENG-26048-BS-upgrade-1.49.4

Conversation

@PreetiW
Copy link
Copy Markdown
Contributor

@PreetiW PreetiW commented Apr 28, 2026

Description

Upgrade the cost-management workspace to align with the RHDH 1.10 target Backstage version (1.49.4) and Node.js 22.

Key changes:

  • backstage.json: 1.39.0 → 1.49.4
  • Node.js engine: 18 || 20 → 22
  • TypeScript: 5.3 → 5.8
  • All @backstage/* deps bumped via backstage-cli versions:bump
  • Removed stale resolutions (catalog-backend, scaffolder pinned versions)
  • Added @backstage/cli-defaults devDependency
  • Added isolated-vm ^6.0.1 resolution for Node 22 compatibility
  • Fixed AuthorizeResult type narrowing in permission code
  • Fixed @backstage/plugin-proxy-backend/alpha → root import
  • Removed deprecated variant="gridItem" from catalog components
  • Removed import assertion syntax from test file
  • Updated react-router-dom, @testing-library/react, @testing-library/dom, better-sqlite3 to versions compatible with Backstage 1.49.x

Made-with: Cursor

Hey, I just made a Pull Request!

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app Bot commented Apr 28, 2026

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/plugin-cost-management-backend
  • @red-hat-developer-hub/plugin-cost-management-common
  • @red-hat-developer-hub/plugin-cost-management

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/cost-management/packages/app none v0.0.5
backend workspaces/cost-management/packages/backend none v0.0.5
@red-hat-developer-hub/plugin-cost-management-backend workspaces/cost-management/plugins/cost-management-backend none v2.0.2
@red-hat-developer-hub/plugin-cost-management-common workspaces/cost-management/plugins/cost-management-common none v2.0.1
@red-hat-developer-hub/plugin-cost-management workspaces/cost-management/plugins/cost-management none v2.0.3-rc.4

@PreetiW PreetiW force-pushed the RHINENG-26048-BS-upgrade-1.49.4 branch from b12e3a6 to 30a72a3 Compare April 28, 2026 19:41
@PreetiW PreetiW requested a review from hardengl April 28, 2026 19:41
PreetiW added 3 commits April 29, 2026 12:08
Upgrade the cost-management workspace to align with the RHDH 1.10
target Backstage version (1.49.4) and Node.js 22.

Key changes:
- backstage.json: 1.39.0 → 1.49.4
- Node.js engine: 18 || 20 → 22
- TypeScript: 5.3 → 5.8
- All @backstage/* deps bumped via backstage-cli versions:bump
- Removed stale resolutions (catalog-backend, scaffolder pinned versions)
- Added @backstage/cli-defaults devDependency
- Added isolated-vm ^6.0.1 resolution for Node 22 compatibility
- Fixed AuthorizeResult type narrowing in permission code
- Fixed @backstage/plugin-proxy-backend/alpha → root import
- Removed deprecated variant="gridItem" from catalog components
- Removed import assertion syntax from test file
- Updated react-router-dom, @testing-library/react, @testing-library/dom,
  better-sqlite3 to versions compatible with Backstage 1.49.x

Made-with: Cursor
@PreetiW PreetiW force-pushed the RHINENG-26048-BS-upgrade-1.49.4 branch from 36400ce to 4acde1d Compare April 29, 2026 06:38
PreetiW added 3 commits April 29, 2026 13:04
…bufjs/inquire

Remove orchestrator plugin from dev app/backend to reduce transitive
dependency footprint (isolated-vm, protobufjs, grpc, etc.) and fix CI
build failure caused by @protobufjs/inquire@1.1.1 dynamic require()
triggering Rspack critical dependency warning with CI=true. Pin
@protobufjs/inquire to 1.1.0 to match other workspaces in the monorepo.
Add README section documenting how to re-add orchestrator for local dev.

Made-with: Cursor
Remove @janus-idp/backstage-plugin-audit-log-node from dev backend as
it is never imported. The plugin uses its own auditLog.ts utility.

Made-with: Cursor
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@asmasarw asmasarw left a comment

Choose a reason for hiding this comment

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

LGTM

@PreetiW
Copy link
Copy Markdown
Contributor Author

PreetiW commented Apr 29, 2026

Thanks for the review @asmasarw merging the PR.

@PreetiW PreetiW merged commit 259d3b2 into redhat-developer:main Apr 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants