Skip to content

Commit a9461eb

Browse files
authored
Release 23.7 (#72)
* Update version to 23.7.0 * New code generated from updated Swagger specification * Add @deprecated for deprecated parameters * Increase timeout for httpClient.test.ts
1 parent a1d0229 commit a9461eb

9 files changed

Lines changed: 589 additions & 545 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ init:
1010

1111
.PHONY: format
1212
format:
13+
./scripts/annotate-deprecated.bash
1314
./scripts/docs_format.sh
1415
npm run format
1516

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![npm](https://img.shields.io/npm/v/aspose-barcode-cloud-node)](https://www.npmjs.com/package/aspose-barcode-cloud-node)
66

77
+ API version: 3.0
8-
+ Package version: 23.6.0
8+
+ Package version: 23.7.0
99

1010
## Demo applications
1111

docs/models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ enum DataMatrixEccType {
447447

448448
## DataMatrixEncodeMode
449449

450-
450+
DataMatrix encoder's encoding mode, default to Auto
451451

452452
```ts
453453
enum DataMatrixEncodeMode {
@@ -481,7 +481,7 @@ interface DataMatrixParams {
481481
textEncoding?: string;
482482

483483
/**
484-
* Columns count.
484+
* DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Columns count.
485485
*/
486486
columns?: number;
487487

@@ -496,7 +496,7 @@ interface DataMatrixParams {
496496
dataMatrixEncodeMode?: DataMatrixEncodeMode;
497497

498498
/**
499-
* Rows count.
499+
* DEPRECATED: Will be replaced with 'DataMatrix.Version' in the next release Rows count.
500500
*/
501501
rows?: number;
502502

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aspose-barcode-cloud-node",
3-
"version": "23.6.0",
3+
"version": "23.7.0",
44
"description": "Aspose.BarCode Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/barcode/nodejs",
66
"repository": {

scripts/annotate-deprecated.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
find src -name "*.ts" -exec sed -i -E 's_\* DEPRECATED:_* @deprecated_g' "{}" \;

scripts/check-badges.bash

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ readme_file=$1
55

66
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
77

8-
pushd "${SCRIPT_DIR}/.."
8+
pushd "${SCRIPT_DIR}/.." >/dev/null
99

10-
(grep -oP '[^/]+\.yml(?=/badge.svg)' "${readme_file}" || (echo "No badges in ${readme_file}" ; exit 1)) | while read -r workflow_file; do
10+
(grep -oP '[^/]+\.yml(?=/badge.svg)' "${readme_file}" || (>&2 echo "No badges in ${readme_file}" ; exit 1)) | while read -r workflow_file; do
1111
path_to_workflow=".github/workflows/${workflow_file}"
1212
if [ ! -e "${path_to_workflow}" ]
1313
then
14-
echo "Error, workflow does not exist \"${path_to_workflow}\""
14+
>&2 echo "Error, workflow does not exist \"${path_to_workflow}\""
1515
exit 1
1616
fi
1717
done
1818

1919
(grep -oP '[^/]+\.yml/badge.svg(?!\?branch=main)' "${readme_file}" || echo ) | while read -r badge_without_branch; do
2020
if [ -z "${badge_without_branch}" ]; then continue; fi
21-
echo "Badge without branch \"${badge_without_branch}\""
21+
>&2 echo "Badge without branch \"${badge_without_branch}\""
2222
exit 1
2323
done
2424

25-
popd
25+
popd >/dev/null

src/models.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ export enum DataMatrixEccType {
654654
}
655655

656656
/**
657-
*
657+
* DataMatrix encoder's encoding mode, default to Auto
658658
*/
659659
export enum DataMatrixEncodeMode {
660660
Auto = 'Auto',
@@ -681,7 +681,7 @@ export class DataMatrixParams {
681681
*/
682682
'textEncoding'?: string;
683683
/**
684-
* Columns count.
684+
* @deprecated Will be replaced with 'DataMatrix.Version' in the next release Columns count.
685685
*/
686686
'columns'?: number;
687687
/**
@@ -693,7 +693,7 @@ export class DataMatrixParams {
693693
*/
694694
'dataMatrixEncodeMode'?: DataMatrixEncodeMode;
695695
/**
696-
* Rows count.
696+
* @deprecated Will be replaced with 'DataMatrix.Version' in the next release Rows count.
697697
*/
698698
'rows'?: number;
699699
/**
@@ -1266,11 +1266,11 @@ export class GeneratorParams {
12661266
*/
12671267
'resolution'?: number;
12681268
/**
1269-
* DEPRECATED: Use 'Resolution' instead.
1269+
* @deprecated Use 'Resolution' instead.
12701270
*/
12711271
'resolutionX'?: number;
12721272
/**
1273-
* DEPRECATED: Use 'Resolution' instead.
1273+
* @deprecated Use 'Resolution' instead.
12741274
*/
12751275
'resolutionY'?: number;
12761276
/**
@@ -3380,11 +3380,11 @@ Default value: 96 dpi.
33803380
*/
33813381
'resolution'?: number;
33823382
/**
3383-
* DEPRECATED: Use 'Resolution' instead.
3383+
* @deprecated Use 'Resolution' instead.
33843384
*/
33853385
'resolutionX'?: number;
33863386
/**
3387-
* DEPRECATED: Use 'Resolution' instead.
3387+
* @deprecated Use 'Resolution' instead.
33883388
*/
33893389
'resolutionY'?: number;
33903390
/**
@@ -4288,11 +4288,11 @@ Default value: 96 dpi.
42884288
*/
42894289
'resolution'?: number;
42904290
/**
4291-
* DEPRECATED: Use 'Resolution' instead.
4291+
* @deprecated Use 'Resolution' instead.
42924292
*/
42934293
'resolutionX'?: number;
42944294
/**
4295-
* DEPRECATED: Use 'Resolution' instead.
4295+
* @deprecated Use 'Resolution' instead.
42964296
*/
42974297
'resolutionY'?: number;
42984298
/**

test/httpClient.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import assert from 'assert';
33
import { HttpClient } from '../src/httpClient';
44

55
describe('httpClient tests', () => {
6-
jest.setTimeout(20000);
6+
jest.setTimeout(60000);
77

88
const client = new HttpClient();
99

0 commit comments

Comments
 (0)