Skip to content

Commit 95aab9e

Browse files
committed
v7.4.0
1 parent 74e87ec commit 95aab9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+873
-114
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ yarn.lock
4040
/.*ignore
4141
/DBR-*
4242
/src
43+
/Web.config
4344

4445
!/dist
4546
/dist/*
@@ -61,5 +62,12 @@ yarn.lock
6162
!/package.json
6263
!/LICENSE
6364

65+
!bower.json
66+
!composer.json
67+
!package.js
6468

6569

70+
71+
bower.json
72+
composer.json
73+
package.js

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ npm install dynamsoft-javascript-barcode --save
2525

2626
cdn
2727
```html
28-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2929
<!-- or -->
30-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
30+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
3131
```
3232

3333
[Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js)
@@ -38,7 +38,7 @@ cdn
3838
<!DOCTYPE html>
3939
<html>
4040
<body>
41-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
41+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4242
<script>
4343
let scanner = null;
4444
(async()=>{
@@ -91,7 +91,7 @@ Dynamsoft.BarcodeReader.productKeys = 'PRODUCT-KEYS';
9191
- [Print out log for better debugging](#print-out-log-for-better-debugging)
9292
- [Show found barcodes](#show-found-barcodes)
9393
- [Read a specific area/region](#read-a-specific-arearegion)
94-
- [Self-hosted Deployment](#self-hosted-deployment)
94+
- [Self-hosted | Offline | Intranet Deployment](#self-hosted--offline--intranet-deployment)
9595
- [Changelog](#changelog)
9696
- [How to Upgrade](#how-to-upgrade)
9797
- [API Documentation](#api-documentation)
@@ -195,9 +195,9 @@ This section will help you use the library to build a simple web application to
195195
* Supported Browser
196196
* Camera access
197197

198-
### Step One: Write the code in one minute!
198+
### Step One: Write code in one minute!
199199

200-
Create an HTML file with the following content. Deploy it to your web server if you have it already.
200+
Create an HTML file with the following content. Deploy this to your web server and run the application over **HTTPS**.
201201

202202
* You will need to replace <code>PRODUCT-KEYS</code> with a trial key for the sample code to work correctly. You can acquire a trial key [here](https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx).
203203
* If you don't have a ready-to-use web server and you happen to have a package manager like `npm` or `yarn`, you can set up a simple http server in minutes. Check out http-server on [npm](https://www.npmjs.com/package/http-server) or [yarn](https://yarnpkg.com/en/package/http-server).
@@ -207,7 +207,7 @@ Create an HTML file with the following content. Deploy it to your web server if
207207
<html>
208208
<body>
209209
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
210-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
210+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
211211
<script>
212212
let scanner = null;
213213
(async()=>{
@@ -266,13 +266,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
266266
* The following script includes the core library in the application via a [jsDelivr](https://www.jsdelivr.com/) CDN
267267

268268
```javascript
269-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
269+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
270270
```
271271

272272
The same can be done with other CDNs like `unpkg`
273273

274274
```javascript
275-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
275+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
276276
```
277277

278278
> **NOTE**: : Since we do change the library a bit in each release, to make sure your application doesn't get interrupted by automatic updates, use a specific version in your production environment, as shown above. Using a general major version like `@7` is not recommended.
@@ -419,7 +419,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
419419
<video class="dbrScanner-video" playsinline="true"></video>
420420
</div>
421421
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
422-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
422+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
423423
<script>
424424
let scanner = null;
425425
(async()=>{
@@ -607,7 +607,7 @@ await scanner.updateRuntimeSettings(settings);
607607
```
608608
[Try in JSFiddle](https://jsfiddle.net/DynamsoftTeam/taykq592/)
609609

610-
## Self-hosted Deployment
610+
## Self-hosted | Offline | Intranet Deployment
611611

612612
For commercial usage, we highly recommend self-hosted deployment. The following steps guide you through how to deploy the library on your own server.
613613

@@ -642,7 +642,7 @@ Locate the following files and place them in the same directory on your server.
642642
643643
* **Step three**: [Optional] Configure the `engineResourcePath`
644644

645-
If the resource files like the `wasm` files are not placed in the same directory as the file `dbr.min.js`. Then you will need to specify the path with the API `engineResourcePath`. Note that it must be set before `loadWasm` or `createInstance` is called.
645+
If the resource files like the `wasm` files are not placed in the same directory as the file `dbr.js`. Then you will need to specify the path with the API `engineResourcePath`. Note that it must be set before `loadWasm` or `createInstance` is called.
646646
```js
647647
Dynamsoft.BarcodeReader.engineResourcePath = "url/to/the/dir/";
648648
```
@@ -658,7 +658,7 @@ https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader-News.aspx#javascript
658658
* If you are using a CDN, be sure to change the version number in the URL like this
659659

660660
```javascript
661-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
661+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
662662
```
663663

664664
* If you have deployed the library files on your own server, you'll need to replace the old files with the new version. Download the latest version [here](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx).
@@ -711,7 +711,7 @@ It takes several steps to activate a purchased license, the following steps assu
711711

712712
```html
713713
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
714-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.3.0-v4/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
714+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
715715
```
716716

717717
To use your activated key, you simply need to replace `PRODUCT-KEYS` with it.

0 commit comments

Comments
 (0)