Skip to content

Latest commit

 

History

History
1913 lines (1007 loc) · 83.7 KB

CHANGELOG.md

File metadata and controls

1913 lines (1007 loc) · 83.7 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.128.0 (2024-10-28)

Features

  • chooseFile: image 默认为 image/*;支持 afterElementReady 回调 (c1eade5)

4.127.0 (2024-10-07)

Features

  • orderByRules: OrderByRulesRuleArray (8efb614)

4.126.0 (2024-10-06)

Features

  • utils: 新增 orderByRules (faacc14)

4.125.2 (2024-09-29)

Bug Fixes

  • chooseFile: 选择取消监听优化 (3afd571)

4.125.1 (2024-09-29)

Bug Fixes

4.125.0 (2024-09-25)

Features

  • EventBus: 支持局部执行 (456905c)

4.124.0 (2024-09-24)

Features

  • EventBus: 支持一次性监听多个 (9408e55)

4.123.0 (2024-09-11)

Features

  • StringTemplate: 支持截断省略 (cae281c)

4.122.1 (2024-08-23)

Bug Fixes

  • Wechat: 修复 startVoiceRecord (82fa9f8)

4.122.0 (2024-08-22)

Features

  • Wechat: 新增音频录制、音频播放、音频上传相关 api (55ade1d)

4.121.0 (2024-08-22)

Features

4.120.0 (2024-08-07)

Features

  • StringTemplate: code 返回 null, undefined, true, false 时置空 (1d7e2c1)

4.119.0 (2024-08-07)

Features

  • StringTemplate: 支持仅代码渲染 (2c75262)
  • StringTemplate: 支持判断是否有代码块 (169505b)

4.118.0 (2024-08-06)

Features

  • asyncMemoize: 支持外部管理缓存 (f9ac5b3)

4.117.0 (2024-07-26)

Features

  • EventBus: 支持 filter 过滤回调 (8290e32)

4.116.0 (2024-07-08)

Features

  • react: useLocalStorage 兼容小程序 (de7d0ad)

4.115.0 (2024-06-06)

Features

4.114.0 (2024-06-03)

Features

4.113.3 (2024-03-17)

Bug Fixes

  • date: export type { FormatDateRenderer } (b7487de)

4.113.2 (2024-03-17)

Bug Fixes

  • date: export type FormatDateRenderer (664f033)

4.113.1 (2024-03-17)

Bug Fixes

  • date: 具名导出 formatDate (8c0958a)

4.113.0 (2024-03-16)

Features

  • vae: 支持抛出错误作为 message (0c94fb4)

4.112.0 (2024-03-08)

Features

  • utils: LocalStoragePlus 支持在小程序内使用 (865e0b2)

4.111.0 (2024-02-02)

Features

  • utils: chunkEqual 新增 consistent 选项 (ddeb341)

4.110.4 (2024-01-31)

Bug Fixes

  • vae: 对于数组,不再强制将 element 的验证移到最后 (9650708)

4.110.3 (2024-01-29)

Bug Fixes

4.110.2 (2024-01-29)

4.110.1 (2024-01-29)

Bug Fixes

  • 修复 export 没加上 .js 后缀的问题 (4137558)

4.110.0 (2024-01-29)

Features

  • 编译后的文件加上 .js 后缀以支持原生 ESM (1f336aa)

4.109.0 (2024-01-20)

Features

  • utils: 新增 inMiniProgramWebView (d7360a0)

4.108.0 (2024-01-18)

Features

  • createSubmit: 引入 id 唯一标识 (93a37c0)

4.107.0 (2024-01-11)

Features

  • vae: parse 失败时返回 message (866901c)

Bug Fixes

  • vae: 优化 string.{min,max,length} 的文案 (600c7ba)

4.106.0 (2024-01-02)

Features

  • vae: 新增 true, false (07fee13)

4.105.0 (2024-01-02)

Features

  • createSubmit: 可直接调用 success, fail (3e2b16a)

4.104.0 (2023-12-08)

Features

4.103.0 (2023-11-15)

Features

  • vae: object 新增 requiredFieldsAtLeastOne (42a85c3)

4.102.0 (2023-11-15)

Features

  • utils: 新增 desensitize 文本脱敏 (e5d056f)

4.101.0 (2023-10-27)

Features

  • vae: object 新增 shapeOfFields 方法 (7b0a95a)

4.100.0 (2023-10-10)

Features

Bug Fixes

  • vae: Nullable 应包含 null (6c95644)

4.99.3 (2023-10-10)

4.99.2 (2023-10-10)

Bug Fixes

4.99.1 (2023-10-09)

Bug Fixes

4.99.0 (2023-09-21)

Features

  • VaeSchema: 透出 options (ca21a6b)
  • vae: 新增 meta 方法设置一些额外的元数据 (9f77a04)

4.98.0 (2023-08-28)

Features

  • Wechat: config 返回 Promise (3217457)

4.97.0 (2023-08-28)

Features

4.96.1 (2023-08-28)

Bug Fixes

  • Wechat: uploadImage 内部作处理保证同时只能有一个图片在上传 (3c2afa1)

4.96.0 (2023-08-28)

Features

  • Wechat: chooseImage 返回 previewUrl (6a7cf36)

4.95.0 (2023-08-24)

Features

  • vae: VaeError message 优化 (aa10486)

4.94.0 (2023-08-18)

Features

  • vae: 支持 runtime (079c1ba)
  • vae: 相同 tag 的定义会被覆盖 (583e87b)

4.93.1 (2023-08-18)

4.93.0 (2023-08-18)

Features

  • vae: custom 新增默认信息 (0ecfcfc)

4.92.0 (2023-08-07)

Features

  • vae: 新增 cast 方法 (ef63d25)

4.91.0 (2023-08-07)

Features

4.90.0 (2023-08-07)

Features

  • vae: 新增 clone, pickFields, omitFields, optionalFields, requiredFields (5fe2131)

4.89.0 (2023-08-06)

Features

4.88.0 (2023-08-06)

Features

4.87.0 (2023-08-04)

Features

  • validator: 新增 getZhCN (1e47c14)

4.86.0 (2023-07-31)

Features

4.85.3 (2023-07-16)

Bug Fixes

4.85.2 (2023-07-14)

Bug Fixes

  • validator: 重写部分实现 (8f68b9b)

4.85.1 (2023-07-14)

4.85.0 (2023-07-14)

Features

  • validator: oneOf 支持 enum (ecbd9f6)

4.84.0 (2023-07-13)

Features

  • validator: 支持 ref rootValue (641875d)

Bug Fixes

  • validator: 修复 yup.GetSchema 的一些问题 (094bf83)

4.83.0 (2023-07-09)

Features

4.82.0 (2023-06-26)

Features

  • utils: 新增 toHttpsUrl (069a883)

4.81.0 (2023-06-26)

Features

  • utils: 新增 getEmailUrl (6eccb18)

4.80.0 (2023-06-26)

Features

  • utils: 新增 getSmsUrl (217d733)

4.79.0 (2023-06-10)

Features

  • asyncLimit: 调整入参 (ef67100)
  • utils: 新增 asyncMemoize (cd2cfca)

4.78.0 (2023-05-30)

Features

  • utils: 新增 makeConditionalArray (6f87b8f)

4.77.0 (2023-05-30)

Features

  • utils: 新增 asyncLimit (b1baa50)

4.76.1 (2023-05-30)

Bug Fixes

  • characterToCodepoint: 用 Array.from 代替 ... (5163b7c)

4.76.0 (2023-05-29)

Features

  • regexp: 新增 blobUrl (d1e1ba5)
  • utils: 新增 characterToCodepoint (f91d0db)

4.75.0 (2023-05-27)

Features

  • regexp: 新增 phoneNumberRegExpBuilder (4a09230)
  • utils: 新增 codepointToCharacter (eee8868)

4.74.0 (2023-05-27)

Features

  • regexp: 新增 blankCharsRegExpBuilder (db05dbf)
  • regexp: 新增 dataUrlRegExpBuilder (e4dc050)
  • regexp: 新增 emoji, email (59e0896)
  • 新增 regexp 分类 (a8f8fcc)

Bug Fixes

4.73.0 (2023-05-26)

Features

4.72.3 (2023-05-26)

4.72.2 (2023-05-26)

4.72.1 (2023-05-26)

4.72.0 (2023-05-26)

Features

  • utils: 新增 StringTemplate (7a62e93)

4.71.1 (2023-05-09)

Bug Fixes

  • prepareData: 仅支持函数形式 (4d55bce)

4.71.0 (2023-03-22)

Features

  • utils: 新增 toSingleLineString (2e43ceb)

4.70.0 (2023-03-08)

Features

  • utils: createSubmit 支持泛型 (e5f1e8a)

4.69.0 (2023-02-17)

Features

  • date: 新增 formatDistancePlus (668ccd5)

4.68.0 (2023-01-04)

Features

  • Wechat: 支持 beforeInvoke 回调 (1f4994c)

4.67.1 (2022-12-02)

Bug Fixes

4.67.0 (2022-11-14)

Features

  • types: add RequireAtLeastOne, RequireExactlyOne, RequireAllOrNone (1a09798)

4.66.0 (2022-11-03)

Features

  • utils: 新增 removeEmojiChars 从字符串中移除 emoji 字符 (81a752d)
  • utils: 新增 removeNonWordChars 从字符串中移除非单词字符(移除非英文单词、阿拉伯数字、汉字的所有字符) (14919e9)

4.65.1 (2022-10-19)

Bug Fixes

  • removeBlankChars: 新增 200E, 200F (fa9cbbf)

4.65.0 (2022-10-02)

Features

  • utils: 新增 removeBlankChars (fbf58db)
  • utils: 新增 toFullWidthString (9f9295f)
  • utils: 新增 toHalfWidthString (be3ca28)

4.64.0 (2022-09-30)

Features

  • utils: 新增 isElementVisible (16c149c)

4.63.3 (2022-09-15)

Bug Fixes

  • RichUrl: transform 应有 reject (7bf2425)

4.63.2 (2022-09-15)

Bug Fixes

  • RichUrl: transformFile 报错时应抛出 (0e915ce)

4.63.1 (2022-08-07)

4.63.0 (2022-08-07)

Features

  • utils: 新增 MiniProgramUrl (8907a29)

4.62.0 (2022-07-13)

Features

  • loopUntil: 可不传 fn (f8fc3b2)

4.61.0 (2022-05-05)

Features

  • types: export Simplify from type-fest (bcaea70)

4.60.0 (2022-04-11)

Features

  • utils: 新增 prepareData 准备数据 (f4c5045)
  • yup: 新增 allowEmptyString (43b7c99)

4.59.0 (2022-03-07)

Features

  • utils: 新增 asRequiredDeep 将给定的值 RequiredDeep 化 (feb381a)
  • utils: 新增 GeoCoord 地理坐标系转换工具 (b87f3bb)
  • Wechat: 新增 getLocation 方法 (8a833f8)

4.58.0 (2022-02-21)

Features

  • Calculator: 支持函数返回数组 (04cc3c9)

4.57.0 (2022-02-14)

Features

  • Calculator: 支持四则运算 (0fde095)

4.56.0 (2022-02-12)

Features

  • Calculator: 可通过 make 创建新的计算器 (cf1a02b)

4.55.0 (2022-01-25)

Features

  • LocalStoragePlus: 新增 increase, decrease (d4e9dd9)
  • utils: 新增 Calculator 科学计算器 (5880148)

Bug Fixes

  • wait.reject: 将返回结果的类型设为 never (5ef338a)

4.54.0 (2022-01-24)

Features

  • 类型更新 (8c2f6f6)
  • devOrProd: 支持自定义判定 (ebd8320)
  • LocalStoragePlus: 添加静态方法支持 (0c20f39)
  • LocalStoragePlus: set 支持传入函数根据上一个值返回新值 (6eb4138)
  • utils: 新增 LocalStoragePlus (1b98102)
  • validator: 优化 when 的类型 (5206139)

4.53.0 (2021-11-29)

Features

  • validator: 为 ref 添加 map 支持 (4bc0a78)

4.52.0 (2021-11-19)

Features

  • utils: 新增 cartesianProduct 计算多个数组的笛卡尔积 (0ac3d87)

4.51.1 (2021-11-17)

Bug Fixes

  • signal: 多个初始 get 表现正常 (ac4d063)

4.51.0 (2021-11-17)

Features

4.50.0 (2021-11-12)

Features

  • validator: number 新增 nonPositive, nonNegative 规则 (a0d1f9c)

4.49.0 (2021-11-11)

Features

  • validator: number 新增 positiveInteger, negativeInteger, nonpositiveInteger, nonnegativeInteger (56c0abf)

4.48.1 (2021-11-08)

Bug Fixes

  • date: 导出的语言包后面加上 Locale (d1bb828)

4.48.0 (2021-11-08)

Features

  • date: 新增 ms 获取毫秒值 (ad6a6eb)
  • dedent: 支持通过函数调用处理纯文本 (8f0e27d)

4.47.0 (2021-11-02)

Features

4.46.3 (2021-11-01)

Bug Fixes

  • 小程序类型不在内部引入 (a057a01)

4.46.2 (2021-10-20)

Bug Fixes

  • createSubmit: start 的 message 可选 (e3c8c55)
  • devOrProd: 类型设置默认值 (4f6784d)

4.46.1 (2021-10-18)

Bug Fixes

  • EventBus: 解决 off 问题 (277149e)

4.46.0 (2021-10-18)

Features

  • EventBus: 新增 clear, destroy (38558f6)

4.45.0 (2021-10-12)

Features

  • yup: number 新增 id() (fa19939)

4.44.0 (2021-10-08)

Features

  • utils: 新增 selectElement,selectElementLast,selectElementExists,selectElementAll (8707b46)

4.43.0 (2021-10-08)

Features

  • utils: 新增 htmlToDocumentFragment,htmlToElement (313cf9d)

Bug Fixes

  • DataPacker: 兼容 v2 的 StructuredListTransformer 产生的数据 (d6cc8cb)

4.42.3 (2021-10-03)

Bug Fixes

  • yup 的类型定义不再挂在 yup/es 下 (6aa8c6e)

4.42.2 (2021-10-03)

Bug Fixes

4.42.1 (2021-09-29)

Bug Fixes

  • chunkEqual: 修复临界值错误 (1a08efe)

4.42.0 (2021-09-29)

Features

  • utils: 新增 chunkEqual (eb6f101)

Bug Fixes

4.41.1 (2021-09-28)

Bug Fixes

  • devOrProd: 类型优化 (449f957)

4.41.0 (2021-09-28)

Features

  • utils: 新增 devOrProd 开发环境和生产环境返回不同的值或调用不同的函数 (4798f2f)

4.40.1 (2021-09-27)

4.40.0 (2021-09-27)

Features

  • yup: test 第一个参数可传函数或正则并更新类型定义 (d68da3c)

4.39.0 (2021-09-24)

Features

  • utils: 新增 loopUntil 循环调用某个函数直至达到某个条件后返回调用结果 (aaa25c0)

4.38.0 (2021-09-24)

Features

  • utils: 新增 defaultIndexTo 设置索引的默认值 (7b2f359)

4.37.0 (2021-09-23)

Features

  • formatDate: 渲染器支持字符串 (431b16e)

4.36.0 (2021-09-15)

Features

  • utils: 新增 roundTo 保留 n 位小数下的 x 舍 y 入 (aeb6886)

4.35.1 (2021-09-09)

Bug Fixes

  • 声明 yup.js 有副作用,防止 webpack 将增强代码删除 (97ab1d3)

4.35.0 (2021-09-02)

Features

  • utils: 新增 moveUp, moveDown, moveToTop, moveToBottom (27eaf97)

4.34.3 (2021-08-14)

4.34.3-beta.0 (2021-08-11)

Features

  • loadResource: 支持 hook (2473759)
  • loadResource: 支持 hook、jsText、cssText (b39a549)
  • utils: 新增 getCurrentScript 返回当前正在运行的脚本所属的 <script> 元素 (d2a93d8)
  • utils: 新增 jsonp 发起 jsonp 请求 (1c2ae89)

Bug Fixes

  • deps: update dependency antd to v4.16.10 (a03a0c4)
  • deps: update dependency antd to v4.16.11 (2012ed1)
  • deps: update dependency antd to v4.16.8 (c553a02)
  • deps: update dependency antd to v4.16.9 (32541a9)
  • loadResource: 加载 js 默认走 async (4e944ac)
  • yup 内部维护 (a49dbdd)

4.34.2 (2021-07-14)

Bug Fixes

  • move: 对空数组移动应返回空数组 (f93f090)

4.34.1 (2021-07-13)

Bug Fixes

  • deps: update dependency antd to v4.16.7 (4b9e184)
  • TreeData: fromList 算法优化 (d911d74)

4.34.1-beta.6 (2021-07-11)

4.34.1-beta.5 (2021-07-10)

4.34.1-beta.4 (2021-07-10)

4.34.1-beta.3 (2021-07-10)

Features

  • copyTextToClipboard: 可设置复制容器类名 (5231b8d)

4.34.1-beta.2 (2021-07-10)

Bug Fixes

  • TreeData.fromList: 优化根节点的判定逻辑 (4222744)

4.34.1-beta.1 (2021-07-07)

4.34.1-beta.0 (2021-07-07)

Bug Fixes

  • deps: update dependency antd to v4.14.1 (0d1d416)
  • deps: update dependency antd to v4.15.0 (7cbbca8)
  • deps: update dependency antd to v4.15.2 (f8021cb)
  • deps: update dependency antd to v4.15.3 (dbab174)
  • deps: update dependency antd to v4.15.4 (10548f6)
  • deps: update dependency antd to v4.15.5 (677cfc5)
  • deps: update dependency antd to v4.15.6 (cbe9040)
  • deps: update dependency antd to v4.16.0 (9e50535)
  • deps: update dependency antd to v4.16.1 (901a3ca)
  • deps: update dependency antd to v4.16.2 (3b96bc2)
  • deps: update dependency antd to v4.16.3 (d20f221)
  • deps: update dependency antd to v4.16.5 (0a08be1)
  • deps: update dependency antd to v4.16.6 (fd4e2af)
  • 更新依赖;使用 yarn 作为包管理工具 (f8748e7)

4.34.0 (2021-03-18)

Features

  • createSubmit: 支持 throw 异常回调 (2b5e9fb)

Bug Fixes

  • deps: update dependency antd to v4.13.1 (053b0f7)
  • deps: update dependency emotion to v11 (bad0318)

4.33.0 (2021-03-03)

Features

  • types: 导出 UnionToIntersection (8a17fd6)

4.32.12 (2021-03-03)

Bug Fixes

4.32.11 (2021-02-22)

Bug Fixes

  • dev: 移除 babel plugin import (dd07a49)

4.32.10 (2021-02-22)

4.32.9 (2021-02-22)

Bug Fixes

4.32.8 (2021-02-22)

4.32.7 (2021-02-22)

4.32.6 (2021-02-22)

4.32.5 (2021-02-22)

4.32.4 (2021-02-22)

4.32.3 (2021-02-22)

Bug Fixes

4.32.2 (2021-02-22)

Bug Fixes

4.32.1 (2021-02-22)

Bug Fixes

  • dev: getBabelPluginImportList (d9b3848)

4.32.0 (2021-02-22)

Features

  • dev: 新增 getBabelPluginImportList (603843e)

4.31.0 (2021-02-19)

Features

  • utils: 新增 sampleBy, sampleIndex (7df6ac8)

Bug Fixes

4.30.2 (2021-02-01)

Bug Fixes

  • DataPacker: packAsRawType (97fa9fd)

4.30.1 (2021-02-01)

Bug Fixes

4.30.0 (2021-02-01)

Features

  • 使用 DataPacker 替换 ListWrapper (220c5be)

4.29.0 (2021-01-30)

Features

  • useLoadMore: 导出 setData (4c7546e)

4.28.0 (2021-01-25)

Features

  • types: 新增 IsEmptyArray (7d3bdbd)
  • types: 新增 IsEmptyObject (c056fd9)

4.27.0 (2021-01-20)

Features

4.26.0 (2021-01-19)

Features

  • createGlobalState: 新增 setStatePartial (9c76e5a)

Bug Fixes

  • createGlobalState: 类型重载 (72e772b)

4.25.0 (2021-01-18)

Features

4.24.0 (2021-01-15)

Features

4.23.0 (2021-01-14)

Features

4.22.1 (2021-01-14)

4.22.0 (2021-01-14)

Features

  • utils: 新增 ListWrapper 列表打包器 (54644fb)

4.21.0 (2021-01-13)

Features

  • createGlobalState: 添加 watchStateImmediate (5452019)

4.20.0 (2021-01-13)

Features

  • types: 新增 NonEmptyArray 非空数组类型 (cecf602)

4.19.0 (2021-01-12)

Features

4.18.0 (2021-01-11)

Features

4.17.0 (2021-01-08)

Features

  • utils: 新增 ii 立即调用函数并返回其返回值 (362ccd3)
  • utils: 新增 pMap (449332d)

4.16.1 (2021-01-04)

Bug Fixes

  • renderComponent: 修正 key 赋值时机 (516456e)

4.16.0 (2021-01-04)

Features

  • useStaged: 支持 reset 重置暂存状态 (8edd7e1)

4.15.0 (2021-01-04)

Features

  • react: 新增 useStaged 暂存状态 (7fd1181)

4.14.1 (2021-01-03)

Bug Fixes

4.14.0 (2021-01-03)

Features

  • cloneDeep,TreeData: 支持 ignore (f9bb684)

4.13.2 (2020-12-31)

Bug Fixes

  • validator: mixed 默认 any (a6c5b71)

4.13.1 (2020-12-30)

Bug Fixes

  • renderComponent: 生成默认 key 值 (ceae5f1)

4.13.0 (2020-12-29)

Features

  • renderComponent: 支持设置渲染容器 (4150947)

4.12.0 (2020-12-25)

Features

  • types: export Class, Asyncify (739aa6e)

4.11.1 (2020-12-24)

4.11.0 (2020-12-24)

Features

  • validator: 优化提示文本 (492c695)
  • x: 新增 sha1 (d69393a)
  • x: 新增 WechatMessageCrypto 微信公众号消息加解密 (c106915)

4.10.1 (2020-12-22)

4.10.0 (2020-12-22)

Features

  • x: 新增 RedisCookieJar 使用 Redis 作为 Cookie Jar (2815e13)

4.9.1 (2020-12-21)

Bug Fixes

  • indent,dedent: 插入值支持 number 类型 (926b7cb)

4.9.0 (2020-12-21)

Features

  • createXml: 添加 array 辅助方法 (c1e0de1)

4.8.0 (2020-12-21)

Features

  • TreeData: 新增 traverseNode 遍历节点 (c5dd7b1)
  • x: 新增 cuid、uuid (e938c99)
  • x: 新增 parseXml、createXml (1ee40c7)

4.7.0 (2020-12-19)

Features

  • TreeData: 遍历优化 (f432090)
  • TreeData: 遍历算法优化 (e7a8cf8)
  • utils: 新增 cloneDeepFast 深克隆 (704704b)

4.6.0 (2020-12-14)

Features

  • TreeData: 新增 exportList 方法导出一维列表数据 (66cf34d)
  • TreeData: 新增 filter 方法筛选符合条件的节点 (df07544)

4.5.0 (2020-12-14)

Features

  • TreeData: 新增 fromList 方法从列表生成实例 (5516106)

4.4.2 (2020-12-12)

4.4.1 (2020-12-12)

4.4.0 (2020-12-12)

Features

  • TreeData: 优化遍历算法 (954af64)
  • TreeData: 新增 removeNode、removeNodes、count (7c009f3)

4.3.0 (2020-12-12)

Features

  • TreeData: 新增 clone 方法克隆实例 (e08ad66)

4.2.1 (2020-12-11)

Bug Fixes

  • TreeData: findNodePath、findNodePaths 的结果应包含当前节点 (53edbb2)

4.2.0 (2020-12-11)

Features

  • TreeData: 新增 findNode、findNodes、findNodePath、findNodePaths 方法 (7217a3a)

4.1.0 (2020-12-08)

Features

  • utils: 新增 isBlobUrl 检测传入值是否是 Blob URL (5654306)
  • utils: 新增 loadCss 加载 CSS 样式 (70e4727)

Bug Fixes

  • 不打包 validator 的类型定义 (7d4bd9a)

4.0.0 (2020-12-07)

Features

  • utils: 新增 TreeData 处理树数据 (23df907)
  • wait: 支持返回值 (2d1b63e)
  • wait: 新增 wait.reject (e9314c8)

4.0.0-beta.7 (2020-11-27)

Features

  • createUrlQueryString,parseUrlQueryString: 支持自定义连接符 (a7d02bd)
  • utils: 新增 isDataUrl (80b3a0c)
  • utils: 新增 parseDataUrl (b67d872)

4.0.0-beta.6 (2020-11-26)

Bug Fixes

4.0.0-beta.5 (2020-11-25)

Features

  • types: 新增 CamelCase, SnakeCase, KebabCase, PascalCase, DelimiterCase (0112b50)

4.0.0-beta.4 (2020-11-25)

Bug Fixes

  • chooseFile: 返回结果为只读数组 (d0fbac2)
  • deps: update dependency yup to ^0.31.0 (7859da5)

4.0.0-beta.3 (2020-11-23)

Bug Fixes

4.0.0-beta.2 (2020-11-23)

Bug Fixes

4.0.0-beta.1 (2020-11-22)

4.0.0-beta.0 (2020-11-22)

Features

Bug Fixes

  • deps: update dependency yup to ^0.30.0 (500ad27)

3.53.0 (2020-11-18)

Features

  • utils: 新增 constantCase, pascalCase (3f78d8d)

3.52.0 (2020-11-18)

Features

  • chooseFile: 完善单测 (1d2190f)
  • utils: 新增 copyTextToClipboard 复制文本到剪切板 (52b437e)
  • utils: 新增 formatBytes 格式化字节数 (699789a)

3.51.0 (2020-11-17)

Features

  • utils: 新增 chooseFile 选择文件 (128b650)

3.50.2 (2020-11-12)

3.50.1 (2020-11-12)

Bug Fixes

  • types: 使用 api-extractor 打包类型文件 (b4c5bbe)

3.50.0 (2020-11-08)

Features

  • mp: 新增 getSceneParams、useSceneParams (0ab6f55)

3.49.3 (2020-10-11)

Bug Fixes

  • 回退 type-fest、文档生成不报错 (9fe92e1)

3.49.2 (2020-10-11)

3.49.0 (2020-10-10)

Features

  • date: 新增 formatDistanceAgo (2715dee)

3.48.0 (2020-09-26)

Features

  • Wechat: 添加 requestPayment 方法 (3827479)

3.47.0 (2020-09-19)

Features

  • useLoadMore: 返回数据兼容 list 属性代替 data 属性的情况 (f28212f)

3.46.0 (2020-09-19)

Features

  • react: 新增 useStateWithDeps (dff9b73)
  • types: 导出 PackageJson, TsConfigJson, JsonValue, JsonArray, JsonObject (59ecc3d)

3.45.0 (2020-09-17)

Features

  • navigatePageTo: 在页面真正切换后 Promise 才会被 resolve (35a5721)

3.44.1 (2020-08-31)

Bug Fixes

  • getCurrentPagePath: 从 utils 引入 last (6a5ef5f)

3.44.0 (2020-08-29)

Features

  • miniProgramBus: 新增 routeChange (5981d30)

3.43.1 (2020-08-28)

Bug Fixes

  • getCurrentPageQuery: 对值执行 decodeURIComponent (c46cacd)

3.43.0 (2020-08-28)

Features

  • mp: 新增 useShareAppMessage (b5b39fe)
  • mp: 新增 useTopBarInfo, useSubmit, usePullDownRefresh (19073ec)

Bug Fixes

  • patchMiniProgram: 页面展示时更新当前页面 ID (033a818)

3.42.0 (2020-08-27)

Features

  • miniProgramBus: 优化实现,支持返回数据类回调 (aa9a690)

Bug Fixes

  • miniProgramBus: 页面卸载时移除对当前页面的监听 (b04d161)

3.41.1 (2020-08-27)

Bug Fixes

  • miniProgramBus: toUpperCase (d50819b)

3.41.0 (2020-08-26)

Features

  • EventBus: 支持 beforeEmit, beforeOn, tag (ed28ce6)
  • mp: 新增 miniProgramBus (9538763)

3.40.0 (2020-08-25)

Features

  • inMiniProgram: 添加 $brand 表示小程序品牌 (7e84e77)
  • mp: 添加 patchMiniProgram (b6d0669)

Bug Fixes

  • getCurrentPagePath: 兼容字节跳动小程序 (7c33241)
  • navigatePageTo: 兼容支付宝小程序 (f102307)

3.39.0 (2020-08-25)

Features

  • mp: navigatePageTo 支持 query (71b461e)
  • mp: 完善注释 (f0781f7)
  • mp: 新增 getCurrentPagePath, getCurrentPageQuery, getCurrentPageUrl (9308bec)

3.38.0 (2020-08-25)

Features

  • utils: 新增 createUrlQueryString, parseUrlQueryString (7cd3152)

3.37.2 (2020-08-25)

3.37.1 (2020-08-25)

3.37.0 (2020-08-25)

Features

  • mp: 新增 getTopBarInfo, submit (8cfa77d)
  • mp: 新增 navigatePageBack (0b5224e)
  • 新增 mp 系列工具 (2cf912a)

3.36.3 (2020-08-23)

Bug Fixes

  • useSearchParam.taro: 兼容 taro 3.0.8 (c797ed2)
  • pika -> skypack (dfa769a)

3.36.2 (2020-08-21)

Bug Fixes

3.36.1 (2020-08-17)

Bug Fixes

  • validateInOrder, validateInOrderSync: 支持未定义的键 (7296494)

3.36.0 (2020-08-13)

Features

  • yup: 添加 validateInOrder, validateInOrderSync 支持按顺序验证对象 (50a1c42)
  • yup: 添加 validatePlus, validatePlusSync 方法 (8dbc288)

3.35.0 (2020-08-13)

Features

  • utils: 新增 createSubmit (9f07d41)

3.34.3 (2020-08-08)

3.34.2 (2020-08-07)

Bug Fixes

  • react: 将导出加入 prettier-ignore (6b01d1a)

3.34.1 (2020-08-07)

Bug Fixes

  • react: 手动导出以解决 cjs 下 Cannot redefine property 的问题 (11fb15c)

3.34.0 (2020-08-06)

Features

  • useControllableValue: 支持重置值 (0ffb359)

3.33.0 (2020-08-06)

Features

  • useControllableValue: 支持 alwaysUpdateValue (18c0379)

3.32.1 (2020-08-06)

Bug Fixes

  • deps: update dependency miniprogram-api-typings to v3 (410ece7)

3.32.0 (2020-07-27)

Features

  • useControllableValue: 支持设置默认值 (e9fa831)

3.31.1 (2020-07-25)

Bug Fixes

  • defineComponent: 修复类型定义 (472aecd)

3.31.0 (2020-07-25)

Features

  • react: ExtendComponentProps 更名为 DeriveComponentProps (f7fe455)

3.30.0 (2020-07-25)

Features

  • react: 新增 CommonComponentProps (edcd28d)

3.29.0 (2020-07-24)

Features

  • react: 新增 useEnvironment (7db160e)
  • utils: 新增 getEnvironment (6e09372)

Bug Fixes

  • deps: update dependency miniprogram-api-typings to ^2.11.0 (4b31555)

3.28.0 (2020-07-23)

Features

  • inAndroid: 支持在小程序中使用 (b3db043)
  • inIOS: 支持在小程序中使用 (e804fb8)
  • inMiniProgram: 在小程序中时,现在会返回小程序 API 挂载的全局对象 (ba90ab8)
  • utils: inWechat 更名为 inWechatWebView (1d341e4)

3.27.0 (2020-07-22)

Features

  • utils: 新增 inMiniProgram (7685872)
  • utils: 新增 inTaro (19ad7f3)

3.26.0 (2020-07-22)

Features

Bug Fixes

  • useInterval: 修正测试用例 (8d45de0)

3.25.4 (2020-07-22)

Bug Fixes

  • ExtendComponentProps: 修复 TOverride 的类型定义 (3051055)

3.25.3 (2020-07-21)

Bug Fixes

  • useInterval: 修复测试问题 (7688b13)

3.25.2 (2020-07-21)

Bug Fixes

  • defineComponent: defaultProps 始终可选 (3c21a39)

3.25.1 (2020-07-21)

Bug Fixes

  • defineComponent: defaultProps 定义优化 (86cf2ef)

3.25.0 (2020-07-20)

Features

  • react: 新增 defineComponent (a9c95d7)
  • react: 新增 ExtendComponentProps (a1c30c1)
  • react: 新增 isVisibleValue (a368e51)
  • react: 新增 renderComponent (ceecb28)
  • react: 新增 useControllableValue (da57d15)

Bug Fixes

  • defineComponent: 组件的内部属性去除 key 和 ref (57196ff)

3.24.1 (2020-07-18)

3.24.0 (2020-07-18)

Features

  • utils: 新增 getWechatPublicAccountQrcodeUrl (398c886)

3.23.0 (2020-07-17)

Features

  • react: 新增 useWindowSize (7abcb23)

3.22.0 (2020-07-16)

Features

  • useInterval: 支持 duration (15b7b2c)

3.21.1 (2020-07-16)

Bug Fixes

  • useLocalStorage: 更新实现 (1d44804)

3.21.0 (2020-07-16)

Features

  • react: 新增 useLocalStorage (7a415e0)

3.20.0 (2020-07-15)

Features

  • types: 新增 AnyAsyncFunction (b6d0602)
  • utils: 新增 onceMeanwhile (bfa244e)

3.19.0 (2020-07-15)

Features

  • utils: 新增 placeKitten (b154e21)

3.18.3 (2020-07-14)

Bug Fixes

  • indent: 后行断言部分浏览器暂不支持 (3262fa0)

3.18.2 (2020-07-13)

Bug Fixes

  • 锁定 standard-version 版本 (fc10dd3)

3.18.1 (2020-07-13)

3.18.0 (2020-07-13)

Features

  • taro: 新增 getTopBarInfo, useTopBarInfo (72e3f26)

3.17.0 (2020-07-10)

Features

3.16.0 (2020-07-10)

Features

  • taro: 新增 useAutoStopPullDownRefresh (4338980)

3.15.1 (2020-07-10)

Bug Fixes

  • useReachBottom.taro: 立即触发一次回调有误 (71323b0)

3.15.0 (2020-07-09)

Features

  • useInterval: 支持通过 delay 控制 (9da9d11)

3.14.0 (2020-07-09)

Features

  • react: 新增 useSearchParam (119a864)

3.13.0 (2020-07-09)

Features

  • react: 新增 useInterval (d7e942c)

3.12.0 (2020-07-09)

Features

  • date: 新增 intervalToRestrictiveDuration (cfdcc45)

3.11.1 (2020-07-09)

Bug Fixes

  • useLoadMore: 重新加载应重置 data (10389c5)

3.11.0 (2020-07-08)

Features

  • createGlobalState: 支持自定义结果 (e481ce0)

Bug Fixes

  • useLoadMore: 修复 data 的类型定义 (7cc7972)

3.10.1 (2020-07-08)

3.10.0 (2020-07-08)

Features

3.9.0 (2020-06-30)

Features

3.8.1 (2020-06-30)

Bug Fixes

  • createGlobalState: 延后注册的订阅不能获取最新值 (c4a0062)

3.8.0 (2020-06-28)

Features

3.7.1 (2020-06-28)

Bug Fixes

  • yup: 修复 webpack 报警告问题 (2e03e0c)

3.7.0 (2020-06-24)

Features

  • react: 新增 useReachBottom.taro (9afc481)

3.6.0 (2020-06-24)

Features

3.5.1 (2020-06-22)

3.5.0 (2020-06-22)

Features

3.4.0 (2020-06-19)

Features

  • createGlobalState: 支持 watchState (2412f3a)

3.3.1 (2020-06-18)

Bug Fixes

3.3.0 (2020-06-18)

Features

  • react: 新增 createGlobalState (037adcc)

3.2.0 (2020-06-15)

Features

3.1.2 (2020-06-15)

3.1.1 (2020-06-14)

3.1.0 (2020-06-14)

Features

3.0.1-beta.26 (2020-06-14)

3.0.1-beta.25 (2020-06-12)

3.0.1-beta.24 (2020-06-11)

3.0.1-beta.23 (2020-06-10)

3.0.1-beta.22 (2020-06-10)

3.0.1-beta.21 (2020-06-10)

3.0.1-beta.20 (2020-06-10)

3.0.1-beta.19 (2020-06-09)

3.0.1-beta.18 (2020-06-08)

3.0.1-beta.17 (2020-06-08)

3.0.1-beta.16 (2020-06-08)

3.0.1-beta.15 (2020-06-08)

3.0.1-beta.14 (2020-06-08)

3.0.1-beta.13 (2020-06-08)

3.0.1-beta.12 (2020-06-08)

3.0.1-beta.11 (2020-06-08)

3.0.1-beta.10 (2020-06-08)

3.0.1-beta.9 (2020-06-07)

3.0.1-beta.8 (2020-06-02)

3.0.1-beta.7 (2020-06-02)

Features

3.0.1-beta.6 (2020-05-31)

Features

3.0.1-beta.5 (2020-05-30)

Features

3.0.1-beta.4 (2020-05-29)

3.0.1-beta.3 (2020-05-29)

3.0.1-beta.2 (2020-05-29)

Bug Fixes

3.0.1-beta.1 (2020-05-29)

Features

3.0.1-beta.0 (2020-05-28)

Features