Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: Upgrade fictional 1.0.0 -> 2.0.0
Fixes `someOf()` when range tuple (e.g. `copycat.someOf(seed, [1, 2], ['a','b','c'])`) is given for `range` parameter instead of number (e.g. `copycat.someOf(seed, 2, ['a','b','c'])`). Previously this case would have always (incorrectly) returned an empty array (`[]`). BREAKING CHANGE While this fixes a bug, it is still technically a breaking change: if `copycat.someOf()` is currently being given a range tuple (e.g. `copycat.someOf(seed, [1, 2], ['a','b','c'])`), results for the same input would change from (incorrectly) being an empty array (`[]`), to (correctly) being an array of items of a size within the given range.
- Loading branch information