v4.0.0
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
andmax
options have been removed in favour oflength: number | { min: number, max: number }