Skip to content

v3.0.0

Choose a tag to compare

@gruhn gruhn released this 07 Apr 15:59
· 100 commits to master since this release

3.0.0 (2021-04-07)

Bug Fixes

  • always apply BarcodeDetector polyfill (c9a1da8)

Code Refactoring

  • extract BarcodeDetector polyfill (96cd30a), closes #197
  • no tracking by default (2c29d31)
  • remove DropImageDecodeError event (dea620e)

Performance Improvements

BREAKING CHANGES

  • remove DropImageDecodeError event

Error event is throw when a non-image file is dropped/picked in
QrcodeDropDown/QrcodeCapture. The validation step is now outsourced to
the BarcodeDetector polyfill which instead throws a standard
DOMException.

  • track prop accepts no booleans anymore

New default is undefined. Also track functions don't receive the
location object as the first argument anymore but an array of detected
barcodes with the same structure as returned by BarcodeDetector.detect()

  • remove worker prop

The idea of the worker prop was mainly to allow users to plug in
other detection algorithms to other barcode types. We now fully endorse
the Barcode Detection API and shift efforts to extend polyfill support
for more barcode types.