From ccb000891c7928a832b7bfcd65ae83f07511662c Mon Sep 17 00:00:00 2001 From: hemengke <23536175@qq.com> Date: Mon, 20 May 2024 14:59:51 +0800 Subject: [PATCH] chore: release --- packages/react-component/CHANGELOG.md | 7 +++++ packages/react-component/package.json | 2 +- packages/react-hook/CHANGELOG.md | 6 +++++ packages/react-hook/package.json | 2 +- packages/react-hook/src/index.ts | 39 ++++++++++++++++++++++++++- packages/react-route/CHANGELOG.md | 7 +++++ packages/react-route/package.json | 2 +- 7 files changed, 61 insertions(+), 4 deletions(-) diff --git a/packages/react-component/CHANGELOG.md b/packages/react-component/CHANGELOG.md index 99caa25..339dec0 100644 --- a/packages/react-component/CHANGELOG.md +++ b/packages/react-component/CHANGELOG.md @@ -1,5 +1,12 @@ # @minko-fe/react-component +## 0.2.6 + +### Patch Changes + +- Updated dependencies []: + - @minko-fe/react-hook@0.3.3 + ## 0.2.5 ### Patch Changes diff --git a/packages/react-component/package.json b/packages/react-component/package.json index c9544ce..87e9e8c 100644 --- a/packages/react-component/package.json +++ b/packages/react-component/package.json @@ -1,6 +1,6 @@ { "name": "@minko-fe/react-component", - "version": "0.2.5", + "version": "0.2.6", "description": "react-component", "type": "module", "keywords": [ diff --git a/packages/react-hook/CHANGELOG.md b/packages/react-hook/CHANGELOG.md index d9c727f..f65e83e 100644 --- a/packages/react-hook/CHANGELOG.md +++ b/packages/react-hook/CHANGELOG.md @@ -1,5 +1,11 @@ # @minko-fe/react-hook +## 0.3.3 + +### Patch Changes + +- react-use cjs support + ## 0.3.2 ### Patch Changes diff --git a/packages/react-hook/package.json b/packages/react-hook/package.json index 4b04f3e..5c19c32 100644 --- a/packages/react-hook/package.json +++ b/packages/react-hook/package.json @@ -1,6 +1,6 @@ { "name": "@minko-fe/react-hook", - "version": "0.3.2", + "version": "0.3.3", "description": "react-hook", "type": "module", "keywords": [ diff --git a/packages/react-hook/src/index.ts b/packages/react-hook/src/index.ts index 58fa9b5..21e7553 100644 --- a/packages/react-hook/src/index.ts +++ b/packages/react-hook/src/index.ts @@ -23,6 +23,8 @@ SOFTWARE. */ +import * as ReactUse from 'react-use' + export { clearCache, configResponsive, @@ -102,6 +104,41 @@ export { useWebSocket, useWhyDidYouUpdate, } from 'ahooks' +const { + useAsync, + useAsyncFn, + useAsyncRetry, + useBeforeUnload, + useCopyToClipboard, + useCss, + useCustomCompareEffect, + useDefault, + useError, + useEvent, + useFirstMountState, + useGetSet, + useGetSetState, + useHash, + useHoverDirty, + useIntersection, + useLockBodyScroll, + useMeasure, + usePageLeave, + usePermission, + usePinchZoom, + usePreviousDistinct, + useQueue, + useRaf, + useRafLoop, + useScrollbarWidth, + useScrolling, + useSearchParam, + useSlider, + useSpeech, + useStartTyping, + useWindowScroll, + useWindowSize, +} = ReactUse export { useAsync, useAsyncFn, @@ -136,7 +173,7 @@ export { useStartTyping, useWindowScroll, useWindowSize, -} from 'react-use' +} export { EventEmitter } from './useEventEmitter' export { createUseStorageState } from './createUseStorageState' diff --git a/packages/react-route/CHANGELOG.md b/packages/react-route/CHANGELOG.md index 698687b..9612f93 100644 --- a/packages/react-route/CHANGELOG.md +++ b/packages/react-route/CHANGELOG.md @@ -1,5 +1,12 @@ # @minko-fe/react-route +## 0.1.29 + +### Patch Changes + +- Updated dependencies []: + - @minko-fe/react-hook@0.3.3 + ## 0.1.28 ### Patch Changes diff --git a/packages/react-route/package.json b/packages/react-route/package.json index d801efa..a073003 100644 --- a/packages/react-route/package.json +++ b/packages/react-route/package.json @@ -1,6 +1,6 @@ { "name": "@minko-fe/react-route", - "version": "0.1.28", + "version": "0.1.29", "description": "react-route", "type": "module", "keywords": [