npm / @zxing/library
@zxing/library
What changed in @zxing/library 0.22 to 0.23, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking5 new APIs and options2 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@zxing/library 0.238 changes
New APIs and options 4
ReedSolomonDecoder adds a method that returns the number of corrected errors, used by the MaxiCode decoder.
Optional grayscale buffer reuse across frames during continuous scanning avoids allocating a new Uint8ClampedArray for each frame.
Adds MaxiCode 2D barcode decoding for modes 2–5, with MaxiCode included in format-specific and default reader lists.
Adds the ERRORS_CORRECTED enum value for reporting error correction counts in decode results.
Behavior and default changes 2
BrowserCodeReader falls back to GlobalHistogramBinarizer when HybridBinarizer fails with NotFoundException, helping decode small barcodes or images with uniform backgrounds.
OneDReader's default row sampling increases from 15 to 25 lines, improving detection of 1D barcodes away from the image center without TRY_HARDER mode.
Fixes and other changes 2
Unexpected errors in the continuous scan loop are now logged via console.error instead of stopping silently.
Non-ReaderException errors during decode attempts are now logged instead of silently swallowed, making programming errors visible.
@zxing/library 0.225 changes
Breaking changes 2
The minimum Node requirement changes from >= 10.4.0 to >= 24.0.0.
Removes the ISO-8859-1 fallback workaround; Node ≥ 18 native TextDecoder handles Latin-1 bytes correctly, fixing URIError on characters like ó.
New APIs and options 1
Adds a MicroQR Code reader and exports MicroQR types, allowing applications to detect and decode MicroQR codes.
Fixes and other changes 2
Corrects the package license metadata from MIT to Apache-2.0.
Corrects finder pattern center calculation and outside-pixel positioning, and no longer silently swallows errors other than NotFoundException.