Skip to content

v0.2.0

Choose a tag to compare

@renzp94 renzp94 released this 18 Jun 01:51
· 95 commits to main since this release

0.2.0 (2024-06-18)

⚠ BREAKING CHANGES

  • array(union): array(union): 移除union的strict模式使用SameValueZero比较
  • array(intersection): array(intersection): 移除intersection的strict模式使用SameValueZero比较
  • array(unique): array(unique): 移除unique的strict模式使用SameValueZero比较
  • array(difference): array(difference)第二个参数filter改为options.filter

新功能

  • other: 添加equal(是否相等)方法 (fcf1f58)

代码重构

  • array(difference): 调整difference使用SameValueZero进行比较并且调整filter传参方式 (2c0de38)
  • array(intersection): 移除intersection的strict模式使用SameValueZero比较 (38531c2)
  • array(union): 移除union的strict模式使用SameValueZero比较 (a794dbc)
  • array(unique): 移除unique的strict模式使用SameValueZero比较 (62defe6)

其他

  • array(xor): 使用公共的FilterOptions类型 (56e904d)

文档

  • array(difference): 调整difference文档 (2d8a17c)
  • array(intersection): 调整intersection文档 (d032e0c)
  • array(union): 调整union文档 (c7ed06d)
  • array(unique): 调整unique文档 (bf01ca2)
  • array(xor): 调整xor文档 (1e4029c)
  • other: 添加equal文档 (f9aa457)