Repository navigation
v4.0.0
·
21 commits
to master
since this release
[4.0.0] - 2026-09-08
Breaking
- The package is ESM-only. Import with
import { BarcodeScanner } from '@thewirv/react-barcode-scanner'.require()no longer works. main,module, and CJS/requireentry points are gone.development/productionexport conditions and the minified artifacts they pointed at are gone.
Changed
@zxing/browseris now^0.2.1(was^0.1.5).@zxing/libraryis now^0.23.0(was^0.21.3).engines.nodeis gone, as this is not a Node package (>= 18in 3.4.0).- The repo now builds with Vite+ in a bun workspace, and the library has tests.
Fixed
- The camera session no longer restarts when parent callback identities change.
- The stream now stops when
doScanisfalse, on unmount, and when constraints change by value withdeepEqual. - The README default camera is
{ facingMode: "environment" }. 3.4.0's README saiduser. That was a docs typo. Runtime default did not change.