What's new
- In this release, we got rid of sharp. Now "looks-same" package has no compiled dependencies, so there should be no errors trying to install looks-same version on old/new version of node.js.
- Increased performance when comparing images with lots of different pixels (up to 3x)
- Improved result difference images compression
- Reduced total "node_modules" size (41M -> 660K)
💣 Breaking changes
- formats, other than png, are not supported
Dependencies size change:
Before:
❯ pnpm add looks-same@9
Packages: +65
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 65, reused 50, downloaded 15, added 65, done
node_modules/.pnpm/sharp@0.32.6/node_modules/sharp: Running install script, done in 2.7s
dependencies:
+ looks-same 9.0.1
Done in 5s
❯ du -cksh *(D) | sort -hr
41M total
41M node_modules
16K pnpm-lock.yaml
4.0K package.json
After:
❯ pnpm add looks-same@10
Packages: +7
+++++++
Progress: resolved 7, reused 5, downloaded 2, added 7, done
dependencies:
+ looks-same 10.0.0
Done in 1.3s
❯ du -cksh *(D) | sort -hr
668K total
660K node_modules
4.0K pnpm-lock.yaml
4.0K package.json