Skip to content

v5.0.0

Latest
Compare
Choose a tag to compare
@justinvdm justinvdm released this 22 Feb 13:45

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.

Full Changelog: v4.1.0...v5.0.0