- f8c33b2: Fix the
zxing_writer.wasm
size issue. See #190.
- 615a321: - Add
DXFilmEdge
writing support.- Fix subpath exports TS compatibility with types-versions-wildcards strategy. Check this for more information.
- Add types to
.wasm
subpath exports. - Add
ImageData
ambient type export.
- b856d58: Add
typesVersions
field formoduleResolution: node
- a10ffcc: Bump
zxing-cpp
to0dfa36b
to fix DataBarExpanded decoder error and ITF quiet zone detection heuristic
-
1a77296: V2: Breaking Release - Next Major Version
This release introduces a major refactoring of the underlying Embind APIs and read / write functions. Key changes include transitioning away from Embind Enums toward numeric encoding and decoding, a new set of default reader options, enhanced writer capabilities backed by
zint
, and updated APIs for reading and writing barcodes. These changes break backward compatibility, so we are upgrading to the next major version.readBarcodes(...)
replaces bothreadBarcodesFromImageFile(...)
andreadBarcodesFromImageData(...)
. The new function unifies code paths forBlob
andImageData
inputs.[!NOTE]
The v1 reader functions
readBarcodesFromImageFile
andreadBarcodesFromImageData
are still kept for a smooth migration experience, but marked as deprecated.A few reader options have changed their default values. This change is to align with the latest ZXing C library and provide a more consistent experience across different platforms:
tryCode39ExtendedMode
is nowtrue
by default. It was previouslyfalse
.eanAddOnSymbol
is now"Ignore"
by default. It was previously"Read"
.textMode
is now"HRI"
by default. It was previously"Plain"
.
Some deprecated options have been removed, see zxing-cpp#704 for more details:
validateCode39CheckSum
is now removed. The Code39 symbol has a valid checksum if the third character of thesymbologyIdentifier
is an odd digit.validateITFCheckSum
is now removed. The ITF symbol has a valid checksum if the third character of thesymbologyIdentifier
is a'1'
.returnCodabarStartEnd
is now removed. The detected results of Codabar symbols now always include the start and end characters.
In
ReadResult
, theeccLevel
field has been renamed toecLevel
. It now holds strings like"L"
,"M"
,"Q"
, or"H"
or stringified numeric values for error correction levels. An empty string indicates that the error correction level is not applicable.[!NOTE]
The
eccLevel
field is still kept for a smooth migration experience, but marked as deprecated.writeBarcode(...)
replaceswriteBarcodeToImageFile(...)
. The new function is powered by the newzint
writer, which supports more barcode formats, supports bothstring
andUint8Array
inputs for generating barcodes from text or binary data, and provides new output formats (e.g. SVG, UTF-8) in addition to the binary image file output.The
WriterOptions
object has also been updated completely.[!NOTE]
The final shape of the
writeBarcode
function is still under discussion. The current implementation is subject to change.prepareZXingModule(...)
replaces bothsetZXingModuleOverrides(...)
andgetZXingModuleOverrides(...)
. The new function provides a more flexible way to initialize the ZXing module with custom options.[!NOTE]
The v1 module initialization functions
setZXingModuleOverrides
andgetZXingModuleOverrides
are still kept for a smooth migration experience, but marked as deprecated.purgeZXingModule
now only clears the relevant module cache from where it is imported. It no longer resets the global module cache.The new
writeBarcode
function supports more barcode formats than the previouswriteBarcodeToImageFile
. All barcode formats supported by the reader except forDXFilmEdge
are now supported by the writer.The new
tryDenoise
option inReaderOptions
allows you to enable or disable the denoising algorithm when reading barcodes. This is an experimental feature and by default, it is set tofalse
.
- 1a9a372: Bump
zxing-cpp
to579650a
to fix incorrect PDF417 position info.
- 0709489: Bump
zxing-cpp
tocd9bba3
to fix an ITF detection regression.
- 4b0ca08: Bump zxing-cpp to
308f820
and improve DataBar detection rate.
- 999335b: Bump zxing-cpp to
8fb2f81
to support shorter ITF symbols.
- 925e12f: Add reader support for
DataBarLimited
.
- fa87128: Fix webassembly exception handling. Increase success rate.
- f1eef5c: Bump zxing-cpp to
81407a0
to fix reader options not being passed to the internal reader ifisPure
is set.
- aad8899: Patch emscripten to mitigate DOM Clobbering vulnerability.
- 650c295: DOM Clobbering security patch.
- 2228845: Bump
zxing-cpp
and switch topnpm
,renovate
.
- d3c92ee:
- Always use
.js
as the chunk filename extension. - Bump zxing-cpp to
986f785
- Bump dependencies
- Always use
- 0a43b27: Bump zxing-cpp to
d0c1f34
- 01e8878: Bump zxing-cpp to
441132c
- 2fc9bec: Bump zxing-cpp to 4bbc1db
- 308d165: Bump zxing-cpp to 9ca0684
- a2339d3: Bump zxing-cpp to
b58682b
.
- 4358969: Fix WebAssembly instantiation issue in electron.
- 4358969: Fix WebAssembly instantiation issue in electron.
-
f749591: Bump zxing-cpp to
b3aff4a
:
-
de36dce: reset zxing-cpp to b152afd
validateITFCheckSum
,tryCode39ExtendedMode
andvalidateCode39CheckSum
are deprecated in later commits.
- 02f0386: Bump zxing-cpp to b3fe574