Skip to content

build(deps): make four Radix and sonner peers optional - #64

Merged
TheGreatAxios merged 1 commit into
cl-9102-react-ui-stop-exporting-lib-internals-from-root-barrelfrom
cl-9109-react-ui-mark-tooltip-dropdown-menu-and-sonner-peers
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9102-react-ui-stop-exporting-lib-internals-from-root-barrelfrom
cl-9109-react-ui-mark-tooltip-dropdown-menu-and-sonner-peers

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Stacked on #63; merge that first.

Summary

  • @radix-ui/react-dialog, @radix-ui/react-dropdown-menu, @radix-ui/react-tooltip and sonner are optional in peerDependenciesMeta (breaking).
  • ui/dialog, ui/command-palette, ui/mic-permission-dialog, ui/menu, ui/tooltip and ui/toast are in BARREL_EXCLUDED (subpath-only). dep-guard reads the optional peers from package.json, so the barrel check follows the manifest.
  • README imports Toaster/toast from @corbits/react-ui/ui/toast and has a table of which subpath needs which peer; IMPLEMENTATION.md and CHANGELOG match.

Verification

dep-guard is clean for all four peers; typecheck, lint, bun test and bun run build pass.

Closes CL-9109
Closes CL-9318

@TheGreatAxios
TheGreatAxios force-pushed the cl-9109-react-ui-mark-tooltip-dropdown-menu-and-sonner-peers branch from c3f2f76 to 376d59f Compare September 25, 2026 21:55
@TheGreatAxios
TheGreatAxios force-pushed the cl-9109-react-ui-mark-tooltip-dropdown-menu-and-sonner-peers branch from 376d59f to 71d03a9 Compare September 26, 2026 01:32
@TheGreatAxios TheGreatAxios changed the title Make dialog, dropdown-menu, tooltip and sonner optional peers refactor!: make four Radix and sonner peers optional Sep 26, 2026
@radix-ui/react-dialog, @radix-ui/react-dropdown-menu,
@radix-ui/react-tooltip and sonner are imported only by subpath-only
modules kept out of the root barrel. dep-guard reads the optional
peers from peerDependenciesMeta.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9109-react-ui-mark-tooltip-dropdown-menu-and-sonner-peers branch from 71d03a9 to 45ac2ac Compare September 26, 2026 01:37
@TheGreatAxios TheGreatAxios changed the title refactor!: make four Radix and sonner peers optional build(deps): make four Radix and sonner peers optional Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #74 September 26, 2026 01:57
@TheGreatAxios
TheGreatAxios merged commit fa46566 into main Sep 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant