chore(ui): migrate to the renamed @base-ui/react package - #3
Merged
Conversation
`@base-ui-components/react` is deprecated on npm ("Package was renamed to
@base-ui/react") and frozen at 1.0.0-rc.0, which this app pinned exactly. The
Nebari design system has already moved to `@base-ui/react`, so our components
were built on a primitive package the design system no longer targets.
Swap the dependency for `@base-ui/react` ^1.6.0 and update the import specifier
in all 15 primitive wrappers. No API changes were required — `tsc -b` and the
vite build pass unchanged despite the app exercising a wide surface (Toast,
Slider, Tabs, Tooltip, Avatar, Radio, Checkbox, Menu, Select, Field).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@base-ui-components/reactis deprecated on npm — "Package was renamed to@base-ui/react" — and frozen at1.0.0-rc.0, which this app pinned exactly. The Nebari design system has already moved to@base-ui/react^1.6.0, so our Figma-spec components were sitting on a primitive package the design system no longer targets.Changes
package.json:@base-ui-components/react@1.0.0-rc.0(exact) →@base-ui/react@^1.6.0(caret, matching the design system)src/ui/:avatar,badge,button,checkbox,dialog,dropdown-menu,field,input,radio-group,select,slider,switch,tabs,toast,tooltipNo API changes were required, despite the app exercising a wide slice of Base UI (
Toast,Slider,Tabs,Tooltip,Avatar,Radio/RadioGroup,Checkbox/CheckboxGroup,Menu,Select,Field,useRender). The rc.0 → 1.6.0 jump is source-compatible for everything here.Verification
npm run build(tsc -b && vite build) — cleanThis repo has no test or lint script, so the type-check inside
buildis the gate. Worth a click-through of the dialog / dropdown / toast / tooltip surfaces before merge, since runtime behavior isn't covered by tests.🤖 Generated with Claude Code