Skip to content

fix: clean up deprecated and unused dependencies#4997

Open
sammy200-ui wants to merge 3 commits intoasyncapi:masterfrom
sammy200-ui:fix/cleanup-deprecated-dependencies
Open

fix: clean up deprecated and unused dependencies#4997
sammy200-ui wants to merge 3 commits intoasyncapi:masterfrom
sammy200-ui:fix/cleanup-deprecated-dependencies

Conversation

@sammy200-ui
Copy link
Contributor

@sammy200-ui sammy200-ui commented Jan 22, 2026

  • Remove @tailwindcss/line-clamp (built into Tailwind CSS v3.3+)
  • Remove @storybook/addons (deprecated, unused)
  • Replace @floating-ui/react-dom-interactions with @floating-ui/react
  • Upgrade @heroicons/react from v1.x to v2.x

here are the references -
1 - https://www.npmjs.com/package/@floating-ui/react-dom-interactions

2 - https://tailwindcss.com/blog/tailwindcss-v3-3#line-clamp-out-of-the-box

3 - https://storybook.js.org/docs/8/migration-guide#package-structure-changes

4 - https://github.com/tailwindlabs/heroicons#react

all of them are in order of there mentions

Closes #4983

Summary by CodeRabbit

  • Chores

    • Updated icon set across the app to the new Heroicons v2 components for a consistent visual look.
    • Migrated popover/tooltip positioning to the latest Floating UI for more reliable placement and interactions.
    • Removed several unused dependencies to slim the package.
  • Style

    • Minor description text layout tweak in tool cards for improved truncation rendering.

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b42c8b0
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/698787120b605500081154f9
😎 Deploy Preview https://deploy-preview-4997--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

📝 Walkthrough

Walkthrough

Updated Heroicons imports and several icon component names to the v2 import path; migrated Floating UI usage from @floating-ui/react-dom-interactions to @floating-ui/react and switched to the new refs API; updated package.json dependencies (added/updated and removed deprecated packages). No public API changes.

Changes

Cohort / File(s) Summary
Heroicons simple path updates
components/Meeting.tsx, components/layout/CommunityLayout.tsx, components/navigation/EventPostItem.tsx, pages/community/events/index.tsx
Switched imports from @heroicons/react/outline to @heroicons/react/24/outline. Import paths changed only; usage and logic unchanged.
Heroicons renames & typing
components/navigation/toolingItems.tsx, pages/[lang]/tools/cli.tsx, pages/tools/cli.tsx
Replaced v1 icon components with v2 equivalents (e.g., TerminalIconCommandLineIcon, DocumentAddIconDocumentPlusIcon, BadgeCheckIconCheckBadgeIcon, CodeIconCodeBracketIcon, GlobeIconGlobeAltIcon). Updated Feature.icon type to React.ComponentType<React.ComponentProps<'svg'>> in pages/[lang]/tools/cli.tsx.
Floating UI migration
components/dashboard/GoodFirstIssuesTip.tsx, components/dashboard/table/Filters.tsx
Replaced @floating-ui/react-dom-interactions with @floating-ui/react; updated useFloating destructuring from { x, y, reference, floating, strategy } to { x, y, refs, strategy } and replaced ref={reference} / ref={floating} with ref={refs.setReference} / ref={refs.setFloating}.
Misc icon update
components/editor/CodeBlock.tsx
Updated CheckIcon import path to @heroicons/react/24/outline.
UI tweak
components/tools/ToolsCard.tsx
Removed inline-block from a truncated-description className, adjusting inline formatting only.
Dependency manifest
package.json
Removed deprecated/unused deps (@floating-ui/react-dom-interactions, old @heroicons/react v1, @storybook/addons, @tailwindcss/line-clamp) and added/updated @floating-ui/react and @heroicons/react v2.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 I hopped through imports, swapping old for new,
Tucked floating refs where the tooltips grew,
Replaced a few icons with names that rhyme,
Cleaned the package list — a little springtime. 🎋

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The ToolsCard.tsx change (className adjustment) appears unrelated to dependency cleanup objectives and may be out-of-scope. Clarify whether the ToolsCard.tsx className change is intentional or should be removed as out-of-scope from the dependency cleanup task.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'fix: clean up deprecated and unused dependencies' directly and concisely describes the main changeset: removing/upgrading outdated packages.
Linked Issues check ✅ Passed All coding requirements from issue #4983 are met: @floating-ui/react-dom-interactions replaced with @floating-ui/react, @tailwindcss/line-clamp removed, @storybook/addons removed, @heroicons/react upgraded from v1 to v2 with import path updates.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
components/dashboard/table/Filters.tsx (1)

99-105: Replace manual positioning with floatingStyles for cleaner code.

The current approach of manually handling x, y, and strategy through a mix of Tailwind classes and inline styles is fragile and harder to maintain. @floating-ui/react's floatingStyles object is designed specifically for this use case and provides all necessary positioning styles directly.

♻️ Suggested refactor
- const { x, y, refs, strategy } = useFloating({
+ const { refs, floatingStyles } = useFloating({
    placement: 'left-start',
    open
  });

Then on the floating element:

  <div
    ref={refs.setFloating}
-   className={`${strategy} ${x && x > 0 ? `left-[${x}px]` : 'left-[14px]'}`}
-   style={{
-     top: y ?? '',
-     left: x && x > 0 ? x : ''
-   }}
+   style={floatingStyles}
    data-testid='Filter-menu'
  >

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up deprecated and unused dependencies to maintain the codebase with current recommended versions. The changes are focused on dependency upgrades and removals that have no functional impact, only improving maintainability.

Changes:

  • Removed @tailwindcss/line-clamp plugin (functionality now built into Tailwind CSS v3.3+)
  • Removed deprecated @storybook/addons package
  • Migrated from @floating-ui/react-dom-interactions to @floating-ui/react with updated API usage
  • Upgraded @heroicons/react from v1.0.6 to v2.2.0 with updated icon names and import paths

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Removed deprecated dependencies (@storybook/addons, @tailwindcss/line-clamp) and upgraded packages (@heroicons/react, @floating-ui/react)
package-lock.json Updated lockfile to reflect dependency changes, removed transitive dependencies of deprecated packages
pages/tools/cli.tsx Updated heroicons imports from v1 outline to v2 24/outline, renamed icons to new v2 names
pages/[lang]/tools/cli.tsx Updated heroicons imports from v1 outline to v2 24/outline, renamed icons to new v2 names
pages/community/events/index.tsx Updated heroicons imports from v1 outline to v2 24/outline
components/navigation/toolingItems.tsx Updated heroicons imports, renamed TerminalIcon to CommandLineIcon
components/navigation/EventPostItem.tsx Updated heroicons imports from v1 outline to v2 24/outline
components/layout/CommunityLayout.tsx Updated heroicons imports from v1 outline to v2 24/outline
components/Meeting.tsx Updated heroicons imports from v1 outline to v2 24/outline
components/dashboard/table/Filters.tsx Migrated from @floating-ui/react-dom-interactions to @floating-ui/react, updated API from reference/floating to refs.setReference/refs.setFloating
components/dashboard/GoodFirstIssuesTip.tsx Migrated from @floating-ui/react-dom-interactions to @floating-ui/react, updated API from reference/floating to refs.setReference/refs.setFloating

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b49a9f2) to head (b42c8b0).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4997   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          796       796           
  Branches       146       146           
=========================================
  Hits           796       796           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@package.json`:
- Around line 52-53: The dependency entries for "@floating-ui/react" and
"@heroicons/react" are caret-pinned to older minor versions and won't
auto-update to the newer minor releases; update the package.json dependency
versions from "^0.26.0" to "^0.27.16" for "@floating-ui/react" and from "^2.1.0"
to "^2.2.0" for "@heroicons/react" (or explicitly decide to keep the current
specs) and run your package manager install to lock the chosen versions,
ensuring the changes are reflected in lockfile updates.

Comment on lines +52 to +53
"@floating-ui/react": "^0.26.0",
"@heroicons/react": "^2.1.0",
Copy link
Contributor

@coderabbitai coderabbitai bot Jan 22, 2026

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check latest versions of the updated packages
echo "Checking `@floating-ui/react` latest version:"
curl -s https://registry.npmjs.org/@floating-ui/react/latest | jq '.version'

echo "Checking `@heroicons/react` latest version:"
curl -s https://registry.npmjs.org/@heroicons/react/latest | jq '.version'

Repository: asyncapi/website

Length of output: 163


Dependency updates look correct.

The migration from deprecated packages aligns with the PR objectives:

  • @floating-ui/react replaces the deprecated @floating-ui/react-dom-interactions
  • @heroicons/react v2.1.0 is a major version upgrade from v1.x

Note: Newer minor versions are available (@floating-ui/react@0.27.16 and @heroicons/react@2.2.0). The current caret-pinned versions (^0.26.0 and ^2.1.0) are acceptable and will receive patch updates automatically, but will not upgrade to these newer minor versions without explicit updates to the version specifiers.

🤖 Prompt for AI Agents
In `@package.json` around lines 52 - 53, The dependency entries for
"@floating-ui/react" and "@heroicons/react" are caret-pinned to older minor
versions and won't auto-update to the newer minor releases; update the
package.json dependency versions from "^0.26.0" to "^0.27.16" for
"@floating-ui/react" and from "^2.1.0" to "^2.2.0" for "@heroicons/react" (or
explicitly decide to keep the current specs) and run your package manager
install to lock the chosen versions, ensuring the changes are reflected in
lockfile updates.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its intentional to use stable versions

Copy link
Contributor

Choose a reason for hiding this comment

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

@sammy200-ui, understood! Using stable, well-tested versions is a reasonable approach, especially for a production website. The caret-pinned versions you've chosen will still receive patch updates for bug fixes while avoiding potential breaking changes or regressions from newer minor releases.


✏️ Learnings added
Learnt from: sammy200-ui
Repo: asyncapi/website PR: 4997
File: package.json:52-53
Timestamp: 2026-01-22T16:02:24.768Z
Learning: For the asyncapi/website repository, sammy200-ui prefers using stable, well-tested versions of dependencies rather than the absolute latest minor versions, prioritizing stability over newest features.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


🧠 Learnings used
Learnt from: sammy200-ui
Repo: asyncapi/website PR: 4804
File: components/navigation/Filter.tsx:32-41
Timestamp: 2025-12-29T14:21:43.887Z
Learning: For the asyncapi/website repository, maintainer guidance is to use eslint-disable comments with explanatory text for cases where useEffect/useMemo dependencies are intentionally omitted by design.

@sammy200-ui sammy200-ui force-pushed the fix/cleanup-deprecated-dependencies branch from 7b38ea9 to 9d904c7 Compare January 22, 2026 15:48
@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Jan 22, 2026

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 46
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-4997--asyncapi-website.netlify.app/

@sammy200-ui
Copy link
Contributor Author

@princerajpoot20 pr is open for review!!

@sammy200-ui
Copy link
Contributor Author

@princerajpoot20 got conflict because of the lock file regeneration , open for review now !!

Copy link
Contributor

@Sourya07 Sourya07 left a comment

Choose a reason for hiding this comment

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

Nicely done

@sammy200-ui sammy200-ui force-pushed the fix/cleanup-deprecated-dependencies branch 2 times, most recently from 412eb8e to e39ef9f Compare February 6, 2026 13:06
@sammy200-ui
Copy link
Contributor Author

hello @princerajpoot20 following up on this pr , anything from my side that needs to be updated or can we proceed with this

@princerajpoot20
Copy link
Member

@sammy200-ui Please proceed with the sanity checks using the temporary deployment link for all the components where you have made code changes. This will ensure that the changes are GTG.
Please attach the evidence in the description

@princerajpoot20
Copy link
Member

Also, the CI pipeline is failing. have a look at it

@sammy200-ui
Copy link
Contributor Author

@princerajpoot20 sure , will attach the evidence for it here . hmm...thats weird CI passed yesterday , let me take a look at it as well

- Remove @tailwindcss/line-clamp (built into Tailwind CSS v3.3+)
- Remove @storybook/addons (deprecated, unused)
- Replace @floating-ui/react-dom-interactions with @floating-ui/react
- Upgrade @heroicons/react from v1.x to v2.x

Closes asyncapi#4983
@sammy200-ui sammy200-ui force-pushed the fix/cleanup-deprecated-dependencies branch from 95b764b to b42c8b0 Compare February 7, 2026 18:40
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2026

@sammy200-ui
Copy link
Contributor Author

@princerajpoot20 here are the evidence -
Screenshot 2026-02-08 at 12 15 10 AM
Screenshot 2026-02-08 at 12 15 34 AM
Screenshot 2026-02-08 at 12 15 51 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

[Chore]: Clean up deprecated and unused dependencies

4 participants