Skip to content

Commit 6bf7ce9

Browse files
update to internal commit 398031d2
1 parent 9a78b25 commit 6bf7ce9

File tree

9 files changed

+27
-56
lines changed

9 files changed

+27
-56
lines changed

_data/product_version.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version_info_list_js:
44
- value: latest version(10.4.2001)
55
- value: 10.x
66
child:
7-
- 10.4.2000
87
- 10.2.1000
98
- 10.0.21
109
- 10.0.20

_includes/sidelist-programming/programming-javascript.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,7 @@
16611661
</li>
16621662
</ul>
16631663
</li>
1664+
<li lang="javascript"><a href="{{ site.license_activation }}index.html" class="otherLinkColour">License Initialization</a></li>
16641665
<!-- <li class="category">OTHERS</li>
16651666
<li>
16661667
<a

assets/js/dbrWebVersionSearch.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
{
33
"version": "10.4.2001",
44
"matchVersion": {
5-
"javascript": "2.4.2001"
6-
}
7-
},
8-
{
9-
"version": "10.4.2000",
10-
"matchVersion": {
11-
"javascript": "2.4.2000"
5+
"javascript": "2.4.2100"
126
}
137
},
148
{

programming/javascript/release-notes/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ permalink: /programming/javascript/release-notes/index.html
1010

1111
# DBR JavaScript SDK - Release Notes
1212

13-
- [10.4.2001 (10/11/2024)](js-10.html#1042001-10112024)
14-
- [10.4.2000 (10/10/2024)](js-10.html#1042000-10102024)
13+
- [10.4.2001 (10/17/2024)](js-10.html#1042001-10172024)
1514
- [10.2.10 (04/03/2024)](js-10.html#10210-04032024)
1615
- [10.0.21 (02/05/2024)](js-10.html#10021-02052024)
1716
- [10.0.20 (01/29/2024)](js-10.html#10020-01292024)

programming/javascript/release-notes/js-10.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ permalink: /programming/javascript/release-notes/js-10.html
1111

1212
# Release Notes for Dynamsoft Barcode Reader JavaScript SDK
1313

14-
## 10.4.2001 (10/11/2024)
15-
16-
### Fixed
17-
18-
- Fixed the issue where the rootPath definition in `engineResourcePaths` failed to function correctly in certain scenarios.
19-
20-
## 10.4.2000 (10/10/2024)
14+
## 10.4.2001 (10/17/2024)
2115

2216
### New
2317

@@ -39,7 +33,7 @@ permalink: /programming/javascript/release-notes/js-10.html
3933

4034
### Changed
4135

42-
- Updated the enumeration value of `EnumBarcodeFormat.BF_ALL` to `0xFFFFFFFEFFFFFFFF`, extending support to non-standard barcodes.
36+
- Updated the enumeration value of `EnumBarcodeFormat.BF_ALL` to `0xFFFFFFFEFFFFFFFF`, which no longer includes non-standard barcodes.
4337

4438
### Fixed
4539

programming/javascript/upgrade-guide/9to10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In version 10.x, you need to reference several modules:
4141
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/license.js"></script>
4242
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/utility.js"></script>
4343
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js"></script>
44-
<script src="https://cdn.jsdelivr.net/npm/[email protected].20/dist/cvr.js"></script>
44+
<script src="https://cdn.jsdelivr.net/npm/[email protected].21/dist/cvr.js"></script>
4545
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dce.js"></script>
4646
```
4747

programming/javascript/user-guide/index.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -341,16 +341,8 @@ This is usually only required with frameworks like Angular or React, etc. where
341341
The purpose is to tell the SDK where to find the engine files (\*.worker.js, \*.wasm.js and \*.wasm, etc.). The API is called `Dynamsoft.Core.CoreModule.engineResourcePaths`:
342342
343343
```javascript
344-
//The following code uses the jsDelivr CDN, feel free to change it to your own location of these files
345-
Object.assign(Dynamsoft.Core.CoreModule.engineResourcePaths, {
346-
std: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
347-
dip: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
348-
core: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
349-
license: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
350-
cvr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
351-
dbr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
352-
dce: "https://cdn.jsdelivr.net/npm/[email protected]/dist/"
353-
});
344+
//The following code uses the jsDelivr CDN as an example, feel free to change it to your own location of these files
345+
CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
354346
```
355347
356348
### Set up and start image processing

programming/javascript/user-guide/use-in-framework-v10.2.10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ beforeUnmount(){
109109

110110
In scenarios where users may click the button quickly, the component might be destroyed before `cvRouter` is fully created. To handle this situation, we'll need to implement some techniques to ensure proper resource management.
111111

112-
Here's an improved vesion of the code to address this issue:
112+
Here's an improved version of the code to address this issue:
113113

114114
```ts
115115
let pCvRouter; // promise of cvRouter

programming/javascript/user-guide/use-in-framework.md

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default-layout
3-
title: v10.2.10 User Guide - Use Dynamsoft Barcode Reader JavaScript Edition In Framework
3+
title: v10.4.20 User Guide - Use Dynamsoft Barcode Reader JavaScript Edition In Framework
44
description: This is the user guide to integrate Dynamsoft Barcode Reader JavaScript SDK in framework.
55
keywords: user guide, javascript, js, barcodes, camera, images, framework, react, angular, vue
66
breadcrumbText: User Guide
@@ -23,21 +23,21 @@ Assuming you have an existing project using a framework, you should have a `pack
2323
1. Open the terminal from your project root directory.
2424
2. Install DBR-JS SDK with the following command:
2525

26-
```sh
27-
npm install [email protected] -E
28-
```
26+
```sh
27+
npm install [email protected] -E
28+
```
2929

3030
3. Confirm the installation by checking the `package.json`. You should see:
3131

32-
```json
33-
{
34-
...
35-
"dependencies": {
36-
...
37-
"dynamsoft-barcode-reader-bundle": "10.4.2001"
38-
}
39-
}
40-
```
32+
```json
33+
{
34+
...
35+
"dependencies": {
36+
...
37+
"dynamsoft-barcode-reader-bundle": "10.4.2001"
38+
}
39+
}
40+
```
4141

4242
Notice that there is no `^` before `10.2.1000`. No `^` indicates an exact version, ensuring stability and avoids automatic upgrades even without `package-lock.json`.
4343

@@ -52,16 +52,8 @@ import { CoreModule } from "dynamsoft-core";
5252
import { LicenseManager } from "dynamsoft-license";
5353
import "dynamsoft-barcode-reader";
5454
55-
// Configures the paths where the .wasm files and other necessary resources for modules are located.
56-
CoreModule.engineResourcePaths = {
57-
std: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
58-
dip: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
59-
core: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
60-
license: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
61-
cvr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
62-
dbr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
63-
dce: "https://cdn.jsdelivr.net/npm/[email protected]/dist/"
64-
};
55+
// Configures the root path where the .wasm files and other necessary resources for modules are located.
56+
CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
6557
6658
/** LICENSE ALERT - README
6759
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
@@ -72,15 +64,15 @@ LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
7264
/**
7365
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
7466
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
75-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.2.10&utm_source=github#specify-the-license or contact [email protected].
67+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.4.20&utm_source=github#specify-the-license or contact [email protected].
7668
* LICENSE ALERT - THE END
7769
*/
7870
7971
// Optional. Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
8072
CoreModule.loadWasm(["DBR"]);
8173
```
8274
83-
In order for these settings to take effect, `dynamsoft.config.ts` must be imported before using the barcode reader. Import this file at the entry point of your application, such as in `main.ts` or the root component. If you import `dynamsoft.config.ts` within a specific subcomponent, you can achieve lazy loading, which can save bandwidth by only loading the barcode feature when needed.
75+
In order for these settings to take effect, `dynamsoft.config.ts` must be imported before using the barcode reader. One approach is to import this file at the entry point of the application, such as in `main.ts` or the root component. If you import `dynamsoft.config.ts` within a specific subcomponent, you can achieve lazy loading, which can save bandwidth by only loading the barcode feature when needed.
8476
8577
Next, we will demonstrate how to introduce `dynamsoft.config.ts` into a specific component. Don't skip the [Component for Reading Image](#component-for-reading-image) section even if you only need video barcode decoding.
8678
@@ -109,7 +101,7 @@ beforeUnmount(){
109101
110102
In scenarios where users may click the button quickly, the component might be destroyed before `cvRouter` is fully created. To handle this situation, we'll need to implement some techniques to ensure proper resource management.
111103
112-
Here's an improved vesion of the code to address this issue:
104+
Here's an improved version of the code to address this issue:
113105
114106
```ts
115107
let pCvRouter; // promise of cvRouter

0 commit comments

Comments
 (0)