v3.8.2
- 🔥 feat: add useTheme hook by @ianzone in #2617
- 🔥 feat: support for array as event parameter in useEventListener by @askwuxue in #2598
- 🔥 feat: support useInfiniteScroll scroll to top by @jaluik in #2565
- 🐛 fix: Compatible with the case where props is null in useControllableValue by @mmmml-zhao in #2636
- 🐛 fix: When manual=true, defaultParam will not populate the default values in form. by @askwuxue in #2594
- 🛠 chore: Wrap the second parameter of the return value from useSetState with useMemoriedFn. by @askwuxue in #2592
- 🛠 chore: Replace prettier with biome by @ianzone in #2629
- 🛠 chore: Update pnpm to v9 by @ianzone in #2621
- 🔥 feat: 新增 hook useTheme by @ianzone in #2617
- 🔥 feat: useEventListener 事件支持传入数组参数 by @askwuxue in #2598
- 🔥 feat: useInfiniteScroll 支持了direction, 提供向上滚动加载的支持 by @jaluik in #2565
- 🐛 fix: 兼容了 useControllableValue 的 props 为 null 的情况 by @mmmml-zhao in #2636
- 🐛 fix: useAntdTable 在 manual=true 的情况下 defaultParam 不会填充表单默认值 by @askwuxue in #2594
- 🛠 chore: 使用 useMemoriedFn 包装 useSetState 返回值中的第二个参数 by @askwuxue in #2592
- 🛠 chore: 使用 biome 替换 prettier by @ianzone in #2629
- 🛠 chore: 更新 pnpm 至 v9 by @ianzone in #2621
- @ianzone made their first contribution in #2621
- @mmmml-zhao made their first contribution in #2636
- @jaluik made their first contribution in #2565
Full Changelog: https://github.com/alibaba/hooks/compare/v3.8.1...v3.8.2
v3.8.1
- 🐛 fix(useResponse): adds default export by @CJY0208 in https://github.com/alibaba/hooks/pull/2555
- 🐛 fix(useSelections):
setSelected
should support non-array value by @liuyib in https://github.com/alibaba/hooks/pull/2559 - 🐛 fix(useResetState): reset random initial value incorrectly by @hemengke1997 in https://github.com/alibaba/hooks/pull/2562
- 🐛 fix: resolves depsEqual performance issues by @caorushizi in https://github.com/alibaba/hooks/pull/2578
- 🐛 fix:
TypeError: props.hasOwnProperty is not a function
by @ShaofeiZi in https://github.com/alibaba/hooks/pull/2596 - 🐛 fix: resolves useRquest debounce issue by @ruixingshi in https://github.com/alibaba/hooks/pull/2606
- 🐛 fix: solve the compatibility issue of useLongPress on desktop Safari by @mscststs in https://github.com/alibaba/hooks/pull/2602
- 🛠 chore(useRequest): the official useRequest hooks documentation has an error. In version 2, the option parameter should be throwOnError by @chovrio in https://github.com/alibaba/hooks/pull/2563
- 🛠 chore: bump js-cookie to ^3.0.5 by @fisherspy in https://github.com/alibaba/hooks/pull/2600
- 🤖 ci: "intall" word error, should be "install" by @long36708 in https://github.com/alibaba/hooks/pull/2587
- 🤖 ci: change node.js version to 18, 20 and update actions version by @liuyib in https://github.com/alibaba/hooks/pull/2604
- ⚡ test: update useLatest test case by @FEliuyg in https://github.com/alibaba/hooks/pull/2586
- 📚 docs: fix the Chinese mirror by @zhangmo8 in https://github.com/alibaba/hooks/pull/2608
- 🐛 fix(useResponse): 添加默认导出,由 @CJY0208 提交于 https://github.com/alibaba/hooks/pull/2555
- 🐛 fix(useSelections):
setSelected
应该支持非数组值,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2559 - 🐛 fix(useResetState): 重置随机初始值错误,由 @hemengke1997 提交于 https://github.com/alibaba/hooks/pull/2562
- 🐛 fix: 解决 depsEqual 性能问题,由 @caorushizi 提交于 https://github.com/alibaba/hooks/pull/2578
- 🐛 fix: 修复
TypeError: props.hasOwnProperty is not a function
由 @ShaofeiZi 提交于 https://github.com/alibaba/hooks/pull/2596 - 🐛 fix: 解决 useRquest 防抖问题,由 @ruixingshi 提交于 https://github.com/alibaba/hooks/pull/2606
- 🐛 fix: 解决 useLongPress 在桌面端 Safari 不兼容的问题,由 @mscststs 提交于 https://github.com/alibaba/hooks/pull/2602
- 🛠 chore(useRequest): 官方文档 useRequest hooks 文案错误,v2 中的 option 参数应该是 throwOnError,由 @chovrio 提交于 https://github.com/alibaba/hooks/pull/2563
- 🛠 chore: 将 js-cookie 升级到 ^3.0.5,由 @fisherspy 提交于 https://github.com/alibaba/hooks/pull/2600
- 🤖 ci: "intall" 单词错误,应为 "install",由 @long36708 提交于 https://github.com/alibaba/hooks/pull/2587
- 🤖 ci: 将 node.js 版本更改为 18、20 并更新 actions 版本,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2604
- ⚡ test: 更新 useLatest 测试用例,由 @FEliuyg 提交于 https://github.com/alibaba/hooks/pull/2586
- 📚 docs: 修复中文镜像,由 @zhangmo8 提交于 https://github.com/alibaba/hooks/pull/2608
- @chovrio made their first contribution in https://github.com/alibaba/hooks/pull/2563
- @caorushizi made their first contribution in https://github.com/alibaba/hooks/pull/2578
- @long36708 made their first contribution in https://github.com/alibaba/hooks/pull/2587
- @FEliuyg made their first contribution in https://github.com/alibaba/hooks/pull/2586
- @ShaofeiZi made their first contribution in https://github.com/alibaba/hooks/pull/2596
- @mscststs made their first contribution in https://github.com/alibaba/hooks/pull/2602
- @zhangmo8 made their first contribution in https://github.com/alibaba/hooks/pull/2608
- @ruixingshi made their first contribution in https://github.com/alibaba/hooks/pull/2606
- @fisherspy made their first contribution in https://github.com/alibaba/hooks/pull/2600
Full Changelog: https://github.com/alibaba/hooks/compare/v3.8.0...v3.8.1
v3.8.0
- ✨ feat(useStoage): listen to
storage
event by @vaakian in https://github.com/alibaba/hooks/pull/2298 - ✨ feat(useSelections): support object array by @liuyib in https://github.com/alibaba/hooks/pull/2485
- ✨ feat(useDynamicList): add
batchRemove
method by @xiaozisong in https://github.com/alibaba/hooks/pull/2340 - ✨ feat(useSelections): add clearAll result by @lich-yoo in https://github.com/alibaba/hooks/pull/2357
- 🐛 fix(type): fixed up some types that are non-standard and errors on
useExteneral
hook by @LonelyFellas in https://github.com/alibaba/hooks/pull/2508 - 🐛 fix(useVirtualList): get correct offset when itemHeight is fixed by @leedawn in https://github.com/alibaba/hooks/pull/2279
- 🐛 fix(useAntdTable): type of Params by @conorzhong in https://github.com/alibaba/hooks/pull/2377
- 🔄 perf(createUseStorageState): avoid setState being invoked twice by @liuyib in https://github.com/alibaba/hooks/pull/2532
- 🎨 style(utils): add default return value to
checkIfAllInShadow
by @enson0131 in https://github.com/alibaba/hooks/pull/2529 - ⚡ test(useSelections): fix test case error by @liuyib in https://github.com/alibaba/hooks/pull/2536
- 🛠 chore(useLatest): add a default state for comparison in useLatest demo by @shfshanyue in https://github.com/alibaba/hooks/pull/2523
- ✨ feat(useStoage): 监听
storage
事件,由 @vaakian 提交于 https://github.com/alibaba/hooks/pull/2298 - ✨ feat(useSelections): 支持对象数组,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2485
- ✨ feat(useDynamicList): 添加
batchRemove
方法,由 @xiaozisong 提交于 https://github.com/alibaba/hooks/pull/2340 - ✨ feat(useSelections): 添加清除所有结果,由 @lich-yoo 提交于 https://github.com/alibaba/hooks/pull/2357
- 🐛 fix(type): 修复
useExteneral
hook 上的一些非标准和错误类型,由 @LonelyFellas 提交于 https://github.com/alibaba/hooks/pull/2508 - 🐛 fix(useVirtualList): 当 itemHeight 固定时获取正确的偏移量,由 @leedawn 提交于 https://github.com/alibaba/hooks/pull/2279
- 🐛 fix(useAntdTable): 修复 Params 的类型问题,由 @conorzhong 提交于 https://github.com/alibaba/hooks/pull/2377
- 🔄 perf(createUseStorageState): 避免 setState 被调用两次,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2532
- 🎨 style(utils): 为
checkIfAllInShadow
添加默认返回值,由 @enson0131 提交于 https://github.com/alibaba/hooks/pull/2529 - ⚡ test(useSelections): 修复测试用例错误,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2536
- 🛠 chore(useLatest): 在 useLatest demo 中添加一个默认状态用于比较,由 @shfshanyue 提交于 https://github.com/alibaba/hooks/pull/2523
- @LonelyFellas made their first contribution in https://github.com/alibaba/hooks/pull/2508
- @conorzhong made their first contribution in https://github.com/alibaba/hooks/pull/2377
- @leedawn made their first contribution in https://github.com/alibaba/hooks/pull/2279
- @enson0131 made their first contribution in https://github.com/alibaba/hooks/pull/2529
- @xiaozisong made their first contribution in https://github.com/alibaba/hooks/pull/2340
- @lich-yoo made their first contribution in https://github.com/alibaba/hooks/pull/2357
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.11...v3.8.0
v3.7.11
- 🐛 fix(useAntdTable): dynamic setting ready failed by @guaijie in https://github.com/alibaba/hooks/pull/2489
- 🐛 fix(useCountDown): targetDate resets leftTime by @joe-leong in https://github.com/alibaba/hooks/pull/2346
- ♻️ refactor: replace lodash/isEqual with react-fast-compare by @guoyunhe in https://github.com/alibaba/hooks/pull/2458
- ♻️ refactor(useGetState): stateRef to useLatest by @GetWebHB in https://github.com/alibaba/hooks/pull/2407
- ♻️ refactor(useInViewport): el is not empty by @GetWebHB in https://github.com/alibaba/hooks/pull/2476
- ♻️ refactor(useLockFn): catch to finally by @GetWebHB in https://github.com/alibaba/hooks/pull/2421
- ♻️ refactor(useRafInterval): optimize useEffect cleanup fn by @GetWebHB in https://github.com/alibaba/hooks/pull/2426
- ♻️ refactor(useRafTimeout): optimize useEffect cleanup fn by @GetWebHB in https://github.com/alibaba/hooks/pull/2420
- ♻️ refactor(createEffectWithTarget): the first parameter is old-deps by @GetWebHB in https://github.com/alibaba/hooks/pull/2431
- 📚 docs(useLongPress): change options to default by @GetWebHB in https://github.com/alibaba/hooks/pull/2479
- 🛠 chore(dev-deps): bump prettier & eslint by @li-jia-nan in https://github.com/alibaba/hooks/pull/2248
- 🐛 fix(useAntdTable): 修复动态设置 ready 失效的 bug,由 @guaijie 提交于 https://github.com/alibaba/hooks/pull/2489
- 🐛 fix(useCountDown): targetDate 重置 leftTime,由 @joe-leong 提交于 https://github.com/alibaba/hooks/pull/2346
- ♻️ refactor: 使用 react-fast-compare 替换 lodash/isEqual,由 @guoyunhe 提交于 https://github.com/alibaba/hooks/pull/2458
- ♻️ refactor(useGetState): stateRef 替换为 useLatest,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2407
- ♻️ refactor(useInViewport): el 不为空,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2476
- ♻️ refactor(useLockFn): catch 改为 finally,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2421
- ♻️ refactor(useRafInterval): 优化 useEffect 清理函数,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2426
- ♻️ refactor(useRafTimeout): 优化 useEffect 清理函数,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2420
- ♻️ refactor(createEffectWithTarget): 第一个参数是 old-deps,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2431
- 📚 docs(useLongPress): 将选项更改为默认值,由 @GetWebHB 提交于 https://github.com/alibaba/hooks/pull/2479
- 🛠 chore(dev-deps): 更新 prettier 和 eslint 版本,由 @li-jia-nan 提交于 https://github.com/alibaba/hooks/pull/2248
- @guoyunhe made their first contribution in https://github.com/alibaba/hooks/pull/2458
- @guaijie made their first contribution in https://github.com/alibaba/hooks/pull/2489
- @joe-leong made their first contribution in https://github.com/alibaba/hooks/pull/2346
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.10...v3.7.11
v3.7.10
What's Changed
- 🐛 fix: revert #2233 (chore: lodash changed to lodash-es) by @li-jia-nan in https://github.com/alibaba/hooks/pull/2453
- 🛠 chore: lock pnpm version & revert lock file by @liuyib in https://github.com/alibaba/hooks/pull/2467
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.9...v3.7.10
v3.7.9
What's Changed
- 🔥 feat: useKeyPress callback passes in the triggered shortcut key @Simon-He95 https://github.com/alibaba/hooks/pull/2170
- 🔥 feat: useDrag adds custom picture feature @kakachake https://github.com/alibaba/hooks/pull/2182
- 🔥 feat: add
callback
options andtarget
support array @coderluojz https://github.com/alibaba/hooks/pull/2061 - 🔥 feat(useInfiniteScroll): add error result @hchlq https://github.com/alibaba/hooks/pull/2275
- 🐛 fix: keep the selected text range when secondary button of mouse is pressed @Ali-ovo https://github.com/alibaba/hooks/pull/2232
- 🐛 fix: useDebounce issue in WeChat @crazylxr https://github.com/alibaba/hooks/pull/1472
- 🐛 fix: always listen to fullscreen change and dynamically set the initial value @tmkx https://github.com/alibaba/hooks/pull/1996
- 🐛 fix(useReactive): cannot set a object with read-only and non-configurable property @liuyib https://github.com/alibaba/hooks/pull/2247
- 🐛 fix(useAntdTable): search submit init should use defaultPagination @hchlq https://github.com/alibaba/hooks/pull/2299
- 🐛 fix(useInfiniteScroll): compatibility issues of getScrollTop in Android browsers @LJJCherry https://github.com/alibaba/hooks/pull/2285
- 🐛 fix(useLongPress): Cancel the long press event when moving and clear the setTimeout timerId @byethewind https://github.com/alibaba/hooks/pull/2410
- 💄type: add missing types of useInfiniteScroll @bowencool https://github.com/alibaba/hooks/pull/2447
- 💄type: type annotation for the delay property at the API in the useTimeout documentation @OweQian https://github.com/alibaba/hooks/pull/2439
- 🔄 perf: remove optional chaining @jiaowoxiaobala https://github.com/alibaba/hooks/pull/2241
- 🔄 perf: remove unnecessary func @GetWebHB https://github.com/alibaba/hooks/pull/2430
- 📚 docs: update index.zh-CN.md @KuaiYu95 https://github.com/alibaba/hooks/pull/2242
- 📚 docs: add attention @hchlq https://github.com/alibaba/hooks/pull/2274
- 📚 docs: add FAQ about useReactive incompatible with Map, Set @liuyib https://github.com/alibaba/hooks/pull/2243
- 📚 docs(useMemoizedFn): add FAQ for special cases @liuyib https://github.com/alibaba/hooks/pull/2281
- 📚 docs(useCreation): fix typo @JeromeD3 https://github.com/alibaba/hooks/pull/2265
- 📚 docs: add installation instructions for bun @colinhacks https://github.com/alibaba/hooks/pull/2294
- 📚 docs(useRequest): add refreshDepsAction options and update demo @liuyib https://github.com/alibaba/hooks/pull/2334
- 📚 docs(useRequest): add note in the data sharing section @liuyib https://github.com/alibaba/hooks/pull/2333
- 📚 docs(useRequest): add note for pollingInterval @liuyib https://github.com/alibaba/hooks/pull/2358
- 📚 docs: update index dingding qr-code @li-jia-nan https://github.com/alibaba/hooks/pull/2411
- 📚 docs(useRequest): add note for refreshDeps and update demos @liuyib https://github.com/alibaba/hooks/pull/2408
- 📚 docs(useLockFn): extends any is unnecessary @GetWebHB https://github.com/alibaba/hooks/pull/2423
- 📚 docs(useExternal): text overflow of the box @GetWebHB https://github.com/alibaba/hooks/pull/2428
- 📚 docs(useInfiniteScroll): fix api table @marunrun https://github.com/alibaba/hooks/pull/2433
- 📚 docs(useInViewport): add options params undefined type @GetWebHB https://github.com/alibaba/hooks/pull/2444
- 📚docs(useDrag): demo style overflow auto @GetWebHB https://github.com/alibaba/hooks/pull/2443
- 📚 docs(useAntdTable&useDynamicList): table style overflow auto @GetWebHB https://github.com/alibaba/hooks/pull/2438
- 🛠 chore(deps: lodash changed to lodash-es @Ali-ovo https://github.com/alibaba/hooks/pull/2233
- 🛠 chore: change the default import to import on demand @askwuxue https://github.com/alibaba/hooks/pull/2230
- 🛠 chore: remove unused deps and add @types/lodash-es @liuyib https://github.com/alibaba/hooks/pull/2250
- 🛠 test: fix error log @liuyib https://github.com/alibaba/hooks/pull/2251
- 🛠 refactor: adjust type of defaultValue and update docs @liuyib https://github.com/alibaba/hooks/pull/2148
- 🛠 test: modify to call the separated callToggle @hwanyoungChoi https://github.com/alibaba/hooks/pull/2253
- 🛠 chore: update eslintrc.js and config.ts @xiezheng-XD https://github.com/alibaba/hooks/pull/2307
- 🛠 chore: solve ts warnings @liuyib https://github.com/alibaba/hooks/pull/2339
- 🛠 chore: packagePamanager in package.json for corepack and pnpm/action @shfshanyue https://github.com/alibaba/hooks/pull/2355
- 🛠 chore: update time to present @li-jia-nan https://github.com/alibaba/hooks/pull/2429
- 🛠 chore: Use GITHUB_OUTPUT envvar instead of set-output command @arunsathiya https://github.com/alibaba/hooks/pull/2446
- 🛠 chore: bump query-string to ^8.1.0 and update jest config @dxsun97 https://github.com/alibaba/hooks/pull/2319
New Contributors
- @kakachake made their first contribution in https://github.com/alibaba/hooks/pull/2182
- @coderluojz made their first contribution in https://github.com/alibaba/hooks/pull/2061
- @GetWebHB made their first contribution in https://github.com/alibaba/hooks/pull/2423
- @LJJCherry made their first contribution in https://github.com/alibaba/hooks/pull/2285
- @bowencool made their first contribution in https://github.com/alibaba/hooks/pull/2447
- @OweQian made their first contribution in https://github.com/alibaba/hooks/pull/2447
- @jiaowoxiaobala made their first contribution in https://github.com/alibaba/hooks/pull/2241
- @JeromeD3 made their first contribution in https://github.com/alibaba/hooks/pull/2265
- @colinhacks made their first contribution in https://github.com/alibaba/hooks/pull/2294
- @askwuxue made their first contribution in https://github.com/alibaba/hooks/pull/2230
- @hwanyoungChoi made their first contribution in https://github.com/alibaba/hooks/pull/2253
- @xiezheng-XD made their first contribution in https://github.com/alibaba/hooks/pull/2307
- @shfshanyue made their first contribution in https://github.com/alibaba/hooks/pull/2355
- @arunsathiya made their first contribution in https://github.com/alibaba/hooks/pull/2446
- @dxsun97 made their first contribution in https://github.com/alibaba/hooks/pull/2319
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.8...v3.7.9
v3.7.8
What's Changed
🐛 fix: compatibility list is empty by @hchlq in https://github.com/alibaba/hooks/pull/2206🐛 fix: useWebSocket error (#2176) by @YinDongFang in https://github.com/alibaba/hooks/pull/2177🔄 perf(useAsyncEffect): move isAsyncGenerator outside the hook by @bijinfeng in https://github.com/alibaba/hooks/pull/2186📚 docs: update docs by @li-jia-nan in https://github.com/alibaba/hooks/pull/2174📚 docs(useWebSocket): update test url by @liuyib in https://github.com/alibaba/hooks/pull/2209🛠 chore: enhance useTrackedEffect type by @xvxlb in https://github.com/alibaba/hooks/pull/2196🛠 chore: optimize code by adding depsEqual function by @maomao1996 in https://github.com/alibaba/hooks/pull/2216🛠 chore(deps): bump typescript from 4 to 5 by @li-jia-nan in https://github.com/alibaba/hooks/pull/2231
🐛 fix: list 判空处理,由 @hchlq 提交于 https://github.com/alibaba/hooks/pull/2206🐛 fix: useWebSocket 错误 (#2176),由 @YinDongFang 提交于 https://github.com/alibaba/hooks/pull/2177🔄 perf(useAsyncEffect): 将 isAsyncGenerator 函数移出钩子,由 @bijinfeng 提交于 https://github.com/alibaba/hooks/pull/2186📚 docs: 更新文档,由 @li-jia-nan 提交于 https://github.com/alibaba/hooks/pull/2174📚 docs(useWebSocket): 更新测试网址,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2209🛠 chore: 增强 useTrackedEffect 类型,由 @xvxlb 提交于 https://github.com/alibaba/hooks/pull/2196🛠 chore: 通过添加 depsEqual 函数优化代码,由 @maomao1996 提交于 https://github.com/alibaba/hooks/pull/2216🛠 chore(deps): 将 TypeScript 版本从 4 升级到 5,由 @li-jia-nan 提交于 https://github.com/alibaba/hooks/pull/2231
New Contributors
- @bijinfeng made their first contribution in https://github.com/alibaba/hooks/pull/2186
- @xvxlb made their first contribution in https://github.com/alibaba/hooks/pull/2196
- @YinDongFang made their first contribution in https://github.com/alibaba/hooks/pull/2177
- @maomao1996 made their first contribution in https://github.com/alibaba/hooks/pull/2216
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.7...v3.7.8
v3.7.7
What's Changed
-
✨ feat(useExternal): 允许资源在失去后保留... 由 @candy4290 提交于 https://github.com/alibaba/hooks/pull/2165 -
✨ feat: useStorageState 在 setStoreValue 中捕获此错误并通知开发者 由 @51wangping 提交于 https://github.com/alibaba/hooks/pull/2123 -
🐛 fix(createUseStorageState): 使用 setState 的方式与文档不一致 由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2149 -
🐛 fix: 在 useInterval 的依赖列表中添加 immediate 由 @li-jia-nan 提交于 https://github.com/alibaba/hooks/pull/2167 -
🐛 fix(useAntdTable): 重置 pageSize 由 @hchlq 提交于 https://github.com/alibaba/hooks/pull/2178 -
📚 docs(useFullscreen): 修复zIndex
选项的类型错误 由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2143 -
📚 docs(useUrlState): 更新文档和多状态管理的测试用例 由 @51wangping 提交于 https://github.com/alibaba/hooks/pull/2125 -
📚 docs(useCountDown): demo: 修复时间延迟导致倒计时不起作用 由 @c0dedance 提交于 https://github.com/alibaba/hooks/pull/2150 -
📚 docs(useInfinitescroll): 更新 index.zh-CN.md 由 @bz199505 提交于 https://github.com/alibaba/hooks/pull/2159 -
🛠 chore(useWhyDidYoulpdate): 修正拼写错误 由 @chenbowu 提交于 https://github.com/alibaba/hooks/pull/2140 -
🛠 chore(useReactive): 优化导入以减小捆绑包大小 由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2144
-
✨ feat(useExternal): allow resources to remain after they have lost the… by @candy4290 in https://github.com/alibaba/hooks/pull/2165 -
✨ feat: useStorageState setStoreValue catch this error to the developer by @51wangping in https://github.com/alibaba/hooks/pull/2123 -
🐛 fix(createUseStorageState): usage of setState is inconsistent with docs by @liuyib in https://github.com/alibaba/hooks/pull/2149 -
🐛 fix: add immediate to useInterval dep list by @li-jia-nan in https://github.com/alibaba/hooks/pull/2167 -
🐛 fix(useAntdTable): reset pageSize by @hchlq in https://github.com/alibaba/hooks/pull/2178 -
📚 docs(useFullscreen): fix type ofzIndex
options by @liuyib in https://github.com/alibaba/hooks/pull/2143 -
📚 docs(useCountDown): fix time lag causing no countdown by @c0dedance in https://github.com/alibaba/hooks/pull/2150 -
📚 docs(useInfinitescroll): Update index.zh-CN.md by @bz199505 in https://github.com/alibaba/hooks/pull/2159 -
📚 docs(useUrlState): update docs and test case for multi-state management by @51wangping in https://github.com/alibaba/hooks/pull/2125 -
🛠 chore(useWhyDidYoulpdate): : typo by @chenbowu in https://github.com/alibaba/hooks/pull/2140 -
🛠 chore(useReactive): optimize import to reduce bundle size by @liuyib in https://github.com/alibaba/hooks/pull/2144
New Contributors
- @51wangping made their first contribution in https://github.com/alibaba/hooks/pull/2123
- @chenbowu made their first contribution in https://github.com/alibaba/hooks/pull/2140
- @bz199505 made their first contribution in https://github.com/alibaba/hooks/pull/2159
- @candy4290 made their first contribution in https://github.com/alibaba/hooks/pull/2165
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.6...v3.7.7
v3.7.6
What's Changed
-
📝 docs (useSelections): modify the type and desc of params by @liuyib in https://github.com/alibaba/hooks/pull/2083 -
📝 docs (useSetState): more detailed demo and api docs by @liuyib in https://github.com/alibaba/hooks/pull/2087 -
📝 docs: optimise json display by @miracles 1919 in https://github.com/alibaba/hooks/pull/2091 -
📝 docs (useMap/useSet): better type by @liuyib in https://github.com/alibaba/hooks/pull/2088 -
📝 docs: optimize docs indentation by @thinkasany in https://github.com/alibaba/hooks/pull/2094 -
📝 docs (useFavicon): update useFavicon docs by @goodjun in https://github.com/alibaba/hooks/pull/2132 -
📝 docs (usePrevious): update shouldUpdate default value by @KangXinzhi in https://github.com/alibaba/hooks/pull/2122 -
🐛 fix: fixed a conduction error using infinite scroll type by @wangyangexpo in https://github.com/alibaba/hooks/pull/2096 -
🐛 fix (useAntdTable): reset pageSize ( #2085 ) by @Ali-ovo in https://github.com/alibaba/hooks/pull/2090 -
🐛 fix: use memoized fn in useTimeout by @li-jia-nan in https://github.com/alibaba/hooks/pull/2092 -
🐛 fix (useReactive): allow the field value of initialState to be a special object by @liuyib in https://github.com/alibaba/hooks/pull/2079 -
🐛 fix (deps): missing @babel/runtime in cjs by @liuyib in https://github.com/alibaba/hooks/pull/2095 -
🐛 fix: reload after loadMore should set loading to true by @hchlq in https://github.com/alibaba/hooks/pull/2120 -
🐛 fix (useBoolean): default value is converted to boolean type by @KangXinzhi in https://github.com/alibaba/hooks/pull/2108 -
🐛 fix: use entire viewport when target is document by @hchlq in https://github.com/alibaba/hooks/pull/2119 -
🐛 fix (useInfiniteScroll): reload data should be latest by @hchlq in https://github.com/alibaba/hooks/pull/2124 -
✨ feat (useFullscreen): support page fullscreen by @eveningwater in https://github.com/alibaba/hooks/pull/1893 -
♻️ refactor: resolve all eslint warning by @liuyib in https://github.com/alibaba/hooks/pull/2097 -
♻️ refactor (useMap/useSet): refactoring useMap and useSet for improved initialValue checking. By @KangXinzhi in https://github.com/alibaba/hooks/pull/2116 -
🧪 test (useStorageState): add test case by @KangXinzhi in https://github.com/alibaba/hooks/pull/2106 -
🧪 test: add useCookieState test case by @KangXinzhi in https://github.com/alibaba/hooks/pull/2112
-
📝 docs (useSelections): 修改参数类型和描述,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2083 -
📝 docs (useSetState): 更详细的演示和 API 文档,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2087 -
📝 docs: 通过 @miracles 1919 优化 JSON 显示,由 @miracles 1919 提交于 https://github.com/alibaba/hooks/pull/2091 -
📝 docs (useMap/useSet): 更好的类型,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2088 -
📝 docs: 通过 @thinkasany 优化文档缩进,由 @thinkasany 提交于 https://github.com/alibaba/hooks/pull/2094 -
📝 docs (useFavicon): 更新 useFavicon 文档,由 @goodjun 提交于 https://github.com/alibaba/hooks/pull/2132 -
📝 docs (usePrevious): 通过 @KangXinzhi 更新 shouldUpdate 的默认值,由 @KangXinzhi 提交于 https://github.com/alibaba/hooks/pull/2122 -
🐛 fix: 修复使用无限滚动类型的传导错误,由 @wangyangexpo 提交于 https://github.com/alibaba/hooks/pull/2096 -
🐛 fix (useAntdTable): 重置 pageSize ( #2085 ),由 @Ali-ovo 提交于 https://github.com/alibaba/hooks/pull/2090 -
🐛 fix: 在 useTimeout 中使用记忆化函数,由 @li-jia-nan 提交于 https://github.com/alibaba/hooks/pull/2092 -
🐛 fix (useReactive): 允许 initialState 的字段值为特殊对象,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2079 -
🐛 fix (deps): 在 cjs 中添加 @babel/runtime,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2095 -
🐛 fix: loadMore 后重新加载应将 loading 设置为 true,由 @hchlq 提交于 https://github.com/alibaba/hooks/pull/2120 -
🐛 fix (useBoolean): 默认值转换为布尔类型,由 @KangXinzhi 提交于 https://github.com/alibaba/hooks/pull/2108 -
🐛 fix: 当目标是文档时,使用整个视口,由 @hchlq 提交于 https://github.com/alibaba/hooks/pull/2119 -
🐛 fix (useInfiniteScroll): 重新加载数据应该是最新的,由 @hchlq 提交于 https://github.com/alibaba/hooks/pull/2124 -
✨ feat (useFullscreen): 支持页面全屏,由 @eveningwater 提交于 https://github.com/alibaba/hooks/pull/1893 -
♻️ refactor: 通过 @liuyib 解决所有 eslint 警告,由 @liuyib 提交于 https://github.com/alibaba/hooks/pull/2097 -
♻️ refactor (useMap/useSet): 通过 @KangXinzhi 重构 useMap 和 useSet -
🧪 test (useStorageState): 添加测试用例,由 @KangXinzhi 提交于 https://github.com/alibaba/hooks/pull/2106 -
🧪 test: 添加 useCookieState 的测试用例,由 @KangXinzhi 提交于 https://github.com/alibaba/hooks/pull/2112
New Contributors
- @wangyangexpo made their first contribution in https://github.com/alibaba/hooks/pull/2096
- @thinkasany made their first contribution in https://github.com/alibaba/hooks/pull/2094
- @Simon-He95 made their first contribution in https://github.com/alibaba/hooks/pull/2047
- @AmirabbasJ made their first contribution in https://github.com/alibaba/hooks/pull/2064
- @goodjun made their first contribution in https://github.com/alibaba/hooks/pull/2132
- @eveningwater made their first contribution in https://github.com/alibaba/hooks/pull/1893
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.5...v3.7.6
v3.7.5
What's Changed
-
⬆️ chore: update antd version by @li-jia-nan in https://github.com/alibaba/hooks/pull/2059 -
⬆️ chore(use-url-state): add tslib by @miracles1919 in https://github.com/alibaba/hooks/pull/2018 -
⬆️ chore: update to jest 29 by @ymqy in https://github.com/alibaba/hooks/pull/2048 -
🐛 fix: useHover fire event test problem by @DomeSy in https://github.com/alibaba/hooks/pull/2021 -
🐛 fix(useSize): the return value is always undefined by @liuyib in https://github.com/alibaba/hooks/pull/2071 -
🐛 fix(useCookieState): the update will not take effect before unmount by @liuyib in https://github.com/alibaba/hooks/pull/2074 -
🐛 fix(useVirtualList): mutate style in react context by @luo3house in https://github.com/alibaba/hooks/pull/2034 -
🐛 fix: loading is always return true when set loadingDelay by @hchlq in https://github.com/alibaba/hooks/pull/1903 -
🐛 fix: fix eslint error by @li-jia-nan in https://github.com/alibaba/hooks/pull/2065 -
🐛 fix(useExternal): avoid wrong option by @vaakian in https://github.com/alibaba/hooks/pull/2011 -
🐛 fix: add default value for useSize by @li-jia-nan in https://github.com/alibaba/hooks/pull/2057 -
📚 docs: note the default value of defaultPageSize & defaultCurrent by @xliez in https://github.com/alibaba/hooks/pull/2041 -
📚 fix: translation errors by @Ali-ovo in https://github.com/alibaba/hooks/pull/2055 -
🚨 test: replacetoEqual
withtoBe
forboolean
results by @nmsn in https://github.com/alibaba/hooks/pull/2045 -
🚨 test: primitive data types by @nmsn in https://github.com/alibaba/hooks/pull/2053
-
⬆️ chore: 升级 antd 版本 by @li-jia-nan in https://github.com/alibaba/hooks/pull/2059 -
⬆️ chore(use-url-state): 添加 tslib by @miracles1919 in https://github.com/alibaba/hooks/pull/2018 -
⬆️ chore: 升级 jest 到 29 by @ymqy in https://github.com/alibaba/hooks/pull/2048 -
🐛 fix: useHover 中的 fireEvent 单测问题 by @DomeSy in https://github.com/alibaba/hooks/pull/2021 -
🐛 fix(useSize): 修复总是返回 undefined 的问题 t by @liuyib in https://github.com/alibaba/hooks/pull/2071 -
🐛 fix(useCookieState): 修复更新 cookie 后卸载组件,则更新不会生效 by @liuyib in https://github.com/alibaba/hooks/pull/2074 -
🐛 fix(useVirtualList): 修复滑动快了,不停 render 的问题 by @luo3house in https://github.com/alibaba/hooks/pull/2034 -
🐛 fix(useRequest): 修复当设置了loadingDelay
loading 一直未 true 的问题 by @hchlq in https://github.com/alibaba/hooks/pull/1903 -
🐛 fix: 修复 eslint 问题 by @li-jia-nan in https://github.com/alibaba/hooks/pull/2065 -
🐛 fix(useExternal): 避免可选 option 类型问题 by @vaakian in https://github.com/alibaba/hooks/pull/2011 -
🐛 fix(useSize): 给 useSize 增加默认值 by @li-jia-nan in https://github.com/alibaba/hooks/pull/2057 -
📚 docs: 文档优化 by @xliez in https://github.com/alibaba/hooks/pull/2041 -
📚 docs: 修复一些翻译错误 by @Ali-ovo in https://github.com/alibaba/hooks/pull/2055 -
🚨 test: 对于boolean
值结果 用toBe
来替代toEqual
by @nmsn in https://github.com/alibaba/hooks/pull/2045
New Contributors
- @DomeSy made their first contribution in https://github.com/alibaba/hooks/pull/2021
- @xliez made their first contribution in https://github.com/alibaba/hooks/pull/2041
- @nmsn made their first contribution in https://github.com/alibaba/hooks/pull/2045
- @ymqy made their first contribution in https://github.com/alibaba/hooks/pull/2048
- @Ali-ovo made their first contribution in https://github.com/alibaba/hooks/pull/2055
- @vaakian made their first contribution in https://github.com/alibaba/hooks/pull/2011
- @liuyib made their first contribution in https://github.com/alibaba/hooks/pull/2071
- @luo3house made their first contribution in https://github.com/alibaba/hooks/pull/2034
Full Changelog: https://github.com/alibaba/hooks/compare/v3.7.4...v3.7.5