gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.03k stars 330 forks source link

v5.0.0 refactor #348

Closed gruhn closed 11 months ago

gruhn commented 11 months ago
  1. Align naming conventions of props and events with standardized web APIs:
    • detect event instead of decode, since the Barcode Detection API calls it "detect"
    • remove camera prop on QrcodeStream which drops the naming convention "front"/"rear" camera. The Stream API calls them "user"/"environment" camera. Use the new props constraints/paused instead.
  2. Introduce constraints prop on QrcodeStream which allows passing arbitrary camera settings. In particular, the camera can be picked based on it's device IDs. This should close #322 but puts the burden of picking the right camera on library users.
  3. Introduce paused prop on QrcodeStream which replaces the function of camera="off".
  4. Introduce camera-on/camera-off/error events on QrcodeStream which replaces init event. init was serving multiple purposes. Splitting this into dedicated events should be more ergonomic and idiomatic.
  5. detect event now receives array of detected QR codes as payload. So detecting multiple QR codes at once is now possible.
netlify[bot] commented 11 months ago

Deploy Preview for vue-qrcode-reader ready!

Name Link
Latest commit 9401db260d59dc90ff1e8c4b587639c2cbb738b6
Latest deploy log https://app.netlify.com/sites/vue-qrcode-reader/deploys/64addf670336d10007906946
Deploy Preview https://deploy-preview-348--vue-qrcode-reader.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 11 months ago

:tada: This PR is included in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: