Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jul 23:05
· 71 commits to master since this release

5.0.0 (2023-07-11)

Code Refactoring

  • replace init event with camera-on/camera-off/error (2394f0a)

Features

  • allow passing arbitrary video constraints (953919a), closes #322
  • detect multiple QR codes at once (3f3b1fb)

BREAKING CHANGES

  • remove camera prop

Use paused="true" instead of camera="off". For all other uses of camera
use constraints instead.

  • remove decode event

To align overall naming conventions with the Barcode Detection API.
Use detect event instead.

  • change detect event payload

Event payload is now equal to the return value of BarcodeDetector.detect,
namely and array of DetectedBarcode instances. Incidentally, this now
enables detecting multiple QR codes at once.

  • remove init event.
    Use camera-on/camera-off/error instead.