All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
0.23.1 (2025-12-18)
Note: Version bump only for package @monorepo/uni-network
0.23.0 (2025-10-27)
- support more request options, omit request/upload/download config nullish value (24f7619) - by @
0.22.0 (2025-09-16)
- improve types
- improve types (de364a9) - by @
0.21.5 (2025-07-24)
- allow no instanceConfig and use {} (ed30fd3) - by @
0.21.4 (2025-07-24)
0.21.3 (2025-05-15)
- useUn narrow type of data when initialValue is provided, https://github.com/vueuse/vueuse/pull/4419/files (33ef53b) - by @
0.21.2 (2025-05-14)
- fix the Un constructor implementation to treat the config argument as optional, axios/axios#6881 (7086fb8) - by @
0.21.1 (2025-03-25)
- fix buildFullPath judgement (fbe706a) - by @
0.21.0 (2025-03-18)
- add allowAbsoluteUrls option (79c4581) - by @
0.20.0 (2025-01-06)
- improve error handling (#56)
0.19.3 (2024-09-20)
- add the missed implementation of UnError#status property, axios#6573 (43b5bc5) - by @ModyQyW
- allow vueuse v11 (cd84a78) - by @ModyQyW
- disregard protocol-relative URL to remediate SSRF, axios#6539 (025cd49) - by @ModyQyW
- fix main entry (7c6561c) - by @ModyQyW
- fix node10 ts support (ad3b98c) - by @ModyQyW
- replace statuses with statuses-es for better compact compatibility (#53) (4806357) - by @wtto00
- fix: 迭代对象键时跳过 constructor 和私有属性
- fix: 修复类型
- feat!: 优化类型
- 移除了不安全的声明合并,@typescript-eslint/no-unsafe-declaration-merging
- 移除了潜在有害的方法速记语法 Method Shorthand Syntax,Method Shorthand Syntax Considered Harmful
- fix(composables): 对齐 vueuse v10.8.0 改动
- fix: 封装错误以改进异步堆栈跟踪,仅捕获处理原生错误对象的异步堆栈
- fix(composables): 对齐 vueuse v10.7.2 改动
- feat!: 默认使用 fast-querystring 而不是 query-string 序列化
paramsquery-string@8.1.0和它所依赖的库存在try {} catch {}的用法,该用法不受支付宝小程序支持,需要用户侧额外处理
- feat!: 现在要求
node>=18
- fix: 移除默认的 timeout 值,修复 H5 端请求立即超时的问题,关闭 #37
-
feat!: 默认使用 query-string 而不是 qs 序列化
paramsquery-string@8.1.0支持node >= 14.16,没有过多的历史包袱,而qs@6.11.2至今还在支持node >= 0.6qs@6.10.0开始引入了get-intrinsic,结合微信小程序和微信小程序插件使用时会出现报错,参考 #31,而query-string@8.1.0没有这个问题- 如果你的
params对象内某个键的值为对象、数组或 Date,表现行为会不一致 - 如果你更倾向于使用该库 0.15.0 版本或更早版本的默认设置,请安装
qs@6.9.7,并设置paramsSerializer
{ ..., paramsSerializer: (params: Record<string, any>) => { return Object.prototype.toString.call(params).includes('URLSearchParams') ? params.toString() : qs.stringify(params); }, ..., }
- feat(composables)!: 调整返回的
errorRef 类型为unknown,对齐vueuse@10行为,查看 vueuse/vueuse#2807 了解更多 - feat(composables)!: 使用
PromiseLike替换Promise,对齐vueuse@10行为,查看 vueuse/vueuse#2485 了解更多 - feat(composables): 增加
onFinish选项,对齐vueuse@10行为,查看 vueuse/vueuse#2829 了解更多 - feat(composables): 增加
initialData和resetOnExecute选项,对齐vueuse@10行为,查看 vueuse/vueuse#2791 了解更多 - fix(composables): 修复
UnConfig类型使用
- feat: 新增组合式函数
和 0.13.1 一样,但又修复了一个 ci 问题。
和 0.13.1 一样,但修复了一个 ci 问题。
调整了部分代码风格,同时更新了文档。
- build: 使用
rollup构建 - perf:
mergeConfig实现调整
- fix: 移除构建中
qs相关代码以修复构建
误发布,请勿使用。
- fix: 修复构建
- perf: 明确导入类型
- perf: 分离
HttpStatusCode - perf: 暴露
mergeConfig和HttpStatusCode
- feat!: 要求
node >= 14.18,这是为了对标rollup和vite - feat: esm 优先,但仍然提供 cjs 支持
- fix: 修复导出
- perf: 构建包含
ramda、statuses和qs相关代码
- fix: 修复构建
- feat!: 迁移到
@uni-helper/uni-network,Uan前缀调整为Un - perf: 移除
lodash-es
- perf: 优化
params类型 - perf: 分离
mergeConfig方法 - fix: 修复
UanCanceler类型
- fix: 修复构建
- feat!: 重命名一些
request为task避免误导 - feat!: 调整类型,移除了
UanBaseXxx、UanRequestXxx、UanDownloadXxx、UanUploadXxx等类型,可直接使用UanXxx - feat: 支持
onProgress、onProgressUpdate、onDownloadProgress、onUploadProgressUpdate、onUploadProgress、onUploadProgressUpdate
- feat: 增加枚举数据
- fix: 修复类型定义
- perf: 优化类型定义
- feat!: 导出的
isCancel调整为isUanCancel
- fix: 修复了构建不正常的问题
- feat!: 现在要求使用
node >= 14.16 - feat!: 现在构建目标是
esnext - fix: 修复了构建不正常的问题
- feat!: 重命名为
uni-app-network
- perf: 更新
utils/extend,匹配axios改动
- fix: 修复导出
- fix: 修复导出
- fix: 修复类型
- fix: 修复类型
- fix: 导出全部类型
修复说明文档错误。
- fix: 修复类型
- feat: 迁移到 TypeScript
- feat: 增加导出
- perf: 移除多余的向后兼容代码
- fix: 修复构建
- test: 修复测试
- fix: 修复类型
- fix: 修复方法没有正确挂载的问题
- fix: 修复错误解构的问题
完全重写
- fix: 修复类型定义
- feat:
request支持使用字符串作为第一个参数 - feat:
useRequest支持使用字符串作为第一个参数 - fix: 修复类型定义
- fix: 修复导出
- fix: 修复
request配置错误的问题
- feat: 提供
request - feat: 提供
useRequest - feat: 提供
requestAdapter