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:
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.
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.
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.
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.
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.
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.
- 1698524: Bump zxing-wasm to v1.3.4 to fix PDF417 position info
- b9910bb: Add
databar_limited
detection support
- 139c454: Remove
zxing
-related tests as they are moved into thezxing-wasm
repo. - 139c454: Pin
@types/dom-webcodecs
to0.1.11
to avoid breaking types in projects using a lower version of TypeScript. Fixes #120. - 139c454: Bump
zxing-wasm
to1.2.15
. The success rate should be improved a lot.
- 1d27f3e: Fix image bitmap source type detection across iframes.
- 38e0b9f: Bump zxing-wasm to 1.2.14 to mitigate DOM Clobbering vulnerability.
- b0bfea1: Fix detecting HTML elements from iframes. See #110.
- 519cfe2: Preserve codabar start and end control chars. Fixes #91.
- 70c58e1: Bump
zxing-wasm
and switch topnpm
andrenovate
- 1da2c2b: Bump zxing-wasm to v1.2.11 and other dependencies
- 4af1507: Bump
zxing-wasm
to v1.2.10
- a7a46ee: Bump zxing-wasm to v1.2.7
- 48ab8ac: Bump
zxing-wasm
tov1.2.4
.
- 529ec4e: bump zxing-wasm to v1.2.3