Skip to content

Releases: alibaba/hooks

v3.8.1

11 Aug 08:20
Compare
Choose a tag to compare

What's Changed

  • 🐛 fix(useResponse): adds default export by @CJY0208 in #2555
  • 🐛 fix(useSelections): setSelected should support non-array value by @liuyib in #2559
  • 🐛 fix(useResetState): reset random initial value incorrectly by @hemengke1997 in #2562
  • 🐛 fix: resolves depsEqual performance issues by @caorushizi in #2578
  • 🐛 fix: TypeError: props.hasOwnProperty is not a function by @ShaofeiZi in #2596
  • 🐛 fix: resolves useRquest debounce issue by @ruixingshi in #2606
  • 🐛 fix: solve the compatibility issue of useLongPress on desktop Safari by @mscststs in #2602
  • 🛠 chore(useRequest): the official useRequest hooks documentation has an error. In version 2, the option parameter should be throwOnError by @chovrio in #2563
  • 🛠 chore: bump js-cookie to ^3.0.5 by @fisherspy in #2600
  • 🤖 ci: "intall" word error, should be "install" by @long36708 in #2587
  • 🤖 ci: change node.js version to 18, 20 and update actions version by @liuyib in #2604
  • ⚡ test: update useLatest test case by @FEliuyg in #2586
  • 📚 docs: fix the Chinese mirror by @zhangmo8 in #2608

  • 🐛 fix(useResponse): 添加默认导出,由 @CJY0208 提交于 #2555
  • 🐛 fix(useSelections): setSelected 应该支持非数组值,由 @liuyib 提交于 #2559
  • 🐛 fix(useResetState): 重置随机初始值错误,由 @hemengke1997 提交于 #2562
  • 🐛 fix: 解决 depsEqual 性能问题,由 @caorushizi 提交于 #2578
  • 🐛 fix: 修复 TypeError: props.hasOwnProperty is not a function@ShaofeiZi 提交于 #2596
  • 🐛 fix: 解决 useRquest 防抖问题,由 @ruixingshi 提交于 #2606
  • 🐛 fix: 解决 useLongPress 在桌面端 Safari 不兼容的问题,由 @mscststs 提交于 #2602
  • 🛠 chore(useRequest): 官方文档 useRequest hooks 文案错误,v2 中的 option 参数应该是 throwOnError,由 @chovrio 提交于 #2563
  • 🛠 chore: 将 js-cookie 升级到 ^3.0.5,由 @fisherspy 提交于 #2600
  • 🤖 ci: "intall" 单词错误,应为 "install",由 @long36708 提交于 #2587
  • 🤖 ci: 将 node.js 版本更改为 18、20 并更新 actions 版本,由 @liuyib 提交于 #2604
  • ⚡ test: 更新 useLatest 测试用例,由 @FEliuyg 提交于 #2586
  • 📚 docs: 修复中文镜像,由 @zhangmo8 提交于 #2608

New Contributors

Full Changelog: v3.8.0...v3.8.1

v3.8.0

23 May 06:45
Compare
Choose a tag to compare

What's Changed

  • ✨ feat(useStoage): listen to storage event by @vaakian in #2298
  • ✨ feat(useSelections): support object array by @liuyib in #2485
  • ✨ feat(useDynamicList): add batchRemove method by @xiaozisong in #2340
  • ✨ feat(useSelections): add clearAll result by @lich-yoo in #2357
  • 🐛 fix(type): fixed up some types that are non-standard and errors on useExteneral hook by @LonelyFellas in #2508
  • 🐛 fix(useVirtualList): get correct offset when itemHeight is fixed by @leedawn in #2279
  • 🐛 fix(useAntdTable): type of Params by @conorzhong in #2377
  • 🔄 perf(createUseStorageState): avoid setState being invoked twice by @liuyib in #2532
  • 🎨 style(utils): add default return value to checkIfAllInShadow by @enson0131 in #2529
  • ⚡ test(useSelections): fix test case error by @liuyib in #2536
  • 🛠 chore(useLatest): add a default state for comparison in useLatest demo by @shfshanyue in #2523

  • ✨ feat(useStoage): 监听 storage 事件,由 @vaakian 提交于 #2298
  • ✨ feat(useSelections): 支持对象数组,由 @liuyib 提交于 #2485
  • ✨ feat(useDynamicList): 添加 batchRemove 方法,由 @xiaozisong 提交于 #2340
  • ✨ feat(useSelections): 添加清除所有结果,由 @lich-yoo 提交于 #2357
  • 🐛 fix(type): 修复 useExteneral hook 上的一些非标准和错误类型,由 @LonelyFellas 提交于 #2508
  • 🐛 fix(useVirtualList): 当 itemHeight 固定时获取正确的偏移量,由 @leedawn 提交于 #2279
  • 🐛 fix(useAntdTable): 修复 Params 的类型问题,由 @conorzhong 提交于 #2377
  • 🔄 perf(createUseStorageState): 避免 setState 被调用两次,由 @liuyib 提交于 #2532
  • 🎨 style(utils): 为 checkIfAllInShadow 添加默认返回值,由 @enson0131 提交于 #2529
  • ⚡ test(useSelections): 修复测试用例错误,由 @liuyib 提交于 #2536
  • 🛠 chore(useLatest): 在 useLatest demo 中添加一个默认状态用于比较,由 @shfshanyue 提交于 #2523

New Contributors

Full Changelog: v3.7.11...v3.8.0

v3.7.11

01 Apr 02:43
Compare
Choose a tag to compare

What's Changed

  • 🐛 fix(useAntdTable): dynamic setting ready failed by @guaijie in #2489
  • 🐛 fix(useCountDown): targetDate resets leftTime by @joe-leong in #2346
  • ♻️ refactor: replace lodash/isEqual with react-fast-compare by @guoyunhe in #2458
  • ♻️ refactor(useGetState): stateRef to useLatest by @GetWebHB in #2407
  • ♻️ refactor(useInViewport): el is not empty by @GetWebHB in #2476
  • ♻️ refactor(useLockFn): catch to finally by @GetWebHB in #2421
  • ♻️ refactor(useRafInterval): optimize useEffect cleanup fn by @GetWebHB in #2426
  • ♻️ refactor(useRafTimeout): optimize useEffect cleanup fn by @GetWebHB in #2420
  • ♻️ refactor(createEffectWithTarget): the first parameter is old-deps by @GetWebHB in #2431
  • 📚 docs(useLongPress): change options to default by @GetWebHB in #2479
  • 🛠 chore(dev-deps): bump prettier & eslint by @li-jia-nan in #2248

  • 🐛 fix(useAntdTable): 修复动态设置 ready 失效的 bug,由 @guaijie 提交于 #2489
  • 🐛 fix(useCountDown): targetDate 重置 leftTime,由 @joe-leong 提交于 #2346
  • ♻️ refactor: 使用 react-fast-compare 替换 lodash/isEqual,由 @guoyunhe 提交于 #2458
  • ♻️ refactor(useGetState): stateRef 替换为 useLatest,由 @GetWebHB 提交于 #2407
  • ♻️ refactor(useInViewport): el 不为空,由 @GetWebHB 提交于 #2476
  • ♻️ refactor(useLockFn): catch 改为 finally,由 @GetWebHB 提交于 #2421
  • ♻️ refactor(useRafInterval): 优化 useEffect 清理函数,由 @GetWebHB 提交于 #2426
  • ♻️ refactor(useRafTimeout): 优化 useEffect 清理函数,由 @GetWebHB 提交于 #2420
  • ♻️ refactor(createEffectWithTarget): 第一个参数是 old-deps,由 @GetWebHB 提交于 #2431
  • 📚 docs(useLongPress): 将选项更改为默认值,由 @GetWebHB 提交于 #2479
  • 🛠 chore(dev-deps): 更新 prettier 和 eslint 版本,由 @li-jia-nan 提交于 #2248

New Contributors

Full Changelog: v3.7.10...v3.7.11

v3.7.10

01 Feb 08:25
95409be
Compare
Choose a tag to compare

What's Changed


  • 🐛 fix: 回退 #2233 (chore: 使用 lodash-es 替换 lodash),由 @li-jia-nan 提交于 #2453
  • 🛠 chore: 锁 pnpm 版本,回退 lock 文件,由 @liuyib 提交于 #2467

Full Changelog: v3.7.9...v3.7.10

v3.7.9

28 Jan 16:42
Compare
Choose a tag to compare

What's Changed

  • ✨ feat: useKeyPress callback passes in the triggered shortcut key by @Simon-He95 in #2170
  • ✨ feat(useDrag): useDrag adds custom picture feature by @kakachake in #2182
  • ✨ feat(useInViewport): add callback options and target support array by @coderluojz in #2061
  • ✨ feat(useInfiniteScroll): add error result by @hchlq in #2275
  • 🐛 fix(useTextSelection): keep the selected text range when secondary button of mouse is pressed by @Ali-ovo in #2232
  • 🐛 fix: useDebounce issue in WeChat by @crazylxr in #1472
  • 🐛 fix(useFullscreen): always listen to fullscreen change and dynamically set the initial value by @tmkx in #1996
  • 🐛 fix(useReactive): cannot set a object with read-only and non-configurable property by @liuyib in #2247
  • 🐛 fix(useAntdTable): search submit init should use defaultPagination by @hchlq in #2299
  • 🐛 fix(useInfiniteScroll): compatibility issues of getScrollTop in Android browsers by @LJJCherry in #2285
  • 🐛 fix(useLongPress): cancel the long press event when moving and clear the setTimeout timerId by @byethewind in #2410
  • 🐛 fix: add missing types of useInfiniteScroll by @bowencool in #2447
  • ♻ refactor(createUseStorageState): adjust type of defaultValue and update docs by @liuyib in #2148
  • 🔄 perf(createUseStorageState): remove optional chaining by @jiaowoxiaobala in #2241
  • 🎨 style: change the default import to import on demand by @askwuxue in #2230
  • 🎨 style(useDocumentVisibility): remove unnecessary func by @GetWebHB in #2430
  • 📚 docs(useCreation): fix typo by @JeromeD3 in #2265
  • 📚 docs: add installation instructions for bun by @colinhacks in #2294
  • 📚 docs(useRequest): add refreshDepsAction options and update demo by @liuyib in #2334
  • 📚 docs(useRequest): add note in the data sharing section by @liuyib in #2333
  • 📚 docs(useRequest): add note for pollingInterval by @liuyib in #2358
  • 📚 docs: update index dingding qr-code by @li-jia-nan in #2411
  • 📚 docs(useExternal): text overflow of the box by @GetWebHB in #2428
  • 📚 docs(useInfiniteScroll): fix api table by @marunrun in #2433
  • 📚 docs(useAntdTable&useDynamicList): table style overflow auto by @GetWebHB in #2438
  • 📚 docs: add FAQ about useReactive incompatible with Map, Set by @liuyib in #2243
  • 📚 docs(useDrag): demo style overflow auto by @GetWebHB in #2443
  • 📚 docs(useLockFn): extends any is unnecessary by @GetWebHB in #2423
  • 📚 docs(useMemoizedFn): add FAQ for special cases by @liuyib in #2281
  • 📚 docs(useDocumentVisibility): Update index.zh-CN.md by @KuaiYu95 in #2242
  • 📚 docs(useInViewport): add options params undefined type by @GetWebHB in #2444
  • 📚 docs(useRequest): add note for refreshDeps and update demos by @liuyib in #2408
  • 📚 docs: add attention by @hchlq in #2274
  • 📚 docs(useTimeout): type annotation for the delay property at the API in the useTimeout documentation by @OweQian in #2439
  • ⚡ test(useLoadingDelayPlugin): fix error log by @liuyib in #2251
  • ⚡ test(useToggle): modify to call the separated callToggle by @hwanyoungChoi in #2253
  • 🛠 chore: solve ts warnings by @liuyib in #2339
  • 🛠 chore: bump query-string to ^8.1.0 and update jest config by @dxsun97 in #2319
  • 🛠 chore: update time to present by @li-jia-nan in #2429
  • 🛠 chore: packagePamanager in package.json for corepack and pnpm/action-… by @shfshanyue in #2355
  • 🛠 chore: update eslintrc.js and config.ts by @xiezheng-XD in #2307
  • 🛠 chore: remove unused deps and add @types/lodash-es by @liuyib in #2250
  • 🛠 chore: lodash changed to lodash-es by @Ali-ovo in #2233
  • 🤖 ci: Use GITHUB_OUTPUT envvar instead of set-output command by @arunsathiya in #2446

  • ✨ feat: useKeyPress 回调传递触发的快捷键,由 @Simon-He95 提交于 #2170
  • ✨ feat(useDrag): useDrag 添加自定义图片功能,由 @kakachake 提交于 #2182
  • ✨ feat(useInViewport): 添加 callback 选项和 target 支持数组,由 @coderluojz 提交于 #2061
  • ✨ feat(useInfiniteScroll): 添加错误结果,由 @hchlq 提交于 #2275
  • 🐛 fix(useTextSelection): 当按下鼠标的次要按钮时保持选定文本范围,由 @Ali-ovo 提交于 #2232
  • 🐛 fix: 在微信小程序中使用 useDebounce 的问题,由 @crazylxr 提交于 #1472
  • 🐛 fix(useFullscreen): 始终监听全屏变化并动态设置初始值,由 @tmkx 提交于 #1996
  • 🐛 fix(useReactive): 无法设置具有只读和不可配置属性的对象,由 @liuyib 提交于 #2247
  • 🐛 fix(useAntdTable): 搜索提交初始化应使用默认分页,由 @hchlq 提交于 #2299
  • 🐛 fix(useInfiniteScroll): 在 Android 浏览器中的 getScrollTop 的兼容性问题,由 @LJJCherry 提交于 #2285
  • 🐛 fix(useLongPress): 移动时取消长按事件,清除 setTimeout timerId,由 @byethewind 提交于 #2410
  • 🐛 fix: 添加 useInfiniteScroll 的丢失类型,由 @bowencool 提交于 #2447
  • ♻ refactor(createUseStorageState): 调整 defaultValue 的类型并更新文档,由 @liuyib 提交于 #2148
  • 🔄 perf(createUseStorageState): 移除可选链接,由 @jiaowoxiaobala 提交于 #2241
  • 🎨 style: 将默认导入更改为按需导入,由 @askwuxue 提交于 #2230
  • 🎨 style(useDocumentVisibility): 移除不必要的函数,由 @GetWebHB 提交于 #2430
  • 📚 docs(useCreation): 修复拼写错误,由 @JeromeD3 提交于 #2265
  • 📚 docs: 添加 bun 的安装说明,由 @colinhacks 提交于 #2294
  • 📚 docs(useRequest): 添加 refreshDepsAction 选项并更新演示,由 @liuyib 提交于 #2334
  • 📚 docs(useRequest): 在数据共享部分添加注释,由 @liuyib 提交于 #2333
  • 📚 docs(useRequest): 添加 pollingInterval 的注释,由 @liuyib 提交于 #2358
  • 📚 docs: 更新 index 钉钉二维码,由 @li-jia-nan 提交于 #2411
  • 📚 docs(useExternal): 盒子的文字溢出,由 @GetWebHB 提交于 #2428
  • 📚 docs(useInfiniteScroll): 修复 API 表,由 @marunrun 提交于 #2433
  • 📚 docs(useAntdTable&useDynamicList): 表格样式溢出自动,由 @GetWebHB 提交于 #2438
  • 📚 docs: 添加关于 useReactive 与 Map、Set 不兼容的常见问题解答,由 @liuyib 提交于 #2243
  • 📚 docs(useDrag): 演示样式溢出自动,由 @GetWebHB 提交于 #2443
  • 📚 docs(useLockFn): extends any is unnecessary,由 @GetWebHB 提交于 #2423
  • 📚 docs(useMemoizedFn): 添加特殊情况的常见问题解答,由 @liuyib 提交于 #2281
  • 📚 docs(useDocumentVisibility): 更新 index.zh-CN.md,由 @KuaiYu95 提交于 #2242
  • 📚 docs(useInViewport): 添加 options 参数未定义类型,由 @GetWebHB 提交于 #2444
  • 📚 docs(useRequest): 添加关于 refreshDeps 的注释并更新演示,由 @liuyib 提交于 #2408
  • 📚 docs: 添加注意事项,由 @hchlq 提交于 #2274
  • 📚 docs(useTimeout): useTimeout 文档中 API 处的 delay 属性的类型标注,由 @OweQian 提交于 #2439
  • ⚡ test(useLoadingDelayPlugin): 修复错误日志,由 @liuyib 提交于 #2251
  • ⚡ test(useToggle): 修改为调用分离的 callToggle,由 @hwanyoungChoi 提交于 #2253
  • 🛠 chore: 解决 ts 警告,由 @liuyib 提交于 #2339
  • 🛠 chore: 将 query-string 升级到 ^8.1.0 并更新 jest 配置,由 @dxsun97 提交于 #2319
  • 🛠 chore: 更新时间到当前,由 @li-jia-nan 提交于 #2429
  • 🛠 chore: 在 package.json 中添加 packagePamanager 以用于 corepack 和 pnpm/action-…,由 @shfshanyue 提交于 #2355
  • 🛠 chore: 更新 eslintrc.js 和 config.ts,由 @xiezheng-XD 提交于 #2307
  • 🛠 chore: 删除未使用的依赖并添加 @types/lodash-es,由 @liuyib 提交于 #2250
  • 🛠 chore: 将 lodash 更改为 lodash-es,由 @Ali-ovo 提交于 #2233
  • 🤖 ci: 使用 GITHUB_OUTPUT 环境变量代替 set-output 命令,由 @arunsathiya 提交于 #2446

New Contributors

Read more

v3.7.8

25 Jun 14:44
Compare
Choose a tag to compare

What's Changed


  • 🐛 fix: list 判空处理,由 @hchlq 提交于 #2206
  • 🐛 fix: useWebSocket 错误 (#2176),由 @YinDongFang 提交于 #2177
  • 🔄 perf(useAsyncEffect): 将 isAsyncGenerator 函数移出钩子,由 @bijinfeng 提交于 #2186
  • 📚 docs: 更新文档,由 @li-jia-nan 提交于 #2174
  • 📚 docs(useWebSocket): 更新测试网址,由 @liuyib 提交于 #2209
  • 🛠 chore: 增强 useTrackedEffect 类型,由 @xvxlb 提交于 #2196
  • 🛠 chore: 通过添加 depsEqual 函数优化代码,由 @maomao1996 提交于 #2216
  • 🛠 chore(deps): 将 TypeScript 版本从 4 升级到 5,由 @li-jia-nan 提交于 #2231

New Contributors

Full Changelog: v3.7.7...v3.7.8

v3.7.7

10 May 05:53
112c2ef
Compare
Choose a tag to compare

What's Changed

  • ✨ feat(useExternal): 允许资源在失去后保留... 由 @candy4290 提交于 #2165
  • ✨ feat: useStorageState 在 setStoreValue 中捕获此错误并通知开发者 由 @51wangping 提交于 #2123
  • 🐛 fix(createUseStorageState): 使用 setState 的方式与文档不一致 由 @liuyib 提交于 #2149
  • 🐛 fix: 在 useInterval 的依赖列表中添加 immediate 由 @li-jia-nan 提交于 #2167
  • 🐛 fix(useAntdTable): 重置 pageSize 由 @hchlq 提交于 #2178
  • 📚 docs(useFullscreen): 修复 zIndex 选项的类型错误 由 @liuyib 提交于 #2143
  • 📚 docs(useUrlState): 更新文档和多状态管理的测试用例 由 @51wangping 提交于 #2125
  • 📚 docs(useCountDown): demo: 修复时间延迟导致倒计时不起作用 由 @c0dedance 提交于 #2150
  • 📚 docs(useInfinitescroll): 更新 index.zh-CN.md 由 @bz199505 提交于 #2159
  • 🛠 chore(useWhyDidYoulpdate): 修正拼写错误 由 @chenbowu 提交于 #2140
  • 🛠 chore(useReactive): 优化导入以减小捆绑包大小 由 @liuyib 提交于 #2144

  • ✨ feat(useExternal): allow resources to remain after they have lost the… by @candy4290 in #2165
  • ✨ feat: useStorageState setStoreValue catch this error to the developer by @51wangping in #2123
  • 🐛 fix(createUseStorageState): usage of setState is inconsistent with docs by @liuyib in #2149
  • 🐛 fix: add immediate to useInterval dep list by @li-jia-nan in #2167
  • 🐛 fix(useAntdTable): reset pageSize by @hchlq in #2178
  • 📚 docs(useFullscreen): fix type of zIndex options by @liuyib in #2143
  • 📚 docs(useCountDown): fix time lag causing no countdown by @c0dedance in #2150
  • 📚 docs(useInfinitescroll): Update index.zh-CN.md by @bz199505 in #2159
  • 📚 docs(useUrlState): update docs and test case for multi-state management by @51wangping in #2125
  • 🛠 chore(useWhyDidYoulpdate): : typo by @chenbowu in #2140
  • 🛠 chore(useReactive): optimize import to reduce bundle size by @liuyib in #2144

New Contributors

Full Changelog: v3.7.6...v3.7.7

v3.7.6

28 Mar 01:53
b72366e
Compare
Choose a tag to compare

What's Changed

  • 📝 docs (useSelections): modify the type and desc of params by @liuyib in #2083
  • 📝 docs (useSetState): more detailed demo and api docs by @liuyib in #2087
  • 📝 docs: optimise json display by @Miracles 1919 in #2091
  • 📝 docs (useMap/useSet): better type by @liuyib in #2088
  • 📝 docs: optimize docs indentation by @thinkasany in #2094
  • 📝 docs (useFavicon): update useFavicon docs by @goodjun in #2132
  • 📝 docs (usePrevious): update shouldUpdate default value by @KangXinzhi in #2122
  • 🐛 fix: fixed a conduction error using infinite scroll type by @wangyangexpo in #2096
  • 🐛 fix (useAntdTable): reset pageSize ( #2085 ) by @Ali-ovo in #2090
  • 🐛 fix: use memoized fn in useTimeout by @li-jia-nan in #2092
  • 🐛 fix (useReactive): allow the field value of initialState to be a special object by @liuyib in #2079
  • 🐛 fix (deps): missing @babel/runtime in cjs by @liuyib in #2095
  • 🐛 fix: reload after loadMore should set loading to true by @hchlq in #2120
  • 🐛 fix (useBoolean): default value is converted to boolean type by @KangXinzhi in #2108
  • 🐛 fix: use entire viewport when target is document by @hchlq in #2119
  • 🐛 fix (useInfiniteScroll): reload data should be latest by @hchlq in #2124
  • ✨ feat (useFullscreen): support page fullscreen by @eveningwater in #1893
  • ♻️ refactor: resolve all eslint warning by @liuyib in #2097
  • ♻️ refactor (useMap/useSet): refactoring useMap and useSet for improved initialValue checking. By @KangXinzhi in #2116
  • 🧪 test (useStorageState): add test case by @KangXinzhi in #2106
  • 🧪 test: add useCookieState test case by @KangXinzhi in #2112

  • 📝 docs (useSelections): 修改参数类型和描述,由 @liuyib 提交于 #2083
  • 📝 docs (useSetState): 更详细的演示和 API 文档,由 @liuyib 提交于 #2087
  • 📝 docs: 通过 @Miracles 1919 优化 JSON 显示,由 @Miracles 1919 提交于 #2091
  • 📝 docs (useMap/useSet): 更好的类型,由 @liuyib 提交于 #2088
  • 📝 docs: 通过 @thinkasany 优化文档缩进,由 @thinkasany 提交于 #2094
  • 📝 docs (useFavicon): 更新 useFavicon 文档,由 @goodjun 提交于 #2132
  • 📝 docs (usePrevious): 通过 @KangXinzhi 更新 shouldUpdate 的默认值,由 @KangXinzhi 提交于 #2122
  • 🐛 fix: 修复使用无限滚动类型的传导错误,由 @wangyangexpo 提交于 #2096
  • 🐛 fix (useAntdTable): 重置 pageSize ( #2085 ),由 @Ali-ovo 提交于 #2090
  • 🐛 fix: 在 useTimeout 中使用记忆化函数,由 @li-jia-nan 提交于 #2092
  • 🐛 fix (useReactive): 允许 initialState 的字段值为特殊对象,由 @liuyib 提交于 #2079
  • 🐛 fix (deps): 在 cjs 中添加 @babel/runtime,由 @liuyib 提交于 #2095
  • 🐛 fix: loadMore 后重新加载应将 loading 设置为 true,由 @hchlq 提交于 #2120
  • 🐛 fix (useBoolean): 默认值转换为布尔类型,由 @KangXinzhi 提交于 #2108
  • 🐛 fix: 当目标是文档时,使用整个视口,由 @hchlq 提交于 #2119
  • 🐛 fix (useInfiniteScroll): 重新加载数据应该是最新的,由 @hchlq 提交于 #2124
  • ✨ feat (useFullscreen): 支持页面全屏,由 @eveningwater 提交于 #1893
  • ♻️ refactor: 通过 @liuyib 解决所有 eslint 警告,由 @liuyib 提交于 #2097
  • ♻️ refactor (useMap/useSet): 通过 @KangXinzhi 重构 useMap 和 useSet
  • 🧪 test (useStorageState): 添加测试用例,由 @KangXinzhi 提交于 #2106
  • 🧪 test: 添加 useCookieState 的测试用例,由 @KangXinzhi 提交于 #2112

New Contributors

Full Changelog: v3.7.5...v3.7.6

v3.7.5

28 Feb 08:02
Compare
Choose a tag to compare

What's Changed

  • ⬆️ chore: update antd version by @li-jia-nan in #2059
  • ⬆️ chore(use-url-state): add tslib by @miracles1919 in #2018
  • ⬆️ chore: update to jest 29 by @ymqy in #2048
  • 🐛 fix: useHover fire event test problem by @DomeSy in #2021
  • 🐛 fix(useSize): the return value is always undefined by @liuyib in #2071
  • 🐛 fix(useCookieState): the update will not take effect before unmount by @liuyib in #2074
  • 🐛 fix(useVirtualList): mutate style in react context by @luo3house in #2034
  • 🐛 fix: loading is always return true when set loadingDelay by @hchlq in #1903
  • 🐛 fix: fix eslint error by @li-jia-nan in #2065
  • 🐛 fix(useExternal): avoid wrong option by @vaakian in #2011
  • 🐛 fix: add default value for useSize by @li-jia-nan in #2057
  • 📚 docs: note the default value of defaultPageSize & defaultCurrent by @xliez in #2041
  • 📚 fix: translation errors by @Ali-ovo in #2055
  • 🚨 test: replace toEqual with toBe for boolean results by @nmsn in #2045
  • 🚨 test: primitive data types by @nmsn in #2053

  • ⬆️ chore: 升级 antd 版本 by @li-jia-nan in #2059
  • ⬆️ chore(use-url-state): 添加 tslib by @miracles1919 in #2018
  • ⬆️ chore: 升级 jest 到 29 by @ymqy in #2048
  • 🐛 fix: useHover 中的 fireEvent 单测问题 by @DomeSy in #2021
  • 🐛 fix(useSize): 修复总是返回 undefined 的问题 t by @liuyib in #2071
  • 🐛 fix(useCookieState): 修复更新 cookie 后卸载组件,则更新不会生效 by @liuyib in #2074
  • 🐛 fix(useVirtualList): 修复滑动快了,不停 render 的问题 by @luo3house in #2034
  • 🐛 fix(useRequest): 修复当设置了 loadingDelay loading 一直未 true 的问题 by @hchlq in #1903
  • 🐛 fix: 修复 eslint 问题 by @li-jia-nan in #2065
  • 🐛 fix(useExternal): 避免可选 option 类型问题 by @vaakian in #2011
  • 🐛 fix(useSize): 给 useSize 增加默认值 by @li-jia-nan in #2057
  • 📚 docs: 文档优化 by @xliez in #2041
  • 📚 docs: 修复一些翻译错误 by @Ali-ovo in #2055
  • 🚨 test: 对于 boolean 值结果 用 toBe 来替代 toEqual by @nmsn in #2045

New Contributors

Full Changelog: v3.7.4...v3.7.5

v3.7.4

26 Dec 02:22
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.7.3...v3.7.4