Skip to content

Releases: Sec-ant/barcode-detector

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.

v3.0.1

23 Feb 15:00
a37a64e

Choose a tag to compare

Patch Changes

  • 8206888: Bump zxing-wasm to v2.1.0 and other deps.

v3.0.0

29 Jan 03:59
6c6a4ee

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

Choose a tag to compare

Patch Changes

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