Skip to content

Releases: Sec-ant/barcode-detector

v3.1.2

01 Apr 17:32
3a743ba

Choose a tag to compare

Patch Changes

  • 90fbb1d: Update all dependencies including vite 8, typescript 6, vitest 4.1, and zxing-wasm 3.0.2. Upgrade pnpm/action-setup to v5.

v3.1.1

09 Mar 16:12
8dc63b8

Choose a tag to compare

Patch Changes

  • a01dc0e: Bump zxing-wasm to v3.0.1 with better performance. Bump other deps.

v3.1.0

24 Feb 11:57
a2d8b59

Choose a tag to compare

Minor Changes

  • 38f83b8: #### Bump zxing-wasm to v3 with finer-grained barcode format detection

    This release upgrades the underlying zxing-wasm dependency from v2 to v3, which brings more precise barcode format identification. The decoder now distinguishes sub-variants within certain symbology families, so the format field in detection results may return more specific values than before.

    Detection result format changes

    Previously, the decoder reported the base symbology name for all variants within a family. With this release, detection results use the specific sub-variant format for the following symbologies:

    Previously returned Now returns (depending on the actual barcode)
    "databar" "databar_omni" or "databar_stacked"
    "databar_expanded" "databar_expanded" or "databar_expanded_stacked"
    "code_39" "code_39", "code_39_extended", "code_32", or "pzn"

    Note: If your code matches on exact format values (e.g., result.format === "databar"), you may need to update it to account for the new sub-variant names. The original base format names ("databar", "code_39", etc.) are still valid as input hints in the formats option of the BarcodeDetector constructor, but "databar" will no longer appear in detection output. "databar_expanded" and "code_39" can still appear in output when the detected barcode is the base variant.

    New supported formats

    The following format names are now accepted in BarcodeDetectorOptions.formats and may appear in detection results:

    • "code_39_extended", "code_32", "pzn" — Code 39 sub-variants
    • "databar_omni", "databar_stacked", "databar_expanded_stacked" — DataBar sub-variants

    The following format names are now accepted in BarcodeDetectorOptions.formats as input hints (they do not currently appear in detection output, but requesting them may filter detection to the appropriate symbology family):

    • "aztec_code", "aztec_rune" — Aztec sub-variants
    • "code_39_standard" — Code 39 standard variant
    • "databar_stacked_omni" — DataBar Stacked Omni variant
    • "ean_upc", "isbn" — EAN/UPC family
    • "itf_14" — ITF sub-variant
    • "compact_pdf417" — PDF417 sub-variant
    • "qr_code_model_1", "qr_code_model_2" — QR Code sub-variants
    • "other_barcode" — catch-all for unclassified formats

    New shorthand formats

    Three new shorthand (meta) formats can be used in the formats option:

    • "gs1_codes" — all GS1-compatible barcode formats
    • "retail_codes" — all retail barcode formats (EAN, UPC, DataBar, etc.)
    • "industrial_codes" — all industrial barcode formats (Code 39, Code 128, ITF, etc.)

v3.0.8

18 Nov 06:29
fdb2a27

Choose a tag to compare

Patch Changes

  • 1157548: Bump zxing-wasm to v2.2.4 and remove any usage of Array.prototype.entries

v3.0.7

09 Nov 04:09
5e3782c

Choose a tag to compare

Patch Changes

  • 5fa1ce1: Bump zxing-wasm to v2.2.3. No more unhandled errors but only service unavailable DOM exception will be thrown when the WASM initialization fails.

v3.0.6

30 Sep 07:13
e2991a5

Choose a tag to compare

Patch Changes

  • 4037bd8: Bump deps and switch to OIDC trusted publishing

v3.0.5

25 Jun 12:45
a3425b8

Choose a tag to compare

Patch Changes

  • 24ffa0f: Bump zxing-wasm to v2.2.0 with some bug fixes.

v3.0.4

06 May 18:10
abd3dff

Choose a tag to compare

Patch Changes

  • 6ad20b6: The version of zxing-wasm should be pinned.

v3.0.3

06 May 17:33
8a6d8fc

Choose a tag to compare

Patch Changes

  • c679c9a: Bump zxing-wasm to v2.1.2 to fix unexpected new URL(..., import.meta.url) expansion when bundling this package on the consumer side, which fixes #176, and also updated several deps.

v3.0.2

01 May 15:53
8843515

Choose a tag to compare

Patch Changes

  • e3e97da: Bump zxing-wasm to v2.1.1 along with other deps. Re-enable firefox tests. Add a simple dev page.