Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The complete code of the "Hello World" example is shown below
<body>
<div id="camera-view-container" style="width: 100%; height: 60vh"></div>
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2001/dist/dbr.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
<script>
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
Dynamsoft.Core.CoreModule.loadWasm(["dbr"]);
Expand Down Expand Up @@ -225,29 +225,29 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
- jsDelivr

```html
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2001/dist/dbr.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
```

- UNPKG

```html
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@10.4.2001/dist/dbr.bundle.js"></script>
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
```

- In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.

```html
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@10.4.2001/dist/dbr.bundle.js"></script>
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
```

However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself.

- In frameworks like React and Vue, you may want to add the package as a dependency.

```sh
npm i dynamsoft-barcode-reader-bundle@10.4.2001 -E
npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
# or
yarn add dynamsoft-barcode-reader-bundle@10.4.2001 -E
yarn add dynamsoft-barcode-reader-bundle@10.4.2002 -E
```

NOTE that in frameworks, you need to [specify the engineResourcePaths](#specify-the-location-of-the-engine-files-optional).
Expand All @@ -265,13 +265,13 @@ There are two options for downloading the SDK, and the usage for each is slightl
The resources are located at path `dynamsoft/distributables/<pkg>@<version>`, you can typically include it like this:

```html
<script src="dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.2001/dist/dbr.bundle.js"></script>
<script src="dynamsoft/distributables/dynamsoft-barcode-reader-bundle@10.4.2002/dist/dbr.bundle.js"></script>
```

- npm

```sh
npm i dynamsoft-barcode-reader-bundle@10.4.2001 -E
npm i dynamsoft-barcode-reader-bundle@10.4.2002 -E
# Compared with using CDN, you need to set up more resources.
npm i dynamsoft-capture-vision-std@1.4.10 -E
npm i dynamsoft-image-processing@2.4.20 -E
Expand Down Expand Up @@ -592,7 +592,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-10.4.2001/dynamsoft/templates/"
* "/dynamsoft-barcode-reader-js-10.4.2002/dynamsoft/templates/"

Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument.

Expand Down Expand Up @@ -674,7 +674,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho
## API Documentation

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=10.4.2001](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2001).
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=10.4.2002).

## System Requirements

Expand Down Expand Up @@ -716,7 +716,7 @@ Apart from the browsers, the operating systems may impose some limitations of th

## How to Upgrade

If you want to upgrade the SDK from an old version to a newer one, please see [how to upgrade](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.2001&utm_source=github).
If you want to upgrade the SDK from an old version to a newer one, please see [how to upgrade](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/upgrade-guide/index.html?ver=10.4.2002&utm_source=github).

## Release Notes

Expand All @@ -728,4 +728,4 @@ Now that you have got the SDK integrated, you can choose to move forward in the

1. Learn how to [Use in Framework](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/use-in-framework.html)
2. Check out the [Official Samples and Demo](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/samples-demos/index.html?ver=10.4.20)
3. Learn about the [APIs of the SDK](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.2001)
3. Learn about the [APIs of the SDK](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/index.html?ver=10.4.2002)
4 changes: 2 additions & 2 deletions dist/dbr.bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dbr.bundle.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dbr.no-content-bundle.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @website http://www.dynamsoft.com
* @copyright Copyright 2024, Dynamsoft Corporation
* @author Dynamsoft
* @version 10.4.2001
* @version 10.4.2002
* @fileoverview Dynamsoft JavaScript Library for Barcode Reader
* More info on dbr JS: https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/
*/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dynamsoft-barcode-reader-bundle",
"version": "10.4.2001",
"version": "10.4.2002",
"description": "Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DaraMatrix, PDF417, and Aztec Code.",
"main": "dist/dbr.bundle.js",
"module": "dist/dbr.no-content-bundle.esm.js",
Expand Down Expand Up @@ -78,9 +78,9 @@
"dependencies": {
"dynamsoft-barcode-reader": "10.4.20",
"dynamsoft-camera-enhancer": "4.1.0",
"dynamsoft-capture-vision-router": "2.4.21",
"dynamsoft-core": "3.4.20",
"dynamsoft-capture-vision-router": "2.4.22",
"dynamsoft-core": "3.4.21",
"dynamsoft-license": "3.4.21",
"dynamsoft-utility": "1.4.20"
"dynamsoft-utility": "1.4.21"
}
}