Skip to content

Commit

Permalink
Deprecate internal use modules (#1963)
Browse files Browse the repository at this point in the history
<!--
  How to write a good PR title:
- Follow [the Conventional Commits
specification](https://www.conventionalcommits.org/en/v1.0.0/).
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

## Self Checklist

- [x] I wrote a PR title in **English** and added an appropriate
**label** to the PR.
- [x] I wrote the commit message in **English** and to follow [**the
Conventional Commits
specification**](https://www.conventionalcommits.org/en/v1.0.0/).
- [x] I [added the
**changeset**](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
about the changes that needed to be released. (or didn't have to)
- [x] I wrote or updated **documentation** related to the changes. (or
didn't have to)
- [x] I wrote or updated **tests** related to the changes. (or didn't
have to)
- [x] I tested the changes in various browsers. (or didn't have to)
  - Windows: Chrome, Edge, (Optional) Firefox
  - macOS: Chrome, Edge, Safari, (Optional) Firefox

## Related Issue
<!-- Please link to issue if one exists -->

- Fixes #1798

## Summary
<!-- Please brief explanation of the changes made -->

Deprecate internal use modules

## Details
<!-- Please elaborate description of the changes -->

from
[1926041](1926041)

### Breaking change? (Yes/No)
<!-- If Yes, please describe the impact and migration path for users -->

Yes
  • Loading branch information
sungik-choi authored Feb 1, 2024
1 parent fe5f125 commit e839652
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 10 additions & 0 deletions .changeset/long-birds-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@channel.io/bezier-react": major
---

**Breaking Changes: Deprecated modules for internal use**

- No longer provides `useEventHandler` and `useMergeRefs` hook.
- No longer provides `useId` hook. Use `useId` hook of `react` instead.
- No longer provides `getRootElement` hook. Use `useWindow` hook instead.
- No longer provides `StyleUtils` and `StringUtils` utils.
9 changes: 0 additions & 9 deletions packages/bezier-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ export * from '~/src/components/LegacyStack'
export * from '~/src/components/LegacyTooltip'

export * from '~/src/types/ComponentProps'
export * from '~/src/types/Utils'
export * from '~/src/types/Token'

export { default as useEventHandler } from '~/src/hooks/useEventHandler'
export { default as useMergeRefs } from '~/src/hooks/useMergeRefs'
export { default as useId } from '~/src/hooks/useId'

export { getRootElement } from '~/src/utils/dom'
export * as StyleUtils from '~/src/utils/style'
export * as StringUtils from '~/src/utils/string'

export * from '~/src/features'
3 changes: 0 additions & 3 deletions packages/bezier-react/src/types/Utils.ts

This file was deleted.

0 comments on commit e839652

Please sign in to comment.