Skip to content

Releases: Sec-ant/barcode-detector

v3.0.0

29 Jan 03:59
6c6a4ee
Compare
Choose a tag to compare

Generally, this release bumped the zxing-wasm dependency to v2 and renamed the subpath exports to ponyfill and polyfill from pure and side-effects. Detailed changes are as follows:

Breaking Changes

Renamed subpath exports

To avoid possible misunderstandings (we also use the term pure in zxing-wasm), the pure and side-effects subpath exports were renamed to ponyfill and polyfill, respectively. The old subpath exports are considered deprecated and are no longer recommended for use.

No longer a subclass of EventTarget

The BarcodeDetector class is no longer a subclass of EventTarget. BarcodeDetector wasn't designed to be an event target per the spec. This design was previously to allow for customized event handling. However, it causes more issues than it solves.

EAN-2/5 add-on symbols ignored

The EAN-2/5 add-on symbols were previously read if found. However, to align with the behavior of the native barcode detectors in Chromium and Safari on macOS, they are now ignored in this new version.

zxing-wasm v2

The zxing-wasm dependency was bumped to v2. This release includes breaking changes itself. For example, setZXingModuleOverrides is replaced by prepareZXingModule. Please refer to the README of zxing-wasm for detailed instructions on the new APIs.

Bug Fixes

Zero-sized Blob image no longer throws error

Per the spec, zero-sized ImageBitmapSource shouldn't cause errors to be thrown. Blob is one kind of the ImageBitmapSource and therefore should also comply with this rule. This is now fixed.

Fix TS moduleResolution: node subpath exports resolution

The subpath export types are now compatible with TypeScript's moduleResolution: node strategy by using the types-versions-wildcards strategy. This package now passes all the arethetypeswrong checks.

v2.3.1

07 Nov 13:26
9cc2b22
Compare
Choose a tag to compare

Patch Changes

  • 1698524: Bump zxing-wasm to v1.3.4 to fix PDF417 position info

v2.3.0

05 Nov 17:38
02b5ce6
Compare
Choose a tag to compare

Minor Changes

  • b9910bb: Add databar_limited detection support

v2.2.12

05 Nov 17:06
7ca4d43
Compare
Choose a tag to compare

Patch Changes

  • 139c454: Remove zxing-related tests as they are moved into the zxing-wasm repo.
  • 139c454: Pin @types/dom-webcodecs to 0.1.11 to avoid breaking types in projects using a lower version of TypeScript. Fixes #120.
  • 139c454: Bump zxing-wasm to 1.2.15. The success rate should be improved a lot.

v2.2.11

10 Oct 07:58
8f96511
Compare
Choose a tag to compare

Patch Changes

  • 1d27f3e: Fix image bitmap source type detection across iframes.

v2.2.10

07 Oct 12:21
1748a8d
Compare
Choose a tag to compare

Patch Changes

  • 38e0b9f: Bump zxing-wasm to 1.2.14 to mitigate DOM Clobbering vulnerability.

v2.2.9

06 Oct 17:15
bfca71d
Compare
Choose a tag to compare

Patch Changes

  • b0bfea1: Fix detecting HTML elements from iframes. See #110.

v2.2.8

21 Aug 11:56
0a7ea09
Compare
Choose a tag to compare

Patch Changes

  • 519cfe2: Preserve codabar start and end control chars. Fixes #91.
  • 70c58e1: Bump zxing-wasm and switch to pnpm and renovate

v2.2.7

06 Jun 16:23
Compare
Choose a tag to compare

Patch Changes

  • 1da2c2b: Bump zxing-wasm to v1.2.11 and other dependencies

v2.2.6

20 May 09:14
Compare
Choose a tag to compare

Patch Changes

  • 4af1507: Bump zxing-wasm to v1.2.10