# What changed in barcode-detector

> 10 changes in barcode-detector 3 from its official release notes, upgrade guides and advisories: 1 breaking, 6 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/barcode-detector/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## barcode-detector 3

### Breaking changes

- Detection results now distinguish DataBar and Code 39 sub-variants; code matching exact format values may need to account for the more specific names. (3.1.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.1.0)

### New APIs and options

- Adds micro_pdf417 as a supported barcode format. (3.2.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.2.0)
- Adds telepen as a supported barcode format. (3.2.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.2.0)
- Adds telepen_alpha as a supported barcode format. (3.2.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.2.0)
- Adds telepen_numeric as a supported barcode format. (3.2.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.2.0)
- The formats option accepts additional format names, including sub-variants and input hints that may filter detection to the appropriate symbology family. (3.1.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.1.0)
- The formats option accepts three shorthand meta formats for selecting GS1-compatible, retail, or industrial barcode formats. (3.1.0) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.1.0)

### Behavior and default changes

- Upstream detector improvements may shift some barcodes’ cornerPoints by 1–2 px; rawValue is unchanged. (3.1.3) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.1.3)

### Fixes and other changes

- Upstream detector crash fixes are included. (3.1.3) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.1.3)
- When WASM initialization fails, only a service unavailable DOM exception is thrown instead of unhandled errors. (3.0.7) — [release notes](https://github.com/Sec-ant/barcode-detector/releases/tag/v3.0.7)
