Skip to content

Comments

chore!: remove deprecated NewMenuEntry.iconClass#1385

Merged
skjnldsv merged 1 commit intomainfrom
chore/drop-deprecated-new-menu
Nov 27, 2025
Merged

chore!: remove deprecated NewMenuEntry.iconClass#1385
skjnldsv merged 1 commit intomainfrom
chore/drop-deprecated-new-menu

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Nov 27, 2025

The iconClass attribute was deprecated for over 2 years. With v4 it is now removed.

Instead use the iconSvgInline attribute to pass a svg icon.

@susnux susnux requested a review from skjnldsv November 27, 2025 12:34
@susnux susnux added type: breaking 💥 changes that require a new major version 3. to review 3️⃣ Waiting for reviews labels Nov 27, 2025
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.69%. Comparing base (74c7115) to head (54ddae7).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1385   +/-   ##
=======================================
  Coverage   90.69%   90.69%           
=======================================
  Files          23       23           
  Lines         666      666           
  Branches      181      181           
=======================================
  Hits          604      604           
  Misses         51       51           
  Partials       11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skjnldsv
Copy link
Contributor

lib/newMenu/NewMenu.ts:106:73 - error TS2339: Property 'iconClass' does not exist on type 'NewMenuEntry'.

106   if (!entry.id || !entry.displayName || !(entry.iconSvgInline || entry.iconClass) || !entry.handler) {
                                                                            ~~~~~~~~~

lib/newMenu/NewMenu.ts:115:14 - error TS2339: Property 'iconClass' does not exist on type 'NewMenuEntry'.

115   if ((entry.iconClass && typeof entry.iconClass !== 'string')
                 ~~~~~~~~~

lib/newMenu/NewMenu.ts:115:40 - error TS2339: Property 'iconClass' does not exist on type 'NewMenuEntry'.

115   if ((entry.iconClass && typeof entry.iconClass !== 'string')

@skjnldsv skjnldsv enabled auto-merge November 27, 2025 14:27
@skjnldsv skjnldsv force-pushed the chore/drop-deprecated-new-menu branch from 19b2a97 to eaf8814 Compare November 27, 2025 14:27
The `iconClass` attribute was deprecated for over 2 years.
With v4 it is now removed.

Instead use the `iconSvgInline` attribute to pass a svg icon.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
@skjnldsv skjnldsv force-pushed the chore/drop-deprecated-new-menu branch from eaf8814 to 54ddae7 Compare November 27, 2025 14:30
@skjnldsv skjnldsv merged commit 5aa92db into main Nov 27, 2025
9 checks passed
@skjnldsv skjnldsv deleted the chore/drop-deprecated-new-menu branch November 27, 2025 14:31
@skjnldsv skjnldsv mentioned this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: breaking 💥 changes that require a new major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants