Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Release 1.0.2

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Oct 07:11
· 20 commits to main since this release

πŸ’… Polish

  • fix: revert to number with toFixed(3) (230ec58)
    This release reverts #105 and will update the misMatchPercentage from a string back to a number. But, instead of using a toFixed(2) it uses toFixed(3).
    The reasons for this are:

    • the previous implementation with toFixed() converts a number into a string and we didn't transform this back to a number. This resulted in updating all tests from toEqual(0) to toEqual('0.00') which in the end also had issues with bigger or smaller than
    • the average screen resolution is around 1920x1080. I want this module to be able to detect at least a 10x10 pixel difference.
      1920x1080 = 2073600 pixels, a difference of 10x10 is 100 which means 0.005% difference (0.00482253).
      Number(0.00482253.toFixed(2)) = 0 and Number(0.00482253.toFixed(3)) = 0.005
  • chore: update resemble to v4.1.0 - fix tests - remove not needed code (e2dd712)
    Update ResembleJS to the latest version 4.1.0