-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ProgressBarSize
, ProgressBarVariant
string literal type and deprecate enum
#1595
Add ProgressBarSize
, ProgressBarVariant
string literal type and deprecate enum
#1595
Conversation
🦋 Changeset detectedLatest commit: b6ac626 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
packages/bezier-react/src/components/ProgressBar/ProgressBar.stories.tsx
Show resolved
Hide resolved
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1595 +/- ##
==========================================
- Coverage 87.00% 86.94% -0.06%
==========================================
Files 281 281
Lines 3879 3877 -2
Branches 817 817
==========================================
- Hits 3375 3371 -4
- Misses 430 432 +2
Partials 74 74
☔ View full report in Codecov by Sentry. |
Chromatic Report🚀 Congratulations! Your build was successful! |
breaking change 를 발생시키면 메이저 버전을 올려야 해서, |
minor version bump 를 위한 changset 은 필요할 것 같습니다! codemod 까지 포함하는 pr 이 될까요? 아니라면 제목에서 [WIP]은 없애도 될듯 합니다! |
레거시 대응도 했어야 하는데 생각치 못했네요... 👍 우선 enum과 string literal 타입 둘 다 사용할 수 있도록 두고, enum에
codemod 구현 후 changeset 추가해서 WIP 뗄 예정이었습니다 😅 우선 draft로 돌려두겠습니다! |
ProgressBarSize
, ProgressBarVariant
from enum to typesProgressBarSize
, ProgressBarVariant
from enum to string literal
codemod는 후속 PR에서 enum -> string literal을 제너릭하게 사용할 수 있도록 작성하겠습니다.
우선은 deprecated 태그만 달아두겠습니다. 🥲 |
Enum은 deprecated 표시가 명확히 잘 되어서, 그거로도 충분할 거 같습니다 👍 |
ProgressBarSize
, ProgressBarVariant
from enum to string literalProgressBarSize
, ProgressBarVariant
string literal type and deprecate enum
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @channel.io/bezier-react@1.13.0 ### Minor Changes - Add `preventHideOnOutsideClick` property to `Modal` component ([#1617](#1617)) by @yangwooseong ### Patch Changes - Fixes an issue where the height of `TextArea` component is not specified correctly. Modify the build settings to match the package.json exports fields change in 8.5.0 of `react-textarea-autosize`. ([#1637](#1637)) by @sungik-choi - Add `ProgressBarSize`, `ProgressBarVariant` string literal type and deprecate enum ([#1595](#1595)) by @Dogdriip ## bezier-figma-plugin@0.4.1 ### Patch Changes - Updated dependencies - @channel.io/bezier-react@1.13.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Self Checklist
CODEOWNERS
file.Related Issue
Summary
ProgressBar
컴포넌트의 SizeProps인ProgressBarSize
, VariantProps인ProgressBarVariant
에 enum 대신 string literal type이 들어갈 수 있도록 변경하고, enum을 deprecated 처리합니다.Details
Breaking change or not (Yes/No)
ProgressBarSize
,ProgressBarVariant
enum 사용처에서 이를 string literal로 변경해주어야 합니다.References