Skip to content

v9.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Dec 01:42
9b1b869

9.0.0 (2020-12-11)

Bug Fixes

Code Refactoring

Features

  • allow users to provide their own version of puppeteer (#13) (b6c5235), closes #5
  • make diff threshold adjustable (#14) (44400ae), closes #2

BREAKING CHANGES

  • The default image comparison threshold is now 0, which means any discrepancy at all will be detected. Previously, this value was 0.1, which meant that small discrepancies would be ignored. If you need this old behavior back, pass --threshold 0.1 as an argument.
  • api: The entranceMethod and entranceMethodArgs parameters have been removed from the API. You can use the before hook to achieve the same things. See #11 for details.
  • api: after now runs after the screenshot is taken, instead of before it.
  • pupeeteer is now a peerDependency, and therefore will not be automatically installed. Your bundle must install it as its own dependency.
  • api: The entranceMethod and entranceMethodArgs parameters have been removed from the API. You can use the before hook to achieve the same things. See #11 for details.
  • api: after now runs after the screenshot is taken, instead of before it.