All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updated the
@zxing/library
dependency to0.20.0
. - Renamed
onResult
andonError
toonDecodeResult
andonDecodeError
respectively. - Switched the
onDecodeError
error type to use theException
class from@zxing/library
.
- Introduced
onError
to handle errors that occur during initialization.
- Added engines to
package.json
to prevent installation on unsupported Node.js versions.
- Fix
MediaStreamTrack.getCapabilities
not being available in Firefox.
- Updated the
@zxing/library
dependency to0.19.2
.
- Added
torch
functionality. You can now control the torch by accessing thetorch
property of theuseZxing
return value.
- Removed the
startDecoding
andstopDecoding
options. You can now control the decoding process by using thepaused
option.