Skip to content

v2.0.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@justinvdm justinvdm released this 04 Jan 12:37
· 54 commits to main since this release

⚠ BREAKING CHANGES

copycat.float() method has been rewritten: previously, output values would stay close to the min value give. With this release, output values will distribute more evenly across the (min, max) range of values.

This means that inputs for copycat.float() will now map to a different output. It is still deterministic - the same input will always map to the same output. It is just that after the upgrade the corresponding output for each input will have changed.

Migration notice:

We will release this change onto the main branch as v2.0.0 on 23 January 2024 at 12:00pm (noon) UTC. In the meantime, you can try out the new behaviour by using:

import { copycat } from '@snaplet/copycat/next'