Skip to content
Frontend
Skill

/ui5wc-upgrade

Guide a complete UI5 Web Components version upgrade in the ui5-webcomponents-react monorepo. Updates root and peer dependencies, regenerates wrapper components, syncs theming parameters, updates version-info, detects new components and breaking changes, and verifies the build.

From plugin
webcomponents-react
5452 skills

Claude Code

$ npx -y skills add ui5/webcomponents-react --skill ui5wc-upgrade --agent claude-code

SKILL.md

ui5wc-upgrade.SKILL.md
name: ui5wc-upgrade
description: Guide a complete UI5 Web Components version upgrade in the ui5-webcomponents-react monorepo. Updates root and peer dependencies, regenerates wrapper components, syncs theming parameters, updates version-info, detects new components and breaking changes, and verifies the build. Use when a new @ui5/webcomponents version is released and the monorepo needs upgrading.
disable-model-invocation: true
argument-hint: target version (e.g. 2.22.0)
allowed-tools:
  - Bash(node skills/maintainer/ui5wc-upgrade/scripts/verify-peer-deps.mjs*)
  - Bash(yarn create-webcomponents-wrapper*)
  - Bash(yarn create-webcomponents-wrapper-ai*)
  - Bash(yarn create-webcomponents-wrapper-compat*)
  - Bash(yarn create-theming-parameters*)
  - Bash(yarn create-exports*)
  - Bash(yarn install*)
  - Bash(yarn build*)
  - Bash(yarn build:mcp*)
  - Bash(yarn lint*)
metadata:
  internal: true

UI5 Web Components Upgrade Protocol

Follow each step in order. Do NOT skip verification gates.

Prerequisites

Ensure the working tree is clean before starting (`git status` should show no uncommitted changes). The upgrade touches many files across multiple packages, and a dirty tree makes it hard to isolate upgrade-related changes and risks committing unrelated work.

Initialization

1. Parse the **target version** from the argument (e.g. `2.25.0` or `2.25.1`). 2. Derive two peerDependency ranges:

  • **Upstream range:** `~TARGET_VERSION` (e.g. `~2.25.1`) for `@ui5/webcomponents*` packages.
  • **React wrapper range:** `~TARGET_MAJOR.TARGET_MINOR.0` (e.g. `~2.25.0`) for the

`@ui5/webcomponents-react` peer in the compat package. The wrapper release version is aligned to the UI5 Web Components minor, but it does not necessarily share the upstream patch version. 3. Read the **current version** from root `package.json` → `dependencies["@ui5/webcomponents"]`. 4. Check if Renovate already updated root deps — if `dependencies["@ui5/webcomponents"]` already matches target, note that Step 1a can be skipped. **Do not skip Step 1b:** Renovate updating the root does not prove that package peerDependencies are correct. 5. If the whole upgrade may already have been applied, still reconcile and verify Step 1b before deciding whether wrapper generation needs to be re-run.

---

Step 1: Update Dependencies

1a. Root `package.json`

Skip if Renovate already handled this.

Update to the exact target version:

**dependencies:** `@ui5/webcomponents`, `@ui5/webcomponents-fiori`, `@ui5/webcomponents-ai`, `@ui5/webcomponents-compat`, `@ui5/webcomponents-icons`

**devDependencies:** `@ui5/webcomponents-tools`

> `@ui5/webcomponents-base` is NOT a direct root dependency — only update it in peerDependencies.

1b. Package peerDependencies

Update the upstream tilde ranges to `~TARGET_VERSION` and the compat package's internal React wrapper peer to `~TARGET_MAJOR.TARGET_MINOR.0`. See `references/package-json-peer-deps.md` for the exact map. Summary:

| File | Keys to update | | ---------------------------------------- | ---------------------------------------------------------------------------------------------- | | `packages/main/package.json` | `@ui5/webcomponents`, `-base`, `-fiori`, `-icons` | | `packages/base/package.json` | `@ui5/webcomponents-base` | | `packages/ai/package.json` | `@ui5/webcomponents-ai` | | `packages/compat/package.json` | `@ui5/webcomponents-compat` → upstream range; `@ui5/webcomponents-react` → React wrapper range | | `packages/cypress-commands/package.json` | `@ui5/webcomponents`, `-base` |

> **Note:** `packages/charts/package.json` keeps its established `^2.21.0` compatibility floor and does **not** need updating for minor version bumps. The validator confirms that it was not accidentally narrowed.

1c. Install

yarn install

Verify

Run the exact-value validator (replace the example with the real target):

node skills/maintainer/ui5wc-upgrade/scripts/verify-peer-deps.mjs 2.25.1

It verifies every mapped key against the correct range. Checking only for the old range is not sufficient, because it cannot detect an incorrect upstream patch applied to the internal React peer. For target `2.25.1`, these values must coexist in compat:

"@ui5/webcomponents-compat": "~2.25.1",
"@ui5/webcomponents-react": "~2.25.0"

Also confirm that no old minor range remains:

grep -r "~OLD_MINOR" packages/*/package.json

The validator and the old-range check must both pass before continuing.

---

Step 2: Compile CLI & Generate Wrappers

Run in sequence:

yarn create-webcomponents-wrapper
yarn create-webcomponents-wrapper-ai
yarn create-webcomponents-wrapper-compat

Each script compiles the CLI internally before generating. No separate `tsc` step needed.

`create-webcomponents-wrapper` already runs prettier, eslint --fix, and `sb:prepare-cem`.

Verify

All commands exit 0. Then check for new components:

git diff --stat
git status --short -- packages/main/src/webComponents/ packages/ai/src/components/ packages/compat/src/components/ | grep "^?"

If any command fails, see `references/common-pitfalls.md`.

---

Step 2b: Restore Custom Code in Generated Wrappers

The wrapper generator overwrites ALL files, including ones with hand-written customizations. These components have custom code that MUST be restored after every generation run. See `references/custom-wrapper-code.md` for the exact code to restore.

**Components with custom code:**

| Component | Package | Cust

Read more
@ui5
Ships withwebcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience

Stars on GitHub

Momentum

stars in total
545
Star history of ui5/webcomponents-react on GitHub, a chart by star-history.com

Other skills on webcomponents-react.

More skills from other plugins.

next-bundle-optimizer
Auto-invoked

next-bundle-optimizer

Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browser…

nextjs10d143k
@vercel@vercelInstall Skill
migrate-radix-to-base

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert…

ui2w127k
@shadcn-ui@shadcn-uiInstall Skill
chrome-release-cls

chrome-release-cls

Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CL…

electron11d124k
@electron@electronInstall Skill
taste-skill
Auto-invoked

taste-skill

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One…

Questions about ui5wc-upgrade.

Which coding agents can use ui5wc-upgrade?
ui5wc-upgrade installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.