Skip to content

Commit a4e2062

Browse files
Merge pull request #3 from Dynamsoft/release/v1.0.x/v1.0.3
feat: release v1.0.3
2 parents b08e0a8 + cc877f5 commit a4e2062

File tree

4 files changed

+82
-12
lines changed

4 files changed

+82
-12
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Since the **DDS library files** are published on [**npm**](https://www.npmjs.com
8484
8585
To use the precompiled script, simply include the following URL in a `<script>` tag:
8686
```html
87-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dds.bundle.js"></script>
87+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dds.bundle.js"></script>
8888
```
8989
9090
Below is the complete **Hello World** sample page that uses this precompiled script from a CDN.
@@ -99,7 +99,7 @@ Below is the complete **Hello World** sample page that uses this precompiled scr
9999
<meta charset="utf-8" />
100100
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
101101
<title>Dynamsoft Document Scanner - Hello World</title>
102-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dds.bundle.js"></script>
102+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dds.bundle.js"></script>
103103
</head>
104104
<body>
105105
<h1 style="font-size: large">Dynamsoft Document Scanner</h1>
@@ -152,7 +152,7 @@ Let’s walk through the code in the Hello World Sample to understand how it wor
152152
<title>Dynamsoft Document Scanner - Hello World</title>
153153
<script src="../dist/dds.bundle.js"></script>
154154
<!--Alternatively, reference the script from CDN
155-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dds.bundle.js"></script>
155+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dds.bundle.js"></script>
156156
-->
157157
</head>
158158
```
@@ -166,7 +166,7 @@ In this step, **DDS** is referenced using a relative local path in the `<head>`
166166
Alternatively, the script can be referenced from a CDN:
167167
168168
```html
169-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dds.bundle.js"></script>
169+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dds.bundle.js"></script>
170170
```
171171
172172
**DDS** wraps all its dependency scripts, so a **DDS** project only needs to include **DDS** itself as a single script. No additional dependency scripts are required.
@@ -370,7 +370,7 @@ We previously covered `container` in [Workflow Customization](#workflow-customiz
370370
> If **DDS** performance does not meet your needs in your usage scenario, you may require a customized algorithm template for better results. In this case, please contact our experienced [Technical Support Team](https://www.dynamsoft.com/company/contact/) to discuss your requirements. They will help tailor a suitable template for you, which you can then apply by updating `templateFilePath`.
371371
372372
By default, `cameraEnhancerUIPath` points to a file hosted on the jsDelivr CDN:
373-
[https://cdn.jsdelivr.net/npm/[email protected].2/dist/document-scanner.ui.html](https://cdn.jsdelivr.net/npm/[email protected].2/dist/document-scanner.ui.html).
373+
[https://cdn.jsdelivr.net/npm/[email protected].3/dist/document-scanner.ui.html](https://cdn.jsdelivr.net/npm/[email protected].3/dist/document-scanner.ui.html).
374374
375375
This file defines the UI for `DocumentScannerView`. However, since files on the CDN **cannot be modified directly**, you need to use a **local version** to customize the UI. `cameraEnhancerUIPath` is used to specify the local version.
376376

package-lock.json

Lines changed: 70 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamsoft-document-scanner",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Dynamsoft Document Scanner (DDS) is a ready-to-use SDK for capturing and enhancing document images with automatic border detection, correction, and customizable workflows.",
55
"files": [
66
"/dist",
@@ -57,9 +57,12 @@
5757
"tslib": "^2.6.2",
5858
"typescript": "^5.3.3",
5959
"cors": "^2.8.5",
60-
"express": "^4.21.2"
60+
"express": "^4.21.2",
61+
"formidable": "^3.5.2"
6162
},
6263
"dependencies": {
63-
"dynamsoft-capture-vision-bundle": "2.6.1000"
64+
"dynamsoft-capture-vision-bundle": "2.6.1000",
65+
"dynamsoft-capture-vision-std": "1.4.21",
66+
"dynamsoft-image-processing": "2.4.31"
6467
}
6568
}

src/DocumentScanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getElement, shouldCorrectImage } from "./views/utils";
1010

1111
// Default DCE UI path
1212
const DEFAULT_DCE_UI_PATH =
13-
"https://cdn.jsdelivr.net/npm/[email protected].1/dist/document-scanner.ui.html";
13+
"https://cdn.jsdelivr.net/npm/[email protected].3/dist/document-scanner.ui.html";
1414
const DEFAULT_CONTAINER_HEIGHT = "100dvh";
1515

1616
export interface DocumentScannerConfig {

0 commit comments

Comments
 (0)