Skip to content

v4.0.0

Choose a tag to compare

@compeso-mgruenwald compeso-mgruenwald released this 08 Sep 08:23
· 21 commits to master since this release
1e9753b

[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/require entry points are gone.
  • development / production export conditions and the minified artifacts they pointed at are gone.

Changed

  • @zxing/browser is now ^0.2.1 (was ^0.1.5). @zxing/library is now ^0.23.0 (was ^0.21.3).
  • engines.node is gone, as this is not a Node package (>= 18 in 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 doScan is false, on unmount, and when constraints change by value with deepEqual.
  • The README default camera is { facingMode: "environment" }. 3.4.0's README said user. That was a docs typo. Runtime default did not change.