unstale

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

@unstale/cli on npm

@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.

    0.23.0release notes

  • Optional grayscale buffer reuse across frames during continuous scanning avoids allocating a new Uint8ClampedArray for each frame.

    0.23.0release notes

  • Adds MaxiCode 2D barcode decoding for modes 2–5, with MaxiCode included in format-specific and default reader lists.

    0.23.0release notes

  • Adds the ERRORS_CORRECTED enum value for reporting error correction counts in decode results.

    0.23.0release notes

Behavior and default changes 2

  • BrowserCodeReader falls back to GlobalHistogramBinarizer when HybridBinarizer fails with NotFoundException, helping decode small barcodes or images with uniform backgrounds.

    0.23.0release notes

  • 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.

    0.23.0release notes

Fixes and other changes 2

  • Unexpected errors in the continuous scan loop are now logged via console.error instead of stopping silently.

    0.23.0release notes

  • Non-ReaderException errors during decode attempts are now logged instead of silently swallowed, making programming errors visible.

    0.23.0release notes

@zxing/library 0.225 changes

Breaking changes 2

  • The minimum Node requirement changes from >= 10.4.0 to >= 24.0.0.

    0.22.0release notes

  • Removes the ISO-8859-1 fallback workaround; Node ≥ 18 native TextDecoder handles Latin-1 bytes correctly, fixing URIError on characters like ó.

    0.22.0release notes

New APIs and options 1

  • Adds a MicroQR Code reader and exports MicroQR types, allowing applications to detect and decode MicroQR codes.

    0.22.0release notes

Fixes and other changes 2

  • Corrects the package license metadata from MIT to Apache-2.0.

    0.22.0release notes

  • Corrects finder pattern center calculation and outside-pixel positioning, and no longer silently swallows errors other than NotFoundException.

    0.22.0release notes