Skip to content

v4.0.0

Compare
Choose a tag to compare
@justinvdm justinvdm released this 07 Feb 16:12
· 24 commits to main since this release

What's Changed

  • feat!: Replace phoneNumber {min,max} options with {min,max}Length by @justinvdm in #58
// before
copycat.phoneNumber(input, { min: 100000, max: 999999999 })
copycat.phoneNumber(input, { min: 100000000, max: 999999999 })

// after
copycat.phoneNumber(input, { length: { min: 6, max: 9 } })
copycat.phoneNumber(input,  { length: 9 })

BREAKING CHANGES

  • In the cases where the prefixes option is provided, copycat will now return a different output for the same input
  • The min and max options have been removed in favour of length: number | { min: number, max: number }