- PR#54: Export MaskRegions type.
- PR#52: Dependencies update. BREAKING CHANGE minimum supported node v16.
- #51: Enable mask regions for multi page pdfs. It is possible to have different mask regions per each page. This is an api BREAKING CHANGE.
If you haven't used maskRegions
then you don't have to change anything.
maskRegions
is changed from ReadonlyArray<RegionMask>
to (page: number) => ReadonlyArray<RegionMask>
. Straight forward code update could be:
// Change options from:
const opts = {
maskRegions: [
// Your mask definitions...
]
}
// To
const opts = {
// Here one can use `page` parameter to provide different mask regions for every page
maskRegions: (page) => [
// Your mask definitions...
]
}
const opts = {
maskRegions: () => [blueMask, greenMask]
}
comparePdfToSnapshot( singlePagePdfPath, __dirname, 'mask-rectangle-masks', opts)
- #50: Fixed pdfjs cmaps path resolution
- BREAKING CHANGE due to dependencies update. Minimum supported node 14. Some image diffs might occur as well.
- #48: Crash on Nodejs18
- #40: masked areas not in initial file
- Graphicsmagick is not needed any more, but this is a BREAKING CHANGE that requires all snapshots to be regenerated. Please see tools section from README.md for quick approval of new snapshots
- Added cli tools to approve and discard snapshots in bulk
- add compare image options to the custom jest matcher
- #15: Exclude regions from diff
- Add custom jest matcher
- Fix package publish
- Fix highlight color
- #6: Allow configuration of compare-images