From 1c03e4cd377f68ea9d185c99531cc4ba18460c63 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Nov 2023 15:17:34 +0000 Subject: [PATCH 1/6] chore: release v6.11.0 --- CHANGELOG.md | 9 +++++++++ package-lock.json | 20 ++++++++++---------- package.json | 2 +- packages/api-client-utils/package.json | 2 +- packages/api-client-utils/src/version.ts | 2 +- packages/rest-client/package.json | 4 ++-- packages/rest-client/src/version.ts | 2 +- packages/signed-uploads/package.json | 2 +- packages/upload-client/package.json | 4 ++-- packages/upload-client/src/version.ts | 2 +- 10 files changed, 29 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f6eb493..acb193d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# [6.11.0](https://github.com/uploadcare/uploadcare-js-api-clients/compare/v6.10.0...v6.11.0) (2023-11-15) + + +### Features + +* **rest-client:** add AWS Rekognition Moderation addon ([67a01dc](https://github.com/uploadcare/uploadcare-js-api-clients/commit/67a01dcd759509261180d01cc938e71021971a8d)) + + + # [6.10.0](https://github.com/uploadcare/uploadcare-js-api-clients/compare/v6.9.0...v6.10.0) (2023-11-14) diff --git a/package-lock.json b/package-lock.json index 6203eb9b..62c02cf6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@uploadcare/api-clients", - "version": "6.10.0", + "version": "6.11.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@uploadcare/api-clients", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT", "workspaces": [ "packages/api-client-utils", @@ -12216,12 +12216,12 @@ }, "packages/api-client-utils": { "name": "@uploadcare/api-client-utils", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT" }, "packages/rest-client": { "name": "@uploadcare/rest-client", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT", "dependencies": { "blueimp-md5": "^2.19.0", @@ -12230,13 +12230,13 @@ "devDependencies": { "@types/blueimp-md5": "^2.18.0", "@types/node-fetch": "^2.6.2", - "@uploadcare/upload-client": "^6.10.0", + "@uploadcare/upload-client": "^6.11.0", "ts-node": "^10.8.1" } }, "packages/signed-uploads": { "name": "@uploadcare/signed-uploads", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT", "devDependencies": { "ts-node": "^10.8.1" @@ -12244,7 +12244,7 @@ }, "packages/upload-client": { "name": "@uploadcare/upload-client", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT", "dependencies": { "form-data": "^4.0.0", @@ -12256,7 +12256,7 @@ "@types/express-serve-static-core": "^4.17.28", "@types/koa": "2.13.4", "@types/ws": "8.5.3", - "@uploadcare/api-client-utils": "^6.10.0", + "@uploadcare/api-client-utils": "^6.11.0", "chalk": "^4.1.2", "data-uri-to-buffer": "3.0.1", "dataurl-to-blob": "0.0.1", @@ -14110,7 +14110,7 @@ "requires": { "@types/blueimp-md5": "^2.18.0", "@types/node-fetch": "^2.6.2", - "@uploadcare/upload-client": "^6.10.0", + "@uploadcare/upload-client": "^6.11.0", "blueimp-md5": "^2.19.0", "node-fetch": "^2.6.9", "ts-node": "^10.8.1" @@ -14130,7 +14130,7 @@ "@types/express-serve-static-core": "^4.17.28", "@types/koa": "2.13.4", "@types/ws": "8.5.3", - "@uploadcare/api-client-utils": "^6.10.0", + "@uploadcare/api-client-utils": "^6.11.0", "chalk": "^4.1.2", "data-uri-to-buffer": "3.0.1", "dataurl-to-blob": "0.0.1", diff --git a/package.json b/package.json index 021ff59f..79544fd4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@uploadcare/api-clients", "private": true, "type": "module", - "version": "6.10.0", + "version": "6.11.0", "license": "MIT", "workspaces": [ "packages/api-client-utils", diff --git a/packages/api-client-utils/package.json b/packages/api-client-utils/package.json index 40690f93..d993941e 100644 --- a/packages/api-client-utils/package.json +++ b/packages/api-client-utils/package.json @@ -1,6 +1,6 @@ { "name": "@uploadcare/api-client-utils", - "version": "6.10.0", + "version": "6.11.0", "type": "module", "main": "./dist/cjs/index.browser.cjs", "module": "./dist/esm/index.browser.mjs", diff --git a/packages/api-client-utils/src/version.ts b/packages/api-client-utils/src/version.ts index 65d5122e..71086ce2 100644 --- a/packages/api-client-utils/src/version.ts +++ b/packages/api-client-utils/src/version.ts @@ -1 +1 @@ -export default '6.10.0' +export default '6.11.0' diff --git a/packages/rest-client/package.json b/packages/rest-client/package.json index f2e48db0..3c4962d5 100644 --- a/packages/rest-client/package.json +++ b/packages/rest-client/package.json @@ -1,6 +1,6 @@ { "name": "@uploadcare/rest-client", - "version": "6.10.0", + "version": "6.11.0", "description": "Library for work with Uploadcare Rest API", "type": "module", "main": "./dist/cjs/index.node.cjs", @@ -56,7 +56,7 @@ "devDependencies": { "@types/blueimp-md5": "^2.18.0", "@types/node-fetch": "^2.6.2", - "@uploadcare/upload-client": "^6.10.0", + "@uploadcare/upload-client": "^6.11.0", "ts-node": "^10.8.1" }, "dependencies": { diff --git a/packages/rest-client/src/version.ts b/packages/rest-client/src/version.ts index 65d5122e..71086ce2 100644 --- a/packages/rest-client/src/version.ts +++ b/packages/rest-client/src/version.ts @@ -1 +1 @@ -export default '6.10.0' +export default '6.11.0' diff --git a/packages/signed-uploads/package.json b/packages/signed-uploads/package.json index 52ea17e7..1e30b244 100644 --- a/packages/signed-uploads/package.json +++ b/packages/signed-uploads/package.json @@ -1,6 +1,6 @@ { "name": "@uploadcare/signed-uploads", - "version": "6.10.0", + "version": "6.11.0", "description": "Library for work with Uploadcare Signed Uploads", "type": "module", "main": "./dist/cjs/index.node.cjs", diff --git a/packages/upload-client/package.json b/packages/upload-client/package.json index 3fe06bf1..f0ec9940 100644 --- a/packages/upload-client/package.json +++ b/packages/upload-client/package.json @@ -1,6 +1,6 @@ { "name": "@uploadcare/upload-client", - "version": "6.10.0", + "version": "6.11.0", "description": "Library for work with Uploadcare Upload API", "type": "module", "module": "./dist/esm/index.node.mjs", @@ -90,7 +90,7 @@ "koa-body": "5.0.0", "mock-socket": "9.0.3", "start-server-and-test": "1.14.0", - "@uploadcare/api-client-utils": "^6.10.0", + "@uploadcare/api-client-utils": "^6.11.0", "chalk": "^4.1.2" }, "dependencies": { diff --git a/packages/upload-client/src/version.ts b/packages/upload-client/src/version.ts index 65d5122e..71086ce2 100644 --- a/packages/upload-client/src/version.ts +++ b/packages/upload-client/src/version.ts @@ -1 +1 @@ -export default '6.10.0' +export default '6.11.0' From 911f95cf502a09efe6e2677b9771a92d774759e3 Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Wed, 15 Nov 2023 18:18:17 +0300 Subject: [PATCH 2/6] Update CHANGELOG.md --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acb193d5..64eaae8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ * **rest-client:** add AWS Rekognition Moderation addon ([67a01dc](https://github.com/uploadcare/uploadcare-js-api-clients/commit/67a01dcd759509261180d01cc938e71021971a8d)) - # [6.10.0](https://github.com/uploadcare/uploadcare-js-api-clients/compare/v6.9.0...v6.10.0) (2023-11-14) From 643083c7db2189111de2116c4f7ff89c3e6632d1 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Wed, 15 Nov 2023 18:42:46 +0300 Subject: [PATCH 3/6] chore: update CI script --- .github/workflows/checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d1e99580..2f69b0a4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,10 +14,10 @@ jobs: REST_CLIENT_DEFAULT_PUBLIC_KEY: ${{ secrets.REST_CLIENT_DEFAULT_PUBLIC_KEY }} REST_CLIENT_DEFAULT_SECRET_KEY: ${{ secrets.REST_CLIENT_DEFAULT_SECRET_KEY }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '16' + node-version: 18 - uses: dorny/paths-filter@v2 id: changes with: From 298dc48c63ab0f24f331a121192ccabd1ffc29ed Mon Sep 17 00:00:00 2001 From: nd0ut Date: Wed, 15 Nov 2023 18:43:17 +0300 Subject: [PATCH 4/6] chore: fix flaky test --- packages/rest-client/src/tools/addonJobPoller.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/rest-client/src/tools/addonJobPoller.test.ts b/packages/rest-client/src/tools/addonJobPoller.test.ts index ef158b1a..657bbb73 100644 --- a/packages/rest-client/src/tools/addonJobPoller.test.ts +++ b/packages/rest-client/src/tools/addonJobPoller.test.ts @@ -28,8 +28,12 @@ describe('addonJobPoller', () => { testSettings ) - expect(result.error).toBeFalse() - expect(result.result?.data).toBeTruthy() + if (result.error) { + expect(result.result).toBe(null) + } else { + expect(result.error).toBeFalse() + expect(result.result?.data).toBeTruthy() + } }) it('should accept onRun and onStatus callbacks', async () => { From ce991dd11e179ee64d364c2371ba175402e9827c Mon Sep 17 00:00:00 2001 From: nd0ut Date: Wed, 15 Nov 2023 18:43:24 +0300 Subject: [PATCH 5/6] chore: add todo --- packages/rest-client/src/tools/addonJobPoller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rest-client/src/tools/addonJobPoller.ts b/packages/rest-client/src/tools/addonJobPoller.ts index ba228c04..3f479e4c 100644 --- a/packages/rest-client/src/tools/addonJobPoller.ts +++ b/packages/rest-client/src/tools/addonJobPoller.ts @@ -54,6 +54,7 @@ export const addonJobPoller = async >( }, isJobFinished: (statusResponse) => statusResponse.status === AddonExecutionStatus.DONE, + // TODO: handle unknown status isJobFailed: (statusResponse) => statusResponse.status === AddonExecutionStatus.ERROR, getResult: async (job) => { From aaaf1b2356a11544d971b60d0361de04bb5e3424 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Wed, 15 Nov 2023 18:50:39 +0300 Subject: [PATCH 6/6] chore: use node 16 for ci --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2f69b0a4..385e2b9c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 16 - uses: dorny/paths-filter@v2 id: changes with: