Skip to content

v2.0.0

Latest

Choose a tag to compare

@cesutherland cesutherland released this 30 Oct 16:40
· 1 commit to main since this release
v2.0.0
5be210e

Breaking changes:

  • Node.js ^18.12.0 || >=20.9.0 is required, and the optional canvas dependency is node-canvas 3 (was 1.x).
  • The Jasmine matchers use the Jasmine 2.0+ API: add them with jasmine.addMatchers(imagediff.jasmine). Jasmine 1 (this.addMatchers) is no longer supported.
  • toImageDiffEqual failure messages are plain text in browsers, as in Node.js, instead of HTML with the actual, expected and diff images.
  • The Bower package (bower.json) is removed; install from npm.
  • The npm package contains only the library, the CLI and their license and docs.

Other changes:

  • The library loads without a canvas implementation (in bundlers, or in Node.js without canvas) and reports the missing module when first used.
  • The library loads in bundlers that wrap modules in strict mode, and AMD define receives the module.
  • The matchers are tested on Jasmine 7.
  • The built files' header names the package version.
  • The repository's default branch is main (was master).