본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Migration guides 마이그레이션 가이드

원문 보기 위키 갱신

Primer ViewComponents는 성숙해짐에 따라 정기적으로 deprecated(더 이상 사용 권장 안 함)됩니다. 아래 가이드는 컴포넌트 업그레이드를 수행하는 방법을 자세히 설명합니다.

출처: 문서

본문

Primer ViewComponents는 성숙해짐에 따라 정기적으로 deprecated됩니다. 아래 가이드는 컴포넌트 업그레이드를 수행하는 방법을 자세히 설명합니다.

Primer CSS에서 마이그레이션하기 (Migrating from Primer CSS)

많은 Primer CSS 사용 사례가 Primer ViewComponents로 지원됩니다.

Primer CSS 클래스에서 ViewComponents로 마이그레이션할 때 이 매핑을 사용해 구현을 안내받으세요. 이 목록에는 현재 stable 상태인 컴포넌트가 포함됩니다.

Primer CSS Class ViewComponent Guide State
Primer::Beta::State
breadcrumb-item Primer::Beta::Breadcrumbs
Counter Primer::Beta::Counter
Subhead Primer::Beta::Subhead
blankslate Primer::Beta::Blankslate
.tooltipped Primer::Alpha::Tooltip and other options Migrating from .tooltipped
SelectMenu Primer::Alpha::SelectPanel Migrating from SelectMenu

이제 사용 권장 안 함(Deprecated) 컴포넌트 업그레이드하기 (Upgrading deprecated components)

Primer ViewComponents가 업데이트되면서 Rubocop이나 다른 도구로 자동 수정할 수 없는 breaking changes와 deprecations이 자주 발생합니다. 이 가이드들은 특정 컴포넌트의 업그레이드 과정을 안내합니다.

Deprecated Component Replacement Component Guide
Primer::ButtonComponent Primer::Beta::Button Upgrade to Primer::Beta::Button
Primer::LayoutComponent Primer::Alpha::Layout Upgrade to Primer::Alpha::Layout
Primer::LocalTime Primer::Beta::RelativeTime Upgrade to Primer::Beta::RelativeTime
Primer::TimeAgoComponent Primer::Beta::RelativeTime Upgrade to Primer::Beta::TimeAgo
Primer::Truncate Primer::Beta::Truncate Upgrade to Primer::Beta::Truncate
details-dialog Primer::Alpha::Dialog Upgrade to Primer::Alpha::Dialog

더 알아보기 (Learn more)

  • Primer CSS 클래스에서 ViewComponents로 마이그레이션할 때 위 매핑 표를 참고하세요.
  • 각 deprecated 컴포넌트의 업그레이드 가이드를 방문해 인자(argument)와 슬롯 이름 변경을 확인하세요.
  • 컴포넌트를 교체하기 전에 대체 컴포넌트의 상태(Stable/Alpha/Beta)와 지침을 확인하세요.