fix(deps): update dependency zxing-wasm to v2 - autoclosed #143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.4
->2.0.1
Release Notes
Sec-ant/zxing-wasm (zxing-wasm)
v2.0.1
Compare Source
Patch Changes
6321b02
: AddZXING_CPP_COMMIT
export.v2.0.0
Compare Source
This release introduces a major refactoring of the underlying Embind APIs and read / write functions. Key changes include 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.Breaking Changes
Consolidated Reader Function
readBarcodes(...)
replaces bothreadBarcodesFromImageFile(...)
andreadBarcodesFromImageData(...)
. The new function can accept either aBlob
or anImageData
as its input.Updated Reader Options
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.eccLevel
in Read Result Renamed toecLevel
In
ReadResult
, theeccLevel
field has been renamed toecLevel
. It now holds strings like"L"
,"M"
,"Q"
, or"H"
or stringified numeric percentage values for error correction levels. An empty string indicates that the error correction level is not applicable.Renamed & Enhanced Writer Function
writeBarcode(...)
replaceswriteBarcodeToImageFile(...)
. This function is now powered by the newzint
backend which supports all available formats that are currently supported by the reader. It accepts either astring
text or anUint8Array
binary data as its input for barcode generation, and provides new output formats (e.g. SVG, UTF-8) in addition to an image file blob.The
WriterOptions
object has also been updated completely..wasm
Module Initialization / Caching OverhaulprepareZXingModule(...)
replaces bothsetZXingModuleOverrides(...)
andgetZXingModuleOverrides(...)
. The new function provides a more flexible way to initialize the ZXing module with custom options.purgeZXingModule
now only clears the relevant module cache from where it is imported. It no longer resets the global module cache.Redefined
BarcodeFormat
-Family TypesNone
is removed from theBarcodeFormat
union type. New types likeLinearBarcodeFormat
,MatrixBarcodeFormat
andLooseBarcodeFormat
are introduced. SeebarcodeFormat.ts
for more details.New Features & Enhancements
More Barcode Formats Supported in Writer
The new
writeBarcode
function supports more barcode formats than the previouswriteBarcodeToImageFile
. All barcode formats supported by the reader are now supported by the writer.New
tryDenoise
Option for Reading BarcodesThe new
tryDenoise
option inReaderOptions
allows you to enable or disable the denoising algorithm when reading barcodes. This is an experimental feature. By default, it is set tofalse
.Bug Fixes
Fix TS
moduleResolution: node
Subpath Exports ResolutionThe subpath export types are now compatible with TypeScript's
moduleResolution: node
strategy by using the types-versions-wildcards strategy. This package now passes all thearethetypeswrong
checks.v1.3.5
Compare Source
Patch Changes
2bcfd4b
: Bumpzxing-cpp
to0dfa36b
to fix DataBarExpanded decoder error and ITF quiet zone detection heuristicConfiguration
📅 Schedule: Branch creation - "before 9am on monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.