From 3055e9d72c53e5f4103433b967553937b9bc0c2d Mon Sep 17 00:00:00 2001 From: Justin-dynamsoft <117710848+Justin-dynamsoft@users.noreply.github.com> Date: Tue, 18 Aug 2026 17:20:22 +0800 Subject: [PATCH] Preview (#511) * Update links in the Foundational API Guide to version 11.4.30 * Fix link in "Scan and Search" sample and remove unnecessary image * Update link for adaptive WASM loading logic in release notes * Remove unnecessary images from release notes for Barcode Reader JavaScript SDK v10.x * Fix typos and improve descriptions in documentation files * Fix typo in barcode type enumeration in captureImage function * Update release notes and user guide for version 11.6.2000; add new layout analysis utilities and parameters * Enhance release notes for version 11.6.2000; add DataMatrix color inversion detection, layout analysis utilities, and new enumerations * Refactor utility documentation structure; categorize classes, interfaces, and enumerations for better clarity * Reorganize layout analysis parameter link in documentation; move to appropriate section for better accessibility * Fix parameter reference in AutoDetectColorInversion documentation and update MaxParallelTasks description for clarity * Clarify optional engine file location specification in documentation; update examples for ES Module and global namespace usage * Update documentation for version 11.6.2100; include new release notes, fix links, and update example code --- .../api-reference/enum-barcode-format.md | 208 +++++++++--------- .../javascript/migrate-from-v10/index.md | 2 +- programming/javascript/release-notes/index.md | 1 + programming/javascript/release-notes/js-11.md | 6 + programming/javascript/user-guide/index.md | 32 +-- .../javascript/user-guide/use-in-framework.md | 8 +- 6 files changed, 132 insertions(+), 125 deletions(-) diff --git a/programming/javascript/api-reference/enum-barcode-format.md b/programming/javascript/api-reference/enum-barcode-format.md index d55e18cb..e760b2cb 100644 --- a/programming/javascript/api-reference/enum-barcode-format.md +++ b/programming/javascript/api-reference/enum-barcode-format.md @@ -20,109 +20,109 @@ codeAutoHeight: true > ```javascript enum EnumBarcodeFormat: { - /**No barcode format in BarcodeFormat*/ - BF_NULL: bigint; - /**All supported formats in BarcodeFormat*/ - BF_ALL: bigint; - /**Use the default barcode format settings*/ - BF_DEFAULT: bigint; - /**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_Extended, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE; */ - BF_ONED: bigint; - /**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/ - BF_GS1_DATABAR: bigint; - /**Code 39 */ - BF_CODE_39: bigint; - /**Code 128 */ - BF_CODE_128: bigint; - /**Code 93 */ - BF_CODE_93: bigint; - /**Codabar */ - BF_CODABAR: bigint; - /**Interleaved 2 of 5 */ - BF_ITF: bigint; - /**EAN-13 */ - BF_EAN_13: bigint; - /**EAN-8 */ - BF_EAN_8: bigint; - /**UPC-A */ - BF_UPC_A: bigint; - /**UPC-E */ - BF_UPC_E: bigint; - /**Industrial 2 of 5 */ - BF_INDUSTRIAL_25: bigint; - /**CODE39 Extended */ - BF_CODE_39_EXTENDED: bigint; - /**GS1 Databar Omnidirectional*/ - BF_GS1_DATABAR_OMNIDIRECTIONAL: bigint; - /**GS1 Databar Truncated*/ - BF_GS1_DATABAR_TRUNCATED: bigint; - /**GS1 Databar Stacked*/ - BF_GS1_DATABAR_STACKED: bigint; - /**GS1 Databar Stacked Omnidirectional*/ - BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL: bigint; - /**GS1 Databar Expanded*/ - BF_GS1_DATABAR_EXPANDED: bigint; - /**GS1 Databar Expanded Stacked*/ - BF_GS1_DATABAR_EXPANDED_STACKED: bigint; - /**GS1 Databar Limited*/ - BF_GS1_DATABAR_LIMITED: bigint; - /**Patch code. */ - BF_PATCHCODE: bigint; - /**Code 32 */ - BF_CODE_32: bigint; - /**PDF417 */ - BF_PDF417: bigint; - /**QRCode */ - BF_QR_CODE: bigint; - /**DataMatrix */ - BF_DATAMATRIX: bigint; - /**AZTEC */ - BF_AZTEC: bigint; - /**MAXICODE */ - BF_MAXICODE: bigint; - /**Micro QR Code*/ - BF_MICRO_QR: bigint; - /**Micro PDF417*/ - BF_MICRO_PDF417: bigint; - /**GS1 Composite Code*/ - BF_GS1_COMPOSITE: bigint; - /**MSI Code*/ - BF_MSI_CODE: bigint; - /**Code 11 */ - BF_CODE_11: bigint; - /**Two-Digit Add-On */ - BF_TWO_DIGIT_ADD_ON: bigint; - /**Five-Digit Add-On */ - BF_FIVE_DIGIT_ADD_ON: bigint; - /**Matrix 2 of 5 */ - BF_MATRIX_25: bigint; - /**Combined value of BF_USPSINTELLIGENTMAIL, BF_POSTNET, BF_PLANET, BF_AUSTRALIANPOST, BF_RM4SCC.*/ - BF_POSTALCODE: bigint; - /**Nonstandard barcode */ - BF_NONSTANDARD_BARCODE: bigint; - /**USPS Intelligent Mail.*/ - BF_USPSINTELLIGENTMAIL: bigint; - /**Postnet.*/ - BF_POSTNET: bigint; - /**Planet.*/ - BF_PLANET: bigint; - /**Australian Post.*/ - BF_AUSTRALIANPOST: bigint; - /**Royal Mail 4-State Customer Barcode.*/ - BF_RM4SCC: bigint; - /**KIX.*/ - BF_KIX: bigint; - /**DotCode.*/ - BF_DOTCODE: bigint; - /**_PHARMACODE_ONE_TRACK.*/ - BF_PHARMACODE_ONE_TRACK: bigint; - /**PHARMACODE_TWO_TRACK.*/ - BF_PHARMACODE_TWO_TRACK: bigint; - /**PHARMACODE.*/ - BF_PHARMACODE: bigint; - /**Telepen*/ - BF_TELEPEN: bigint; - /**Telepen Numeric. A variation of the Telepen format optimized for encoding numeric data only.*/ - BF_TELEPEN_NUMERIC: bigint; + /**All supported formats in BarcodeFormat.*/ + BF_ALL = 0xFFFFFFFEFFFFFFFF, + /**The default barcode format settings. It's a combined value of BF_ONED, BF_GS1_DATABAR, BF_PDF417, BF_QR_CODE, BF_DATAMATRIX, BF_AZTEC, BF_MAXICODE, BF_MICRO_QR, BF_MICRO_PDF417, BF_GS1_COMPOSITE*/ + BF_DEFAULT = 0xFE3BFFFF, + /**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_EXTENDED, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE, BF_CODE_11;*/ + BF_ONED = 0x003007FF, + /**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/ + BF_GS1_DATABAR = 0x0003F800, + /**Combined value of BF_USPSINTELLIGENTMAIL, BF_POSTNET, BF_PLANET, BF_AUSTRALIANPOST, BF_RM4SCC, BF_KIX.*/ + BF_POSTALCODE = 0x3F0000000000000, + /**Code 39*/ + BF_CODE_39 = 0x1, + /**Code 128*/ + BF_CODE_128 = 0x2, + /**Code 93*/ + BF_CODE_93 = 0x4, + /**Codabar*/ + BF_CODABAR = 0x8, + /**Interleaved 2 of 5*/ + BF_ITF = 0x10, + /**EAN-13*/ + BF_EAN_13 = 0x20, + /**EAN-8*/ + BF_EAN_8 = 0x40, + /**UPC-A*/ + BF_UPC_A = 0x80, + /**UPC-E*/ + BF_UPC_E = 0x100, + /**Industrial 2 of 5*/ + BF_INDUSTRIAL_25 = 0x200, + /**CODE39 Extended*/ + BF_CODE_39_EXTENDED = 0x400, + /**GS1 Databar Omnidirectional*/ + BF_GS1_DATABAR_OMNIDIRECTIONAL = 0x800, + /**GS1 Databar Truncated*/ + BF_GS1_DATABAR_TRUNCATED = 0x1000, + /**GS1 Databar Stacked*/ + BF_GS1_DATABAR_STACKED = 0x2000, + /**GS1 Databar Stacked Omnidirectional*/ + BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL = 0x4000, + /**GS1 Databar Expanded*/ + BF_GS1_DATABAR_EXPANDED = 0x8000, + /**GS1 Databar Expaned Stacked*/ + BF_GS1_DATABAR_EXPANDED_STACKED = 0x10000, + /**GS1 Databar Limited*/ + BF_GS1_DATABAR_LIMITED = 0x20000, + /**Patch code.*/ + BF_PATCHCODE = 0x00040000, + /**Code 32*/ + BF_CODE_32 = 0x1000000, + /**PDF417*/ + BF_PDF417 = 0x02000000, + /**QRCode*/ + BF_QR_CODE = 0x04000000, + /**DataMatrix*/ + BF_DATAMATRIX = 0x08000000, + /**AZTEC*/ + BF_AZTEC = 0x10000000, + /**MAXICODE*/ + BF_MAXICODE = 0x20000000, + /**Micro QR Code*/ + BF_MICRO_QR = 0x40000000, + /**Micro PDF417*/ + BF_MICRO_PDF417 = 0x00080000, + /**GS1 Composite Code*/ + BF_GS1_COMPOSITE = 0x80000000, + /**MSI Code*/ + BF_MSI_CODE = 0x100000, + /**Code 11*/ + BF_CODE_11 = 0x200000, + /**Decode barcode with 2 digital addons.*/ + BF_TWO_DIGIT_ADD_ON = 0x400000, + /**Decode barcode with 5 digital addons.*/ + BF_FIVE_DIGIT_ADD_ON = 0x800000, + /**Matrix 25*/ + BF_MATRIX_25 = 0x1000000000, + /**Telepen*/ + BF_TELEPEN = 0x2000000000, + /**Telepen Numeric. A variation of the Telepen format optimized for encoding numeric data only.*/ + BF_TELEPEN_NUMERIC = 0x4000000000, + /**Nonstandard barcode*/ + BF_NONSTANDARD_BARCODE = 0x100000000, + /**USPS Intelligent Mail.*/ + BF_USPSINTELLIGENTMAIL = 0x10000000000000, + /**Postnet.*/ + BF_POSTNET = 0x20000000000000, + /**Planet.*/ + BF_PLANET = 0x40000000000000, + /**Australian Post.*/ + BF_AUSTRALIANPOST = 0x80000000000000, + /**Royal Mail 4-State Customer Barcode.*/ + BF_RM4SCC = 0x100000000000000, + /**KIX.*/ + BF_KIX = 0x200000000000000, + /**DotCode.*/ + BF_DOTCODE = 0x200000000, + /**_PHARMACODE_ONE_TRACK.*/ + BF_PHARMACODE_ONE_TRACK = 0x400000000, + /**PHARMACODE_TWO_TRACK.*/ + BF_PHARMACODE_TWO_TRACK = 0x800000000, + /**PHARMACODE.*/ + BF_PHARMACODE = 0xC00000000 + /**No barcode format in BarcodeFormat.*/ + BF_NULL = 0x00, } ``` \ No newline at end of file diff --git a/programming/javascript/migrate-from-v10/index.md b/programming/javascript/migrate-from-v10/index.md index c86c692e..1ffc4c89 100644 --- a/programming/javascript/migrate-from-v10/index.md +++ b/programming/javascript/migrate-from-v10/index.md @@ -28,7 +28,7 @@ needAutoGenerateSidebar: true To use version 11, include the following script in your HTML: ```html - + ``` ## APIs changes introduced in v11 diff --git a/programming/javascript/release-notes/index.md b/programming/javascript/release-notes/index.md index 6ce6c3f3..d96569d3 100644 --- a/programming/javascript/release-notes/index.md +++ b/programming/javascript/release-notes/index.md @@ -9,6 +9,7 @@ breadcrumbText: Release Notes # DBR JavaScript SDK - Release Notes +- [11.6.2100 (08/18/2026)](js-11.html#1162100-08182026) - [11.6.2000 (08/13/2026)](js-11.html#1162000-08132026) - [11.4.3000 (07/02/2026)](js-11.html#1143000-07022026) - [11.4.2001 (04/24/2026)](js-11.html#1142001-04242026) diff --git a/programming/javascript/release-notes/js-11.md b/programming/javascript/release-notes/js-11.md index 1df28946..0f6239fa 100644 --- a/programming/javascript/release-notes/js-11.md +++ b/programming/javascript/release-notes/js-11.md @@ -10,6 +10,12 @@ noTitleIndex: true # Release Notes for Dynamsoft Barcode Reader JavaScript SDK +## 11.6.2100(08/18/2026) + +### Fixed + +- Fixed an issue where `getSimplifiedSettings()` returned inaccurate results due to precision loss when the configured `barcodeFormatId` value exceeded `MAX_SAFE_INTEGER` in a Capture Vision templates. + ## 11.6.2000 (08/13/2026) ### Highlights diff --git a/programming/javascript/user-guide/index.md b/programming/javascript/user-guide/index.md index e24f2fc9..18a67fff 100644 --- a/programming/javascript/user-guide/index.md +++ b/programming/javascript/user-guide/index.md @@ -48,7 +48,7 @@ The complete code of the "Hello World" example is shown below
- + + ``` - UNPKG ```html - + ``` @@ -190,9 +190,9 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde - In frameworks like React, Vue and Angular, you may want to add the package as a dependency. ```sh - npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E + npm i dynamsoft-barcode-reader-bundle@11.6.2100 -E # or - yarn add dynamsoft-barcode-reader-bundle@11.6.2000 -E + yarn add dynamsoft-barcode-reader-bundle@11.6.2100 -E ``` NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files). @@ -205,14 +205,14 @@ Besides using the public CDN, you can also download the SDK and host its files o - From the website - [Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.20&utm_source=guide&product=dbr&package=js) + [Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.21&utm_source=guide&product=dbr&package=js) The resources are located at the path `dynamsoft-barcode-reader-js-{version-number}/dist/`. - From npm ```sh - npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E + npm i dynamsoft-barcode-reader-bundle@11.6.2100 -E ``` The resources are located at the path `node_modules/`, without `@`. You must copy "dynamsoft-xxx" packages elsewhere and add `@`. The `` can be obtained from `package.json` of each package. Another thing to do is to [specify the engineResourcePaths](#2-optional-specify-the-location-of-the-engine-files) so that the SDK can correctly locate the resources. @@ -221,7 +221,7 @@ Besides using the public CDN, you can also download the SDK and host its files o You can typically include SDK like this: ```html - + ```
@@ -253,7 +253,7 @@ To enable the SDK's functionality, you must provide a valid license. Utilize the Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"); ``` -As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the Request a Trial License link. +As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the Request a Trial License link. > Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples. @@ -540,7 +540,7 @@ await cvRouter.startCapturing("ReadSingleBarcode"); The preset templates have many more settings that can be customized to suit your use case best. If you [download the SDK from Dynamsoft website](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/), you can find the templates under -* "/dynamsoft-barcode-reader-js-11.6.2000/dist/templates/" +* "/dynamsoft-barcode-reader-js-11.6.2100/dist/templates/" Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument. @@ -642,7 +642,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho ### API Reference You can check out the detailed documentation about the APIs of the SDK at -[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000). +[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2100](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2100).