Skip to content

Commit 1ce76fb

Browse files
8.0.0
1 parent 7823cc8 commit 1ce76fb

File tree

26 files changed

+36
-159
lines changed

26 files changed

+36
-159
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cdn
3636
Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a valid license and update `PRODUCT-KEYS`:
3737

3838
```html
39-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.6.0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.0.0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4040
```
4141

4242
## Quick Usage
@@ -70,7 +70,7 @@ Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a va
7070
7171
```js
7272
let DBR = require('dynamsoft-node-barcode');
73-
// Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license
73+
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license
7474
DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
7575
7676
(async()=>{
@@ -129,7 +129,7 @@ DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
129129

130130
* Unlike typical server-based applications, this library requires some advanced features which fortunately are supported by all mainstream modern browsers. These advanced features are listed below:
131131
* [MediaDevices/getUserMedia](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)
132-
* Required only for in-browser video streaming. If a browser doesn't have this API the [Single Frame Mode](https://www.dynamsoft.com/help/Barcode-Reader-wasm/classes/barcodescanner.html#singleframemode) is used automatically. If the API exists but doesn't work correctly, [Single Frame Mode](https://www.dynamsoft.com/help/Barcode-Reader-wasm/classes/barcodescanner.html#singleframemode) can be used as an alternative.
132+
* Required only for in-browser video streaming. If a browser doesn't have this API the [Single Frame Mode](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeScanner/accessors.html?ver=latest#singleframemode) is used automatically. If the API exists but doesn't work correctly, [Single Frame Mode](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeScanner/accessors.html?ver=latest#singleframemode) can be used as an alternative.
133133
* [WebAssembly](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/WebAssembly), [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob), [URL/createObjectURL](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL), [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API)
134134
* These four features are required for the library to work.
135135

@@ -182,7 +182,7 @@ DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
182182

183183
<sup>1</sup> The `wasm` file size is based on version 7.2.2. In later versions, the size may differ.
184184

185-
<sup>2</sup> The compact edition downloads and compiles faster, which makes it more suitable for the scenario where a customer only needs to scan a barcode once. In comparison, scenarios where an employee needs to scan lots of barcodes continuously or where uncommon barcodes or advanced features are required, use the full edition by simply setting the following before you call `loadWasm` or `CreateInstance`.
185+
<sup>2</sup> The compact edition downloads and compiles faster, which makes it more suitable for the scenario where a customer only needs to scan a barcode once. In comparison, scenarios where an employee needs to scan lots of barcodes continuously or where uncommon barcodes or advanced features are required, use the full edition by simply setting the following before you call `loadWasm` or `createInstance`.
186186

187187
`Dynamsoft.DBR.BarcodeReader._bUseFullFeature = true;`
188188

@@ -215,7 +215,7 @@ Create an HTML file with the following content. Deploy this to your web server a
215215
<!DOCTYPE html>
216216
<html>
217217
<body>
218-
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
218+
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
219219
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
220220
<script>
221221
let scanner = null;
@@ -430,9 +430,8 @@ The following introduces the 3rd way. Check out the following code on how it's d
430430
<div id="div-video-container">
431431
<video class="dbrScanner-video" playsinline="true"></video>
432432
</div>
433-
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
433+
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
434434
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
435-
436435
<script>
437436
let scanner = null;
438437
(async()=>{
@@ -596,7 +595,7 @@ Dynamsoft.DBR.BarcodeReader.engineResourcePath = "url/to/the/dir/";
596595

597596
https://www.dynamsoft.com/barcode-reader/programming/javascript/release-notes/
598597

599-
## How to Upgrade from version `7.x.x` to `8.x.x`
598+
## How to Upgrade
600599

601600
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/upgrade.html?ver=latest#from-v7x-to-v8x
602601

doc/api reference.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/api reference/index.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1>Dynamsoft JavaScript Barcode SDK for Web</h1>
6868
<img src="https://img.shields.io/jsdelivr/npm/hm/dynamsoft-javascript-barcode.svg" alt="jsdelivr">
6969
<img src="https://img.shields.io/snyk/vulnerabilities/npm/dynamsoft-javascript-barcode.svg" alt=""></p>
7070
<p><img src="https://www.dynamsoft.com/blog/wp-content/uploads/2018/12/blog_dbr6.4.1db06493aba126f0c7f177687cf56a9038dd655a1fd2d4374ab571ce738111858.png" alt="Dynamsoft JavaScript Barcode SDK"></p>
71-
<p><a href="https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx">Dynamsoft BarcodeReader SDK for Web</a> is a JavaScript library for barcode scanning based on the <strong>WebAssembly</strong> technology. It supports real-time localization and decoding of various barcode types. The library is capable of scanning barcodes from static images as well as directly from live video streams. It also supports reading multiple barcodes at once.</p>
71+
<p><a href="https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx">Dynamsoft JavaScript Barcode SDK for Web</a> is a JavaScript library for barcode scanning based on the <strong>WebAssembly</strong> technology. It supports real-time localization and decoding of various barcode types. The library is capable of scanning barcodes from static images as well as directly from live video streams. It also supports reading multiple barcodes at once.</p>
7272
<blockquote>
7373
<p>Also see <a href="https://github.com/dynamsoft-dbr/node-javascript-barcode">Dynamsoft JavaScript Barcode SDK for Node</a>.</p>
7474
</blockquote>
@@ -82,6 +82,11 @@ <h2>Install</h2>
8282
<span class="hljs-comment">&lt;!-- or --&gt;</span>
8383
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://unpkg.com/[email protected]/dist/dbr.js"</span> <span class="hljs-attr">data-productKeys</span>=<span class="hljs-string">"PRODUCT-KEYS"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre>
8484
<p><a href="https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js">Download zip</a></p>
85+
<a href="#license-key" id="license-key" style="color: inherit; text-decoration: none;">
86+
<h2>License Key</h2>
87+
</a>
88+
<p>Please visit <a href="https://www.dynamsoft.com/customer/license/trialLicense">https://www.dynamsoft.com/customer/license/trialLicense</a> to get a valid license and update <code>PRODUCT-KEYS</code>:</p>
89+
<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js"</span> <span class="hljs-attr">data-productKeys</span>=<span class="hljs-string">"PRODUCT-KEYS"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre>
8590
<a href="#quick-usage" id="quick-usage" style="color: inherit; text-decoration: none;">
8691
<h2>Quick Usage</h2>
8792
</a>
@@ -108,7 +113,7 @@ <h2>Quick Usage</h2>
108113
109114
```js
110115
let DBR = require('dynamsoft-node-barcode');
111-
// Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license
116+
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license
112117
DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
113118
114119
(async()=>{
@@ -173,7 +178,7 @@ <h4>Browser Compatibility:</h4>
173178
<li><p>Unlike typical server-based applications, this library requires some advanced features which fortunately are supported by all mainstream modern browsers. These advanced features are listed below:</p>
174179
<ul>
175180
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">MediaDevices/getUserMedia</a> <ul>
176-
<li>Required only for in-browser video streaming. If a browser doesn&#39;t have this API the <a href="https://www.dynamsoft.com/help/Barcode-Reader-wasm/classes/barcodescanner.html#singleframemode">Single Frame Mode</a> is used automatically. If the API exists but doesn&#39;t work correctly, <a href="https://www.dynamsoft.com/help/Barcode-Reader-wasm/classes/barcodescanner.html#singleframemode">Single Frame Mode</a> can be used as an alternative.</li>
181+
<li>Required only for in-browser video streaming. If a browser doesn&#39;t have this API the <a href="https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeScanner/accessors.html?ver=latest#singleframemode">Single Frame Mode</a> is used automatically. If the API exists but doesn&#39;t work correctly, <a href="https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeScanner/accessors.html?ver=latest#singleframemode">Single Frame Mode</a> can be used as an alternative.</li>
177182
</ul>
178183
</li>
179184
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/WebAssembly">WebAssembly</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob">Blob</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL">URL/createObjectURL</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API">Web Workers</a><ul>
@@ -336,7 +341,7 @@ <h4>Compact and Full Editions</h4>
336341
</tr>
337342
</tbody></table>
338343
<p> <sup>1</sup> The <code>wasm</code> file size is based on version 7.2.2. In later versions, the size may differ.</p>
339-
<p> <sup>2</sup> The compact edition downloads and compiles faster, which makes it more suitable for the scenario where a customer only needs to scan a barcode once. In comparison, scenarios where an employee needs to scan lots of barcodes continuously or where uncommon barcodes or advanced features are required, use the full edition by simply setting the following before you call <code>loadWasm</code> or <code>CreateInstance</code>.</p>
344+
<p> <sup>2</sup> The compact edition downloads and compiles faster, which makes it more suitable for the scenario where a customer only needs to scan a barcode once. In comparison, scenarios where an employee needs to scan lots of barcodes continuously or where uncommon barcodes or advanced features are required, use the full edition by simply setting the following before you call <code>loadWasm</code> or <code>createInstance</code>.</p>
340345
<p> <code>Dynamsoft.DBR.BarcodeReader._bUseFullFeature = true;</code></p>
341346
<a href="#live-demo" id="live-demo" style="color: inherit; text-decoration: none;">
342347
<h2>Live Demo</h2>
@@ -358,13 +363,13 @@ <h3>Step One: Write code in one minute!</h3>
358363
</a>
359364
<p>Create an HTML file with the following content. Deploy this to your web server and run the application over <strong>HTTPS</strong>.</p>
360365
<ul>
361-
<li>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 <a href="https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx">here</a>.</li>
366+
<li>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 <a href="https://www.dynamsoft.com/customer/license/trialLicense">here</a>.</li>
362367
<li>If you don&#39;t have a ready-to-use web server and you happen to have a package manager like <code>npm</code> or <code>yarn</code>, you can set up a simple http server in minutes. Check out http-server on <a href="https://www.npmjs.com/package/http-server">npm</a> or <a href="https://yarnpkg.com/en/package/http-server">yarn</a>.</li>
363368
</ul>
364369
<pre><code class="language-html"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
365370
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
366371
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
367-
<span class="hljs-comment">&lt;!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. --&gt;</span>
372+
<span class="hljs-comment">&lt;!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. --&gt;</span>
368373
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js"</span> <span class="hljs-attr">data-productKeys</span>=<span class="hljs-string">"PRODUCT-KEYS"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
369374
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
370375
<span class="hljs-keyword">let</span> scanner = <span class="hljs-literal">null</span>;
@@ -551,7 +556,7 @@ <h3>Customizing the UI</h3>
551556
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"div-video-container"</span>&gt;</span>
552557
<span class="hljs-tag">&lt;<span class="hljs-name">video</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"dbrScanner-video"</span> <span class="hljs-attr">playsinline</span>=<span class="hljs-string">"true"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">video</span>&gt;</span>
553558
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
554-
<span class="hljs-comment">&lt;!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. --&gt;</span>
559+
<span class="hljs-comment">&lt;!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. --&gt;</span>
555560
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js"</span> <span class="hljs-attr">data-productKeys</span>=<span class="hljs-string">"PRODUCT-KEYS"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
556561
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
557562
<span class="hljs-keyword">let</span> scanner = <span class="hljs-literal">null</span>;
@@ -687,8 +692,8 @@ <h2>Known Issues</h2>
687692
<h2>Changelog</h2>
688693
</a>
689694
<p><a href="https://www.dynamsoft.com/barcode-reader/programming/javascript/release-notes/">https://www.dynamsoft.com/barcode-reader/programming/javascript/release-notes/</a></p>
690-
<a href="#how-to-upgrade-from-version-7xx-to-8xx" id="how-to-upgrade-from-version-7xx-to-8xx" style="color: inherit; text-decoration: none;">
691-
<h2>How to Upgrade from version <code>7.x.x</code> to <code>8.x.x</code></h2>
695+
<a href="#how-to-upgrade" id="how-to-upgrade" style="color: inherit; text-decoration: none;">
696+
<h2>How to Upgrade</h2>
692697
</a>
693698
<p><a href="https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/upgrade.html?ver=latest#from-v7x-to-v8x">https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/upgrade.html?ver=latest#from-v7x-to-v8x</a></p>
694699
<a href="#api-documentation" id="api-documentation" style="color: inherit; text-decoration: none;">

example/hybrid/electron/.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

example/node/helloworld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let DBR = require('../../dist/dbr.js');
2-
// Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get trial license.
2+
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get trial license.
33
DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
44

55
(async()=>{

example/web/angular/src/app/Dynamsoft.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/web/angular/src/app/dbr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import DBR from "dynamsoft-javascript-barcode";
22
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected]/dist/";
3-
// Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license
3+
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license
44
DBR.BarcodeReader.productKeys = "PRODUCT-KEYS";
55
// DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm.
66
export default DBR;

example/web/angularDart/lib/dynamsoft.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

example/web/angularDart/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="stylesheet" href="styles.css">
1818
<link rel="icon" type="image/png" href="favicon.png">
1919

20-
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
20+
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
2121
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2222

2323
<script defer src="main.dart.js"></script>

example/web/debug/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div id="div-video-container" style="width:100%;height:calc(100vh - 100px);"></div>
1818

1919
<script src="//cdn.jsdelivr.net/npm/eruda"></script>
20-
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
20+
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
2121
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script></script>
2222

2323
<script>

0 commit comments

Comments
 (0)