Since version 0.4.0, the automated testing tool will switch to Vitest, the package manager will switch to pnpm, and the bundler will switch to rollup, these modern tools will improve development efficiency and build performance.
This version introduces createFormData, which can encode an object into an ArrayBuffer of multipart/form-data in environments without native FormData, and can be sent directly as the request body. A common use case is uploading files in environments like WeChat Mini Programs.
- Feat 🥥 Function(s) added:
createFormDatacreateFormDataBoundary - Other fixes and improvements
从 0.4.0 版本开始, 自动化测试工具将改用 Vitest, 包管理工具将改用 pnpm, 打包工具将改用 rolldown, 这些现代化的工具将提升开发效率和构建性能
这个版本引入的 createFormData 可以在没有原生 FormData 的环境中, 将对象编码为 multipart/form-data 的 ArrayBuffer, 可直接作为请求体发送, 常见用途是在微信小程序等环境中上传文件
- 功能 🥥 添加函数:
createFormDatacreateFormDataBoundary - 其他修复与优化
Added Agent Skills
- Feat 🥥 Skill(s) added:
random-pickdeep-clone-any-object - Feat 🥥 Function(s) added:
randomize
添加了智能体技能(Agent Skills)
- 功能 🥥 添加技能:
random-pickdeep-clone-any-object - 功能 🥥 添加函数:
randomize
-
Fix 🥕 Bug fixed:
formatconfig optionsseparatoranddecimalnow support empty string input -
修复 🥕 缺陷修复:
format的配置项separator、decimal支持传入空字符串的
Added functions to generate CSV strings
- Feat 🥥 Function(s) added:
arrayToCSVobjectListToCSVcsvToArraycsvToObjectList - Feat 🥥 Function(s) change: Refactor
getGlobalThisto avoidReferenceErrorin some case - Other fixes and improvements
添加了生成 CSV 字符串的函数
- 功能 🥥 添加函数:
arrayToCSVobjectListToCSVcsvToArraycsvToObjectList - 功能 🥥 变更函数: 重写
getGlobalThis避免部分环境下调用出现ReferenceError - 其他修复与优化
-
Feat 🥥 Function(s) added:
constantCase -
Feat 🥥 Function(s) exposed:
transferNumberToSupUniCode -
Other fixes and improvements
-
功能 🥥 添加函数:
constantCase -
功能 🥥 公开函数:
transferNumberToSupUniCode -
其他修复与优化
Add a method to convert numbers to Chinese numerals
- Feat 🥥 Function(s) added:
chinaNumerals
添加了将数字转换为中文的方法
- 功能 🥥 添加函数:
chinaNumerals
Unstable version
Added some Base64 related methods
- Feat 🥥 Functions added:
encodeBase64decodeBase64blobToBase64base64ToBlobdeprecateand so forth - Other fixes and improvements
不稳定版本
添加了一些 Base64 相关的方法
- 功能 🥥 添加函数:
encodeBase64decodeBase64blobToBase64base64ToBlobdeprecate等 - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
uuidV7 - Feat 🥥 Function change:
isOddandisEvennow support BigInt - Fix 🥕 Document: Added version tags to several methods
- Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
uuidV7 - 功能 🥥 变更函数:
isOdd和isEven现在支持 BigInt - 修复 🥕 文档: 补充部分方法的版本标签
- 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
omitpick - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
omitpick - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
lerpscientificNotationcastArrayromanNumeralsrandomDistributionand so forth - Fix 🥕 Document: Added version tags to
memoand description to several methods - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
lerpscientificNotationcastArrayrandomDistribution等 - 修复 🥕 文档: 补充
memo的版本标签和部分方法的说明 - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
chunkdecimalNotationroundformatisPlainObjectcartesianProductand so forth - Feat 🥥 Type Utils:
NotIsNegativeIsZeroIsPositiveStringify - Fix 🥕 Document: Added version tags to 19 methods
- Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
chunkdecimalNotationroundformatisPlainObjectcartesianProduct等 - 功能 🥥 类型工具:
NotIsNegativeIsZeroIsPositiveStringify - 修复 🥕 文档: 补充 19 个方法的版本标签
- 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
indentand so forth - Use GitHub Actions to automate the npm publish/github release process
- Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
indent等 - 使用 GitHub Actions 实现自动化 npm 发版/github release 流程
- 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
capitalizedeepMergeisBloband so forth - Feat 🥥 Function change:
deepClonenow supportBlobandFile - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
capitalizedeepMergeisBlob等 - 功能 🥥 变更函数:
deepClone现在支持Blob和File - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
retryparallel - Change 🥟 Dependencies change: upgrade devDependencies
rollup@rollup/plugin-typescriptrollup-plugin-dtsvitepress - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
retryparallel - 变更 🥟 依赖变更: 升级开发依赖
rollup@rollup/plugin-typescriptrollup-plugin-dtsvitepress - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
defer - Fix 🥕 Bug fixed:
debouncedoesn't apply the last callee's arguments - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
defer - 修复 🥕 缺陷修复:
debounce没有传入最后一次获取的参数 - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
throttledebounceremoveandclamp - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
throttledebounceremove和clamp - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
memo - Feat 🥥 Function change:
rangenow support single parameter invocation, compatible with Radash - Fix 🥕 Bug fixed:
deepClonenow processesDataView.bufferproperly - Fix 🥕 Bug fixed: Correct type definition filepath
- Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
memo - 功能 🥥 变更函数:
range现在支持单个参数的调用, 与 Radash 兼容 - 修复 🥕 缺陷修复:
deepClone现在能正确处理DataView.buffer - 修复 🥕 缺陷修复: 修复了类型定义文件路径
- 其他修复与优化
Unstable version
- Change 🥟 Functions changed:
caseCamelcasePascalcaseKebabcaseSnakenow deprecated, will be removed in the future, usecamelCasepascalCasekebabCasesnakeCaseinstead - Feat 🥥 Functions added:
isTypedArrayrangetitleCasetryitwithResolversand so forth - Feat 🥥 Function change:
isEmptynow validates Date object - Feat 🥥 Function change:
fastClonenow clones FormData object - Wip 🍉 Function wip:
deepClonestill on progress - Other fixes and improvements
不稳定版本
- 变更 🥟 变更函数:
caseCamelcasePascalcaseKebabcaseSnake弃用,将来会移除,请改用camelCasepascalCasekebabCasesnakeCase - 功能 🥥 添加函数:
isTypedArrayrangetitleCasetryitwithResolvers等 - 功能 🥥 变更函数:
isEmpty现在会校验 Date 对象 - 功能 🥥 变更函数:
fastClone现在会复制 FormData 对象 - 开发中 🍉 函数开发中:
deepClone尚在开发中 - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
caseConvertuuidV4ulidand so forth - Feat 🥥 Misc functions added:
acceptableFileNameacceptableFileTypegetAcceptableExtByMIMEandgetAcceptableMIMEByExt - Fix 🥕 Bug fixed: Unexpected export
_fastClone - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
caseConvertuuidV4ulid等 - 功能 🥥 添加杂项函数:
acceptableFileNameacceptableFileTypegetAcceptableExtByMIME和getAcceptableMIMEByExt - 修复 🥕 缺陷修复: 不应导出
_fastClone - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
isEmptyshuffleisPrimitiveand so forth - Fix 🥕 Bug fixed:
isNil(document.all)expected to befalse - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
isEmptyshuffleisPrimitive等 - 修复 🥕 缺陷修复:
isNil(document.all)应为false - 其他修复与优化
Unstable version
- Feat 🥥 Functions added:
fastClonecomposegetTagand so forth - Feat 🥥 Function change:
currynow supports optional arguments - Fix 🥕 Bug fixed: Type hint for
passWithnow corrected - Other fixes and improvements
不稳定版本
- 功能 🥥 添加函数:
fastClonecomposegetTag等 - 功能 🥥 变更函数:
curry支持可选参数 - 修复 🥕 缺陷修复: 修复了
passWith的类型提示 - 其他修复与优化