Skip to content

Commit

Permalink
feat: setup lerna (#21)
Browse files Browse the repository at this point in the history
* chore: update dependency
* skip: lerna settings
* chore(release): release packages v0.1.1
* fix: react types resolutions
  • Loading branch information
bang9 authored Apr 26, 2022
1 parent b55d624 commit 1382c42
Show file tree
Hide file tree
Showing 21 changed files with 949 additions and 684 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ build

env.ts
*.app.dSYM.zip
lerna-debug.log
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.1.1 (2022-04-26)


### Bug Fixes

* added ios env checker ([d42d0ac](https://github.com/sendbird/sendbird-uikit-react-native/commit/d42d0acf4b1d9e26044ea5e0d1db3c722ef700fb))
* android build command typo ([2f81938](https://github.com/sendbird/sendbird-uikit-react-native/commit/2f819387417f2dfe1f0d17e398c87d68dfa6775a))
* android service account path ([dfec8fc](https://github.com/sendbird/sendbird-uikit-react-native/commit/dfec8fc45a2db02e822f74cabd95d8f6a23b9e7f))
* changed ios match git authorization method to ssh ([a293a75](https://github.com/sendbird/sendbird-uikit-react-native/commit/a293a75345fc23f8cc06e2c6a0f040df657eb64a))
* **chat-hooks:** added guard to useGroupChannelListWithQuery init ([5ec16d9](https://github.com/sendbird/sendbird-uikit-react-native/commit/5ec16d927dd1381bb9c2c8cdafc8f7b614cdded5))
* **chat-react-hooks:** wrong if condition ([4f93e6c](https://github.com/sendbird/sendbird-uikit-react-native/commit/4f93e6c5fde4e4e3c26b214934d9c115f3ce452b))
* **core:** added performance warning and create patch to sample ([c366f28](https://github.com/sendbird/sendbird-uikit-react-native/commit/c366f28a1aea06d896a753a47df88c67e81e5bdc))
* **core:** exports expo platform service creators ([c98f776](https://github.com/sendbird/sendbird-uikit-react-native/commit/c98f776d41040cdd11cc159dcdb2e7449b91106c))
* **core:** fixed landscape layout ([3d2ce2d](https://github.com/sendbird/sendbird-uikit-react-native/commit/3d2ce2d4249b197d81e4bb241b63e9014a5654fc))
* fixed channel preview update properly ([b8b3d53](https://github.com/sendbird/sendbird-uikit-react-native/commit/b8b3d536d80b1f15b39e47e428d648da4f513831))
* fixed pod version ([944253e](https://github.com/sendbird/sendbird-uikit-react-native/commit/944253e3958734bf307e12f9278e2ed31f2aa67d))
* **foundation:** added max-width to toast ([740a16b](https://github.com/sendbird/sendbird-uikit-react-native/commit/740a16b0efe58b2804c0f81f49f3b146824d9732))
* **foundation:** export Switch component ([1af53a6](https://github.com/sendbird/sendbird-uikit-react-native/commit/1af53a64b728469b232727e67cd38b070fe9fe7b))
* **foundation:** implement android modal onDismiss ([0c82d60](https://github.com/sendbird/sendbird-uikit-react-native/commit/0c82d60c8429ec35b8bde13a9caf1ffc8fbdff66))
* **foundation:** position of keyboard avoided modal is incorrect when orientation is changed on android ([b63ce2c](https://github.com/sendbird/sendbird-uikit-react-native/commit/b63ce2c69eb36d3b8207009d83794d1912badfe2))
* **foundation:** relocation files ([b0d7426](https://github.com/sendbird/sendbird-uikit-react-native/commit/b0d7426d00153d2dcb136ae9bef5de2bb34ddbe2))
* ios fastlane env ([09f042c](https://github.com/sendbird/sendbird-uikit-react-native/commit/09f042c84e6cb42ec1c0366c3c0942f0defddadd))
* ios pods cache dir path ([841f5b3](https://github.com/sendbird/sendbird-uikit-react-native/commit/841f5b3c98177c5f8d05de281dc59aa74445bffb))
* lint warnings ([caeff54](https://github.com/sendbird/sendbird-uikit-react-native/commit/caeff5405451745466d87546b104a84848ff3a7e))
* nvm error on ios build phase ([5d724aa](https://github.com/sendbird/sendbird-uikit-react-native/commit/5d724aa58cd185528aefba7b1cb7a5d29acf1b36))
* oom on android build ([15c2f4b](https://github.com/sendbird/sendbird-uikit-react-native/commit/15c2f4b96a72cc747cc6276f32012d717f3def98))
* remove default storybook components ([e6eca26](https://github.com/sendbird/sendbird-uikit-react-native/commit/e6eca269df4641faf5ebb8a0f91be2e0aa000324))
* **sample:** fix storybook path ([91c0d4f](https://github.com/sendbird/sendbird-uikit-react-native/commit/91c0d4f4ea250986ab6e3eacb49f7006d41e32c0))
* **sample:** grouping stories ([513ca25](https://github.com/sendbird/sendbird-uikit-react-native/commit/513ca25a5e3e3072a312b37194c53ec89c1a82c8))
* update ruby ([fcd85f0](https://github.com/sendbird/sendbird-uikit-react-native/commit/fcd85f0bfca02228a0b928ce034c6270e4311d89))
* **utils:** added react-native dependency ([d6ccf01](https://github.com/sendbird/sendbird-uikit-react-native/commit/d6ccf019f9722c664d2ba00befe53c455466d244))
* **utils:** pubsub enhancement ([2006249](https://github.com/sendbird/sendbird-uikit-react-native/commit/2006249e34777293b04dd06f9186cf1436298c6e))


### Features

* added android ([ec60009](https://github.com/sendbird/sendbird-uikit-react-native/commit/ec60009f6e6d72451ab4add3bf0bda96c9bf4211))
* added default locale string set ([1c66add](https://github.com/sendbird/sendbird-uikit-react-native/commit/1c66add5f1afc4986b13c4783c738c713136a753))
* added ESBuild to sample metro bundler minifier ([a54de63](https://github.com/sendbird/sendbird-uikit-react-native/commit/a54de63f51f05026c4eb91c3e435c040ee8dcb56))
* added ios ([520d769](https://github.com/sendbird/sendbird-uikit-react-native/commit/520d769490e0388a32a1a2e8f816b3eb52bd61fa))
* added message components ([682cdb4](https://github.com/sendbird/sendbird-uikit-react-native/commit/682cdb433e316f03797b2021c0eba8a313b7cf8e))
* added sample project for real-time development ([e6a9e25](https://github.com/sendbird/sendbird-uikit-react-native/commit/e6a9e25f59368d7f5ea74422fc637e4a354e30e7))
* added storybook ([eddf162](https://github.com/sendbird/sendbird-uikit-react-native/commit/eddf162029268390233d2a2de23fb6f081e3c432))
* added theme typography ([6405333](https://github.com/sendbird/sendbird-uikit-react-native/commit/640533395f0de32cf41bd5330924a3c0a9e38bae))
* added toast ([ddd8de6](https://github.com/sendbird/sendbird-uikit-react-native/commit/ddd8de642cfc911f3c1931edfc6ed94b8dd88b45))
* **chat-hooks:** added channel list local cache hook ([77685bc](https://github.com/sendbird/sendbird-uikit-react-native/commit/77685bcd88b8442b13b7d48cde89960442162be6))
* **chat-hooks:** added enableCollection options to groupChannel hooks ([8fc2454](https://github.com/sendbird/sendbird-uikit-react-native/commit/8fc245485f51feceb2ae7cb0a32ca5cbb9f372d7))
* **core:** added group channel members fragment ([815278d](https://github.com/sendbird/sendbird-uikit-react-native/commit/815278dc4a0a2b679dbcf1992342d9d1756f7453))
* **core:** added message handlers ([2d9f1c4](https://github.com/sendbird/sendbird-uikit-react-native/commit/2d9f1c40d273df9c73b0ad4d8b9d6794af73a576))
* **core:** added typing indicator to group channel ([86d835d](https://github.com/sendbird/sendbird-uikit-react-native/commit/86d835d95034ce20b4471689c603a4f7a7d5a648))
* **core:** implement channel menu to groupChannelList ([debb6d8](https://github.com/sendbird/sendbird-uikit-react-native/commit/debb6d8144c598eb50a124daa5d49641d4bbf1f1))
* **core:** implement send message and file pick flow ([2cc40f8](https://github.com/sendbird/sendbird-uikit-react-native/commit/2cc40f895b59764bd74e8f27513ebb7131721ca1))
* create modularization template script ([ccf022d](https://github.com/sendbird/sendbird-uikit-react-native/commit/ccf022d1da90a88573a1c64c508ad93e22a816d8))
* create type selector ([6139231](https://github.com/sendbird/sendbird-uikit-react-native/commit/6139231e16dc1d78336fb8a1ce0677c43eaf6c30))
* extract foundation package ([41245cc](https://github.com/sendbird/sendbird-uikit-react-native/commit/41245ccff4f76efee2e18e76f34517eb93050798))
* **foundation:** added Avatar component ([0e451c3](https://github.com/sendbird/sendbird-uikit-react-native/commit/0e451c301ba51ae0bff7bb8cb576dbda79dcaeed))
* **foundation:** added Badge component ([7b63d90](https://github.com/sendbird/sendbird-uikit-react-native/commit/7b63d90912ce90dbdc7a5cea580f37b4e711d501))
* **foundation:** added BottomSheet component ([c208710](https://github.com/sendbird/sendbird-uikit-react-native/commit/c208710eea9f8a7c165fa7af820a1972965cb75e))
* **foundation:** added dialogue ([e2c4abc](https://github.com/sendbird/sendbird-uikit-react-native/commit/e2c4abc6bb56aecebefbc11a041539707eb48a83))
* **foundation:** added Placeholder component ([e68d9a6](https://github.com/sendbird/sendbird-uikit-react-native/commit/e68d9a6f3747930c18b7cb5d8c4c8ec7c7915f47))
* **foundation:** added Prompt and Input component ([1bc173a](https://github.com/sendbird/sendbird-uikit-react-native/commit/1bc173af436782a3e6fd34b0d67665d2c44f25ad))
* **foundation:** implement gesture to slide type modal ([cc5af93](https://github.com/sendbird/sendbird-uikit-react-native/commit/cc5af93279bd6f13569daac5f9d83c4ef8c0e419))
* **foundation:** implement queued dialogs (action menu, alert) ([e5e7b24](https://github.com/sendbird/sendbird-uikit-react-native/commit/e5e7b2485c1e50391db602e05b35cabe282c7982))
* **sample:** added change nickname ([0eceb48](https://github.com/sendbird/sendbird-uikit-react-native/commit/0eceb48b4e365219906a101e7eaa167e498a87ee))
* **sample:** added change profile photo ([74ea450](https://github.com/sendbird/sendbird-uikit-react-native/commit/74ea450fc061212e3ba9d43910dbfcac96e98c89))
* **sample:** added create channel ([66e7ae9](https://github.com/sendbird/sendbird-uikit-react-native/commit/66e7ae9a035b3b46e58032ba8336bc93fe04131c))
* **sample:** added ios notification ([44ef9f7](https://github.com/sendbird/sendbird-uikit-react-native/commit/44ef9f70cd2bc38ba605c5fd8bf4e1d70cfe03d2))
* **sample:** added settings ui ([bb81801](https://github.com/sendbird/sendbird-uikit-react-native/commit/bb818015db8aaafa5ca3b0761b20bf4f1bf1c9fc))
* show palette and theme colors to sample app ([1b0cd55](https://github.com/sendbird/sendbird-uikit-react-native/commit/1b0cd5525e8f5716c52fa088a0aa38db36115ced))
* **uikit:** added message receipt ([9cafe11](https://github.com/sendbird/sendbird-uikit-react-native/commit/9cafe11c499196851dea1861eb29bf533737261b))
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ uikit

- add: `yarn workspace @sendbird/package add some-package`
- remove: `yarn workspace @sendbird/package remove some-package`

### Publish

- bump: `lerna version {major|minor|patch} [--no-git-tag-version] [--no-private]`
30 changes: 25 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
{
"packages": ["packages/*", "sample"],
"packages": [
"packages/*",
"sample"
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent",
"version": "0.1.1",
"command": {
"publish": {
"allowBranch": "main",
"conventionalCommits": true,
"createRelease": "github",
"message": "chore: publish",
"ignoreChanges": ["**/__tests__/**", "**/*.md"]
"message": "chore(release): publish %v"
},
"version": {
"allowBranch": [
"main",
"*/lerna"
],
"conventionalCommits": true,
"exact": true,
"gitRemote": "origin",
"message": "chore(release): release packages %s"
}
}
},
"ignoreChanges": [
"**/__template__/**",
"**/__tests__/**",
"**/*.md",
".circleci",
".github",
"sample/**"
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"react-test-renderer": "^17.0.2",
"typescript": "^4.5.4"
},
"dependencies": {},
"resolutions": {
"@types/react": "^17"
},
"jest": {
"testEnvironment": "node",
"moduleFileExtensions": [
Expand Down
34 changes: 34 additions & 0 deletions packages/chat-react-hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.1.1 (2022-04-26)


### Bug Fixes

* **chat-hooks:** added guard to useGroupChannelListWithQuery init ([5ec16d9](https://github.com/sendbird/sendbird-uikit-react-native/commit/5ec16d927dd1381bb9c2c8cdafc8f7b614cdded5))
* **chat-react-hooks:** wrong if condition ([4f93e6c](https://github.com/sendbird/sendbird-uikit-react-native/commit/4f93e6c5fde4e4e3c26b214934d9c115f3ce452b))
* fixed channel preview update properly ([b8b3d53](https://github.com/sendbird/sendbird-uikit-react-native/commit/b8b3d536d80b1f15b39e47e428d648da4f513831))
* **utils:** pubsub enhancement ([2006249](https://github.com/sendbird/sendbird-uikit-react-native/commit/2006249e34777293b04dd06f9186cf1436298c6e))


### Features

* added sample project for real-time development ([e6a9e25](https://github.com/sendbird/sendbird-uikit-react-native/commit/e6a9e25f59368d7f5ea74422fc637e4a354e30e7))
* added toast ([ddd8de6](https://github.com/sendbird/sendbird-uikit-react-native/commit/ddd8de642cfc911f3c1931edfc6ed94b8dd88b45))
* **chat-hooks:** added channel list local cache hook ([77685bc](https://github.com/sendbird/sendbird-uikit-react-native/commit/77685bcd88b8442b13b7d48cde89960442162be6))
* **chat-hooks:** added enableCollection options to groupChannel hooks ([8fc2454](https://github.com/sendbird/sendbird-uikit-react-native/commit/8fc245485f51feceb2ae7cb0a32ca5cbb9f372d7))
* **core:** added group channel members fragment ([815278d](https://github.com/sendbird/sendbird-uikit-react-native/commit/815278dc4a0a2b679dbcf1992342d9d1756f7453))
* **core:** added message handlers ([2d9f1c4](https://github.com/sendbird/sendbird-uikit-react-native/commit/2d9f1c40d273df9c73b0ad4d8b9d6794af73a576))
* **core:** added typing indicator to group channel ([86d835d](https://github.com/sendbird/sendbird-uikit-react-native/commit/86d835d95034ce20b4471689c603a4f7a7d5a648))
* **core:** implement channel menu to groupChannelList ([debb6d8](https://github.com/sendbird/sendbird-uikit-react-native/commit/debb6d8144c598eb50a124daa5d49641d4bbf1f1))
* **core:** implement send message and file pick flow ([2cc40f8](https://github.com/sendbird/sendbird-uikit-react-native/commit/2cc40f895b59764bd74e8f27513ebb7131721ca1))
* create modularization template script ([ccf022d](https://github.com/sendbird/sendbird-uikit-react-native/commit/ccf022d1da90a88573a1c64c508ad93e22a816d8))
* create type selector ([6139231](https://github.com/sendbird/sendbird-uikit-react-native/commit/6139231e16dc1d78336fb8a1ce0677c43eaf6c30))
* extract foundation package ([41245cc](https://github.com/sendbird/sendbird-uikit-react-native/commit/41245ccff4f76efee2e18e76f34517eb93050798))
* **foundation:** added Prompt and Input component ([1bc173a](https://github.com/sendbird/sendbird-uikit-react-native/commit/1bc173af436782a3e6fd34b0d67665d2c44f25ad))
* **sample:** added create channel ([66e7ae9](https://github.com/sendbird/sendbird-uikit-react-native/commit/66e7ae9a035b3b46e58032ba8336bc93fe04131c))
* **sample:** added settings ui ([bb81801](https://github.com/sendbird/sendbird-uikit-react-native/commit/bb818015db8aaafa5ca3b0761b20bf4f1bf1c9fc))
* **uikit:** added message receipt ([9cafe11](https://github.com/sendbird/sendbird-uikit-react-native/commit/9cafe11c499196851dea1861eb29bf533737261b))
6 changes: 3 additions & 3 deletions packages/chat-react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sendbird/chat-react-hooks",
"version": "0.1.0",
"version": "0.1.1",
"description": "React hooks that built with SendbirdChat SDK",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -37,10 +37,10 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@sendbird/uikit-utils": "^0.1.0"
"@sendbird/uikit-utils": "0.1.1"
},
"devDependencies": {
"@types/react": "^16.9.19",
"@types/react": "17.0.2",
"react": "^16.13.1",
"react-native-builder-bob": "^0.18.0",
"sendbird": "^3.1.9",
Expand Down
1 change: 1 addition & 0 deletions packages/chat-react-hooks/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { useUserList } from './common/useUserList';
export { usePushTrigger } from './common/usePushTrigger';
export { useTotalUnreadMessageCount } from './common/useTotalUnreadMessageCount';
export { useTotalUnreadChannelCount } from './common/useTotalUnreadChannelCount';
export { default as useInternalPubSub } from './common/useInternalPubSub';

export { useChannelHandler } from './handler/useChannelHandler';
export { useConnectionHandler } from './handler/useConnectionHandler';
Expand Down
Loading

0 comments on commit 1382c42

Please sign in to comment.