Skip to content

Latest commit

 

History

History
92 lines (55 loc) · 2.42 KB

CHANGELOG.md

File metadata and controls

92 lines (55 loc) · 2.42 KB

Changelog

0.9.0 / 2023-09-04

  • PR#54: Export MaskRegions type.

0.8.0 / 2023-04-22

  • PR#52: Dependencies update. BREAKING CHANGE minimum supported node v16.

🎉 Enhancements

  • #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)

0.7.1 / 2023-02-23

🐛 Bug Fix

  • #50: Fixed pdfjs cmaps path resolution

0.7.0 / 2023-01-18

  • BREAKING CHANGE due to dependencies update. Minimum supported node 14. Some image diffs might occur as well.
  • #48: Crash on Nodejs18

0.6.0 / 2022-05-16

🐛 Bug Fix

  • #40: masked areas not in initial file

🎉 Enhancements

  • 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

0.5.0 / 2020-10-31

🎉 Enhancements

  • add compare image options to the custom jest matcher

0.4.0 / 2020-10-31

🎉 Enhancements

  • #15: Exclude regions from diff

0.3.0 / 2020-09-12

🎉 Enhancements

  • Add custom jest matcher

0.2.1 / 2020-09-11

  • Fix package publish
  • Fix highlight color

0.2.0 / 2020-09-11

🎉 Enhancements

  • #6: Allow configuration of compare-images