Skip to content

chore(deps): update dependency @red-hat-developer-hub/cli to v2.1.1 - #5011

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rhdh-cost-management-dependencies-(minor)
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rhdh-cost-management-dependencies-(minor)

Conversation

@renovate

@renovate renovate Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@red-hat-developer-hub/cli (source) 2.0.8 → 2.1.1 age confidence

Release Notes

redhat-developer/rhdh-cli (@​red-hat-developer-hub/cli)

v2.1.1

Compare Source

Added
  • plugin dev: New rhdh-cli plugin dev command (start, update, restart, stop, logs, status) for exporting a dynamic plugin and managing its lifecycle against an existing RHDH Local checkout (RHIDP-16672, #​215). Use --rhdh-local-dir <path> or RHDH_LOCAL_DIR to point at the checkout; --configure adds the CLI-managed config include on first use. plugin dev restart restarts the RHDH service without re-deploying the plugin, useful when changing RHDH Local configuration. plugin dev logs accepts --follow to stream output continuously, --rhdh for RHDH application logs, and --installer for plugin installer logs.
Fixed
  • plugin new: Generated package.json now always includes a version field (defaults to 0.1.0). Upstream standalone templates omit it, but plugin export and npm pack both require a version to produce a valid package tarball.
  • plugin export: Both backend and frontend export paths now validate that package.json contains a version field before invoking npm pack, and emit a clear error instructing users to add one. Plugins without a version field would previously fail silently inside the RHDH Local installer container. Existing plugins that omit version will now fail at export time — add "version": "0.1.0" (or higher) to their package.json.
  • plugin export: ensureDir is now called before writing the config schema file, preventing failures when the parent directory does not exist.

v2.1.0

Compare Source

Added
  • plugin new: Add rhdh-cli plugin new <name> to create standalone, version-pinned frontend, backend, and catalog processor module dynamic plugin projects. The command renders portable template assets from the release-matched @backstage/cli-module-new package (0.1.6 for RHDH 2.1 / Backstage 1.54.6). The RHDH adapter supplies standalone backstage.json, Yarn Berry configuration, TypeScript configuration, RHDH export guidance, and dev harnesses. All @backstage/* direct dependencies are pinned from the target release manifest; transitive ranges remain upstream-managed (RHIDP-16671, RHIDP-16668, #​202, #​208).
  • plugin new --template <name>: Select a generated project type using the upstream portable template name (frontend-plugin, backend-plugin, catalog-processor-module) as an alternative to --type. Only templates with end-to-end test coverage are accepted. Passing an unsupported template name produces a clear error listing the accepted values.
  • plugin new --module-id <id>: Override the module identifier for module-type templates (e.g. catalog-processor-module). Defaults to the plugin name when omitted, preserving non-interactive behaviour.
  • plugin new --plugin-package <name>: Set the generated package.json name field. Validated against npm package name rules (lowercase, max 214 chars, no whitespace or special characters). Defaults to @internal/backstage-plugin-<name>.
  • Add intent-based catalog, api, search, docs, and template command groups for querying and managing RHDH through Backstage actions. These commands support human-readable and JSON output, multi-instance targeting, structured errors, and entity reference disambiguation (RHIDP-14129, #​156).
Changed
  • Frontend plugin export: Improved module federation sharing configuration to optimize bundle sizes and reduce duplicate dependencies across dynamic plugins. A curated list of common dependencies and transitive dependencies are now shared by default, with version requirements respected when appropriate for better runtime performance (#​216).
  • Frontend plugin export: Frontend plugins now use Backstage standard module federation exclusively. The generated remote assets are written to dist/, including dist/remoteEntry.js. Removed the frontend export options --scalprum-config, --generate-scalprum-assets, --no-generate-scalprum-assets, --generate-module-federation-assets, and --no-generate-module-federation-assets. Frontend module-federation assets are now always generated during plugin export. Frontend exports warn when legacy dist-scalprum/, plugin-manifest.json, or scalprum package metadata is still present. The legacy plugin build and plugin start commands have been removed.
    • Migration guidance: Remove the deleted frontend export options from scripts and CI jobs.
    • Migration guidance: Update integrations that read dist-scalprum/plugin-manifest.json to use the standard module-federation output under dist/ and NFS metadata in backstage.features.
    • Migration guidance: Remove dist-scalprum and related glob entries from frontend plugin files fields and clean any checked-in legacy output before exporting with rhdh-cli 2.1.0 (#​182).
  • plugin new (package name convention): The default generated package.json name no longer carries a type suffix. Previously, the RHDH-owned backend template appended -backend (producing @internal/backstage-plugin-<name>-backend) and the catalog processor module template appended a similar suffix; the upstream @backstage/cli-module-new templates use a flat @internal/backstage-plugin-<name> for all types. Scripts or CI configurations that reference the old type-suffixed name should update accordingly, or pass --plugin-package @internal/backstage-plugin-<name>-backend to restore the previous name.
Fixed
  • plugin new: Add the missing jest-environment-jsdom development dependency to generated projects so yarn test runs successfully (#​204).
  • plugin new (frontend): Generated frontend plugin tests now pass under Node 18+ without modification. The upstream @backstage/cli-module-new 0.1.6 template pinned msw@1.0.0, whose setupServer() does not intercept globalThis.fetch used by Backstage's fetchApiRef in tests, causing the generated TodoPage test to time out. Three RHDH template overlay files patch the generated project: the test is updated to the MSW v2 API (http/HttpResponse); setupTests.ts exposes the Web API globals (TextEncoder, BroadcastChannel, etc.) missing from Jest 29 + jsdom; and package.json gains jest.testEnvironmentOptions.customExportConditions so Jest 29 resolves MSW v2's msw/node package-exports subpath. These overlays will be removed when RHDH targets @backstage/cli-module-new 0.1.7+ (Backstage 1.55.0).
  • Update the RHDH 2.1.0, main, and next compatibility mappings to Backstage 1.54.6.
  • Fall back to the requested RHDH version when remote metadata returns an invalid version value.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.65%. Comparing base (5452bba) to head (6bb7e13).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5011   +/-   ##
=======================================
  Coverage   63.65%   63.65%           
=======================================
  Files        2705     2705           
  Lines      106578   106578           
  Branches    30005    30008    +3     
=======================================
  Hits        67843    67843           
  Misses      36905    36905           
  Partials     1830     1830           
Flag Coverage Δ *Carryforward flag
adoption-insights 84.77% <ø> (ø) Carriedforward from 5452bba
ai-integrations 87.10% <ø> (ø) Carriedforward from 5452bba
app-defaults 68.03% <ø> (ø) Carriedforward from 5452bba
augment 46.67% <ø> (ø) Carriedforward from 5452bba
boost 92.39% <ø> (ø) Carriedforward from 5452bba
bulk-import 73.12% <ø> (ø) Carriedforward from 5452bba
cost-management 13.56% <ø> (ø)
dcm 74.29% <ø> (ø) Carriedforward from 5452bba
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from 5452bba
e2e-extensions 62.31% <ø> (ø) Carriedforward from 5452bba
e2e-global-header 52.40% <ø> (ø) Carriedforward from 5452bba
e2e-homepage 61.11% <ø> (ø) Carriedforward from 5452bba
e2e-intelligent-assistant 45.51% <ø> (ø) Carriedforward from 5452bba
e2e-orchestrator 49.49% <ø> (ø) Carriedforward from 5452bba
e2e-orchestrator-plugin 49.48% <ø> (ø) Carriedforward from 5452bba
e2e-quickstart 54.83% <ø> (ø) Carriedforward from 5452bba
e2e-scorecard 49.77% <ø> (ø) Carriedforward from 5452bba
e2e-theme 16.36% <ø> (ø) Carriedforward from 5452bba
extensions 58.30% <ø> (ø) Carriedforward from 5452bba
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 5452bba
global-header 69.10% <ø> (ø) Carriedforward from 5452bba
homepage 55.16% <ø> (ø) Carriedforward from 5452bba
install-dynamic-plugins 73.52% <ø> (ø) Carriedforward from 5452bba
intelligent-assistant 78.53% <ø> (ø) Carriedforward from 5452bba
konflux 91.98% <ø> (ø) Carriedforward from 5452bba
lightspeed 69.02% <ø> (ø) Carriedforward from 5452bba
mcp-integrations 84.46% <ø> (ø) Carriedforward from 5452bba
orchestrator 77.69% <ø> (ø) Carriedforward from 5452bba
quickstart 65.83% <ø> (ø) Carriedforward from 5452bba
sandbox 79.56% <ø> (ø) Carriedforward from 5452bba
scorecard 88.98% <ø> (ø) Carriedforward from 5452bba
theme 87.70% <ø> (ø) Carriedforward from 5452bba
translations 7.91% <ø> (ø) Carriedforward from 5452bba
x2a 78.48% <ø> (ø) Carriedforward from 5452bba

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5452bba...6bb7e13. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovate Bot force-pushed the renovate/rhdh-cost-management-dependencies-(minor) branch 6 times, most recently from d0e352e to c81f72f Compare September 28, 2026 15:51
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/rhdh-cost-management-dependencies-(minor) branch from c81f72f to 6bb7e13 Compare September 28, 2026 18:45
@sonarqubecloud

Copy link
Copy Markdown

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.

0 participants