Skip to content

chore(react-avatar): archive the deprecated headless avatar package - #1894

Draft
junghyeonsu wants to merge 1 commit into
devfrom
chore/archive-react-avatar
Draft

chore(react-avatar): archive the deprecated headless avatar package#1894
junghyeonsu wants to merge 1 commit into
devfrom
chore/archive-react-avatar

Conversation

@junghyeonsu

Copy link
Copy Markdown
Contributor

@seed-design/react-avatarpackages/archive로 옮기고 배포를 중단합니다. v3.0 대상이라 draft로 둡니다.

왜 지금이 아니라 v3.0인가

@seed-design/react/primitive 엔트리에서 이 패키지를 통째로 re-export하고 있습니다.

// packages/react/src/primitive.ts
export * from "@seed-design/react-avatar";

이걸 지우면 useAvatar·AvatarRoot·AvatarImage·AvatarFallback·useAvatarContext가 공개 API에서 사라집니다. 2.0 이후 breaking은 메이저에서만 하기로 되어 있어 v3.0에 답니다.

변경 내용

  • packages/react-headless/avatarpackages/archive/avatar. packages/archive/*는 루트 workspaces glob에 없어서, 옮기는 것만으로 빌드·테스트·배포 대상에서 빠집니다.
  • packages/reactdependenciesprimitive.ts re-export 제거
  • changeset: @seed-design/react major

영향 범위

스타일이 적용된 Avatar영향 없습니다. 이미 @seed-design/react-image 위에 올라가 있고 useAvatar를 쓴 적이 없습니다.

// packages/react/src/components/Avatar/Avatar.tsx
import { Image } from "@seed-design/react-image";

@seed-design/react/primitive에서 avatar 헤드리스를 직접 가져다 쓰던 경우에만 마이그레이션이 필요하고, 대응표는 changeset에 있습니다.

검증

  • bun install@seed-design/react에서 1개 패키지 제거됨
  • bun --filter @seed-design/react build — 통과
  • bun test packages/react — 920개 통과
  • 레포 전체에 react-avatar 참조 없음 (아카이브된 패키지 자신 제외)

머지 전 확인할 것

관련: #1791 (같은 로딩 동작 수정을 useImage에만 반영하고 이 패키지는 손대지 않기로 한 PR)

🤖 Generated with Claude Code

Move packages/react-headless/avatar to packages/archive/avatar, which
sits outside the workspaces glob, so it stops being built, tested and
published.

@seed-design/react re-exported the package wholesale from its /primitive
entry, so dropping it is a breaking change on that entry and belongs in
v3.0. The styled Avatar is unaffected — it has been built on
@seed-design/react-image for a while and never touched useAvatar.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@junghyeonsu junghyeonsu added this to the v3.0 milestone Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d0998d25-5166-4911-99fb-e08b219ba512

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f91a361

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@seed-design/react Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Alpha Preview (Stackflow SPA)

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Alpha Preview (Storybook)

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Alpha Preview (Docs)

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