[Snyk] Upgrade ahooks from 3.9.0 to 3.9.5 #3
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade ahooks from 3.9.0 to 3.9.5.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 5 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: ahooks
-
3.9.5 - 2025-08-31
- 🆕 新功能
- 由 @ Arktomson 贡献,在 #2844 中将 js-cookie 的类型包放到生产依赖中。
- 🛠️ 代码重构
- 由 @ BH4HPA 贡献,在 #2843 中对 useUrlState 进行重构,将 initialState 重命名为 baseState。
- 🔧 项目配置
- 由 @ crazylxr 贡献,在 #2848 中禁用了 es 构建的 sourceMap,以避免发布 .js.map 文件。
- 📖 文档更新
- 由 @ atharva6868 贡献,在 #2840 中为 useBoolean 钩子添加了新的使用示例。
- 🐛 Bug 修复
- 由 @ guaijie 贡献,在 #2838 中修复了 refreshDepsAction 提供后依赖刷新没有执行的 bug。
- 🆕 New Features
- Contributed by @ Arktomson, added the type package of js-cookie to the production dependencies in #2844.
- 🛠️ Code Refactoring
- Contributed by @ BH4HPA, refactored useUrlState and renamed initialState to baseState in #2843.
- 🔧 Project Configuration
- Contributed by @ crazylxr, disabled the sourceMap for es build to avoid publishing .js.map files in #2848.
- 📖 Documentation Updates
- Contributed by @ atharva6868, added a new usage example for the useBoolean hook in #2840.
- 🐛 Bug Fixes
- Contributed by @ guaijie, fixed the bug that the dependency refresh did not execute after refreshDepsAction was provided in #2838.
- @ BH4HPA made their first contribution in #2843
- @ Arktomson made their first contribution in #2844
- @ atharva6868 made their first contribution in #2840
-
3.9.4 - 2025-08-22
-
3.9.3 - 2025-08-18
- 🐞 修复:修复
- 🐞 修复:修复
- 🐞 Fix: Fixed the issue that the
- 🐞 Fix: Fixed the problem of
- @ xun-zi made their first contribution in #2255
-
3.9.2 - 2025-08-18
-
3.9.1 - 2025-08-17
- 🆕 新功能
- feat: usemount 支持析构函数 by @ iambimo24 in #2713
- type: useUrlState 参数类型添加数组 by @ zhuleizhang in #2790
- 🔧 配置更新
- chore: 更新开发依赖 by @ li-zhen-zhennnnnn in #2802
- chore: 升级依赖版本并在 CI 中使用 nodejs v20,22 by @ ianzone in #2800
- 🐛 问题修复
- fix: createUseStorageState 类型未知问题 by @ Meet-student in #2795
- fix: 修复 useRequest 在启动两个以上轮询时,设置页面隐藏停止轮询,页面重新显示时,有请求不自动开始轮询的问题。 by @ JaxonJay in #2688
- fix: 修复 useInfiniteScroll 时序竞争问题 by @ duwenhan2byte in #2786
- fix: 提取集合操作的公共函数 by @ maxiaokai1996 in #2661
- fix: 修复 readyState 判断问题 by @ dongmucat in #2705
- fix: tsconfig 问题 by @ ianzone in #2805
- 🎨 代码重构
- refactor(useTheme): 提高代码可读性 by @ w2xi in #2803
- Refactor jest to vitest by 2814 by @ Meet-student in #2818
- 📖 文档修复
- docs: 修复 useClickAway 在 React 19 中的示例 by @ li-jia-nan in #2798
- docs: 修复 useFusionTable 在 React 19 中的示例 by @ li-jia-nan in #2799
- ✅ 测试更新
- test(use-url-state): 使用 vitest 进行测试 by @ ianzone in #2804
- test(createDeepCompareEffect): 使用 vitest 进行测试 by @ ianzone in #2807
- test(createUpdateEffect): 使用 vitest 进行测试 by @ ianzone in #2810
- test(useBoolean): 使用 vitest 进行测试 by @ ianzone in #2813
- test(useStorageState): 使用 vitest 进行测试 by @ ianzone in #2811
- test(useAsyncEffect): 使用 vitest 进行测试 by @ ianzone in #2812
- 👷 CI 相关
- ci: 添加 pkg.pr.new by @ Wxh16144 in #2722
- 🆕 New Features
- feat: usemount supports destructor by @ iambimo24 in #2713
- type: The parameter type of useUrlState adds an array by @ zhuleizhang in #2790
- 🔧 Configuration Updates
- chore: Update development dependencies by @ li-zhen-zhennnnnn in #2802
- chore: Upgrade dependency versions and use nodejs v20,22 in CI by @ ianzone in #2800
- 🐛 Bug Fixes
- fix: Fix the unknown type issue of createUseStorageState by @ Meet-student in #2795
- fix: Fix the problem that when useRequest starts more than two polling requests, if the page is set to hide to stop polling, and the page is redisplayed, some requests do not automatically start polling. by @ JaxonJay in #2688
- fix: Fix the timing competition issue of useInfiniteScroll by @ duwenhan2byte in #2786
- fix: Extract common functions for set operations by @ maxiaokai1996 in #2661
- fix: Fix the readyState judgment issue by @ dongmucat in #2705
- fix: Fix tsconfig issues by @ ianzone in #2805
- 🎨 Code Refactoring
- refactor(useTheme): Improve code readability by @ w2xi in #2803
- Refactor jest to vitest by 2814 by @ Meet-student in #2818
- 📖 Documentation Fixes
- docs: Fix the useClickAway demo in React 19 by @ li-jia-nan in #2798
- docs: Fix the useFusionTable demo in React 19 by @ li-jia-nan in #2799
- ✅ Test Updates
- test(use-url-state): Use vitest for testing by @ ianzone in #2804
- test(createDeepCompareEffect): Use vitest for testing by @ ianzone in #2807
- test(createUpdateEffect): Use vitest for testing by @ ianzone in #2810
- test(useBoolean): Use vitest for testing by @ ianzone in #2813
- test(useStorageState): Use vitest for testing by @ ianzone in #2811
- test(useAsyncEffect): Use vitest for testing by @ ianzone in #2812
- 👷 CI Related
- ci: Add pkg.pr.new by @ Wxh16144 in #2722
- @ zhuleizhang made their first contribution in #2790
- @ li-zhen-zhennnnnn made their first contribution in #2802
- @ Meet-student made their first contribution in #2795
- @ w2xi made their first contribution in #2803
- @ iambimo24 made their first contribution in #2713
- @ JaxonJay made their first contribution in #2688
- @ duwenhan2byte made their first contribution in #2786
- @ maxiaokai1996 made their first contribution in #2661
- @ dongmucat made their first contribution in #2705
-
3.9.0 - 2025-06-28
- 🆕 新功能
- 由 @ li-jia-nan 贡献,在 #2776 中为 ahooks 添加了 cursor rules。
- ⬆️ 依赖升级
- 由 @ li-jia-nan 贡献,在 #2775 支持 React 19。
- 🐛 Bug 修复
- 由 @ Triumph-light 贡献,在 #2778 中修复了运行开发环境的问题。
- 由 @ ZephyrAndMoon 贡献,在 #2785 中修改了
- 📖 文档更新
- 由 @ cwen-jdoit 贡献,在 #2678 中更新了
- 由 @ superBigPotato 贡献,在 #2680 中修改了
- 由 @ xbsheng 贡献,在 #2787 中更新了
- 🆕 New Features
- Contributed by @ li-jia-nan, added cursor rules for ahooks in #2776.
- ⬆️ Dependency Upgrade
- Contributed by @ li-jia-nan, upgraded the project to React 19 in #2775.
- 🐛 Bug Fixes
- Contributed by @ Triumph-light, fixed the issue of running the development environment in #2778.
- Contributed by @ ZephyrAndMoon, modified the problem that the long - press event of
- 📖 Documentation Updates
- Contributed by @ cwen-jdoit, updated the documentation of
- Contributed by @ superBigPotato, modified the documentation description of
- Contributed by @ xbsheng, updated the path of
- @ Triumph-light made their first contribution in #2778
- @ ZephyrAndMoon made their first contribution in #2785
- @ cwen-jdoit made their first contribution in #2678
- @ superBigPotato made their first contribution in #2680
from ahooks GitHub release notesWhat's Changed
New Contributors
Full Changelog: v3.9.4...v3.9.5
What's Changed
💪 chore: 测试命令改进。由 @ Meet-student 贡献,详情见 PR #2835
🐞 fix: 修复 reloadAsync runAsync 负载问题。由 @ Meet-student 贡献,详情见 PR #2836
💪 chore: Test command improvement. Contributed by @ Meet-student, see PR #2835 for details.
🐞 fix: Fix the payload issue of reloadAsync runAsync. Contributed by @ Meet-student, see PR #2836 for details.
Full Changelog: v3.9.3...v3.9.4
What's Changed
useRequest在配置cachekey后,某些情况下不执行onSuccess方法的问题 (#2035) @ xun-zi #2255useMount返回 Promise 的问题 @ Meet-student #2833onSuccessmethod ofuseRequestwas not executed in some cases after configuringcachekey(#2035) @ xun-zi #2255useMountreturning a Promise @ Meet-student #2833New Contributors
Full Changelog: v3.9.1...v3.9.3
What's Changed
New Contributors
Full Changelog: v3.9.0...v3.9.1
What's Changed
useLonePress在特殊设备、特殊情况下长按事件不触发的问题。useLocalStorageState的文档。useClickAway文档描述,使Target属性支持函数。style.css的路径。useLonePressdoes not trigger under special devices and special circumstances in #2785.useLocalStorageStatein #2678.useClickAwayto make theTargetproperty support functions in #2680.style.cssin #2787.New Contributors
Full Changelog: v3.8.5...v3.9.0
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJjMzVhNjUxZi1lZjMxLTQ0M2QtOGYxZC00MTNmZGI1ZjVmYTAiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImMzNWE2NTFmLWVmMzE...