Skip to content

chore(deps): bump @base-ui/react to 1.6.0 and rename OTPFieldPreview to OTPField#801

Closed
orielhaim wants to merge 2 commits into
cosscom:mainfrom
orielhaim:main
Closed

chore(deps): bump @base-ui/react to 1.6.0 and rename OTPFieldPreview to OTPField#801
orielhaim wants to merge 2 commits into
cosscom:mainfrom
orielhaim:main

Conversation

@orielhaim

@orielhaim orielhaim commented Jun 21, 2026

Copy link
Copy Markdown

Base UI 1.6.0 graduates OTP Field out of preview. The namespace export is now OTPField instead of OTPFieldPreview. This PR bumps @base-ui/react to ^1.6.0 and updates the coss registry component, package source, and docs to use the new name.

Changes

  • Bump @base-ui/react to 1.6.0 in apps/ui and packages/ui.
  • Update otp-field.tsx (registry + package) to import OTPField as OTPFieldPrimitive from @base-ui/react/otp-field.
  • Refresh docs, migration guide, and skills references to reference OTPField instead of OTPFieldPreview, and drop the "preview" note on the component page.
  • Add a June 21, 2026 changelog entry with a migration diff and agent-friendly migration prompt.
  • Minor housekeeping bumps to react-day-picker, lint-staged, and turbo.

Open in Devin Review

@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

@orielhaim is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

"use client";

import { OTPFieldPreview as OTPFieldPrimitive } from "@base-ui/react/otp-field";
import { OTPField as OTPFieldPrimitive } from "@base-ui/react/otp-field";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Registry build artifact not regenerated — users get stale OTPFieldPreview import

The source files (apps/ui/registry/default/ui/otp-field.tsx and packages/ui/src/components/otp-field.tsx) were updated to import OTPField from @base-ui/react/otp-field, but the pre-built registry JSON at apps/ui/public/r/otp-field.json was not regenerated. It still contains import { OTPFieldPreview as OTPFieldPrimitive } from "@base-ui/react/otp-field". When users run npx shadcn@latest add @coss/otp-field, they will receive this stale code that references OTPFieldPreview — a named export that no longer exists in @base-ui/react 1.6.0. The component will fail to import at build time. Per apps/ui/CONTRIBUTING.md and apps/ui/AGENTS.md (section 16), bun run registry:build must be run after modifying UI primitives.

Prompt for agents
The pre-built registry JSON file at apps/ui/public/r/otp-field.json still contains the old import statement using OTPFieldPreview. After changing the source import in apps/ui/registry/default/ui/otp-field.tsx from OTPFieldPreview to OTPField, you need to regenerate the registry artifacts by running bun run registry:build from the apps/ui directory. This will update apps/ui/public/r/otp-field.json (and any other generated files) so that the content field reflects the new OTPField import. Without this step, users installing the component via npx shadcn@latest add @coss/otp-field will receive broken code that references a non-existent export from @base-ui/react 1.6.0.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@orielhaim

Copy link
Copy Markdown
Author

Can you do a review again?

@pasqualevitiello

Copy link
Copy Markdown
Contributor

Thanks for your contribution but there are way too many file changes, very hard to review. Closed in favor of #805

@orielhaim

Copy link
Copy Markdown
Author

Obviously there are a lot of file changes because you just asked me to build the registry........

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants