@pixelverse/strichjs-sdk 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -5
- package/dist/strich.d.ts +12 -1
- package/dist/strich.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.0] - 2023-05-17
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added experimental support for EAN-2/EAN-5 supplements (new `ean2` and `ean5` symbology options). Note that this feature is experimental: supplemental symbologies will not be enabled if you enable all symbologies (which we do not recommend).
|
|
8
|
+
- Added an optional `onError` callback to the BarcodeReader instance.
|
|
9
|
+
|
|
3
10
|
## [1.0.9] - 2023-05-15
|
|
4
11
|
|
|
5
12
|
### Fixed
|
|
@@ -11,8 +18,8 @@
|
|
|
11
18
|
|
|
12
19
|
### Added
|
|
13
20
|
|
|
14
|
-
- Not calling BarcodeReader.destroy() after no longer needing a BarcodeReader is a common cause of camera access errors. A warning is now logged to the browser console if a BarcodeReader is initialized when another instance remains that was not destroyed yet.
|
|
15
|
-
- If no
|
|
21
|
+
- Not calling `BarcodeReader.destroy()` after no longer needing a BarcodeReader is a common cause of camera access errors. A warning is now logged to the browser console if a BarcodeReader is initialized when another instance remains that was not destroyed yet.
|
|
22
|
+
- If no `regionOfInterest` is specified in the configuration, an appropriately sized region will now be automatically selected based on the configured symbologies.
|
|
16
23
|
|
|
17
24
|
### Fixed
|
|
18
25
|
|
|
@@ -26,7 +33,7 @@
|
|
|
26
33
|
|
|
27
34
|
### Changed
|
|
28
35
|
|
|
29
|
-
- Clarified acceptable use of StrichSDK.setCustomId()
|
|
36
|
+
- Clarified acceptable use of `StrichSDK.setCustomId()`, personally identifying data must not be sent.
|
|
30
37
|
|
|
31
38
|
## [1.0.6] - 2023-04-19
|
|
32
39
|
|
|
@@ -54,7 +61,7 @@
|
|
|
54
61
|
|
|
55
62
|
### Changed
|
|
56
63
|
|
|
57
|
-
- Not setting a duplicateInterval in the engine configuration will now lead to a default 750ms interval to be used.
|
|
64
|
+
- Not setting a `duplicateInterval` in the engine configuration will now lead to a default 750ms interval to be used.
|
|
58
65
|
|
|
59
66
|
### Fixed
|
|
60
67
|
|
|
@@ -75,7 +82,7 @@
|
|
|
75
82
|
### Fixed
|
|
76
83
|
|
|
77
84
|
- Gracefully handle the situation where MediaStream does not implement getCapabilities() (e.g. Firefox Android).
|
|
78
|
-
- Avoid spurious exception after BarcodeReader.destroy() from an asynchronous overlay update in destroyed state
|
|
85
|
+
- Avoid spurious exception after `BarcodeReader.destroy()` from an asynchronous overlay update in destroyed state
|
|
79
86
|
- Aztec code detection rectangle was not displayed on overlay for some non-compact Aztec codes.
|
|
80
87
|
|
|
81
88
|
## [1.0.0] - 2023-03-15
|
package/dist/strich.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface LocatorConfiguration {
|
|
|
82
82
|
/**
|
|
83
83
|
* The supported symbologies.
|
|
84
84
|
*/
|
|
85
|
-
export type SymbologyName = 'ean13' | 'ean8' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix';
|
|
85
|
+
export type SymbologyName = 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upca' | 'upce' | 'databar' | 'databar-exp' | 'code39' | 'code93' | 'code128' | 'i25' | 'codabar' | 'qr' | 'aztec' | 'datamatrix';
|
|
86
86
|
/**
|
|
87
87
|
* Engine configuration
|
|
88
88
|
*/
|
|
@@ -301,6 +301,10 @@ export interface CodeDetection {
|
|
|
301
301
|
* The type of detected code.
|
|
302
302
|
*/
|
|
303
303
|
typeName: string;
|
|
304
|
+
/**
|
|
305
|
+
* Supplemental data for this code.
|
|
306
|
+
*/
|
|
307
|
+
supplementalData: string | null;
|
|
304
308
|
/**
|
|
305
309
|
* The bounding rectangle in which the code was detected.
|
|
306
310
|
*
|
|
@@ -322,6 +326,13 @@ export class BarcodeReader {
|
|
|
322
326
|
* This is a synchronous call, so further processing will not happen until the handler returns.
|
|
323
327
|
*/
|
|
324
328
|
detected?: (detections: CodeDetection[]) => (void);
|
|
329
|
+
/**
|
|
330
|
+
* Optional user-supplied error callback.
|
|
331
|
+
*
|
|
332
|
+
* This is invoked by the BarcodeReader if an error occurred while processing frames, and is usually not
|
|
333
|
+
* recoverable.
|
|
334
|
+
*/
|
|
335
|
+
onError?: (error: Error) => (void);
|
|
325
336
|
/**
|
|
326
337
|
* Create a new BarcodeReader using a Configuration.
|
|
327
338
|
*
|