From 8f2870dc1a910aa713a897daf54b76d250ca415a Mon Sep 17 00:00:00 2001 From: Yaminim Date: Thu, 11 Jan 2024 15:29:41 +0530 Subject: [PATCH 1/4] Redundant test cases removed as per new chunk size calculation --- src/lib/api/upload/uploaders/s3.spec.ts | 31 ------------------------- 1 file changed, 31 deletions(-) diff --git a/src/lib/api/upload/uploaders/s3.spec.ts b/src/lib/api/upload/uploaders/s3.spec.ts index 9d30f9b3..a5238041 100644 --- a/src/lib/api/upload/uploaders/s3.spec.ts +++ b/src/lib/api/upload/uploaders/s3.spec.ts @@ -723,37 +723,6 @@ describe('Api/Upload/Uploaders/S3', () => { part: 1, }); - const chunk2 = await testFile.getChunkByMetadata(firstPartMetadata, chunkSize / 2, chunkSize); - - expect(mockUpload).toHaveBeenNthCalledWith(3, { - md5: chunk2.md5, - size: chunk2.size, - apikey: testApikey, - region: mockRegion, - store: { - location: DEFAULT_STORE_LOCATION, - }, - fii: true, - uri: mockedUri, - upload_id: mockUploadId, - offset: chunkSize, - part: 1, - }); - }); - - it('should exit when chunk size reaches min chunk size', async () => { - nock.removeInterceptor(interceptorS3); - scope.put('/fakes3').reply((url, _, cb) => cb('Error')); - - const u = new S3Uploader({}); - u.setUrl(testHost); - u.setApikey(testApikey); - u.setTimeout(100); - u.setUploadMode(UploadMode.INTELLIGENT); - - u.addFile(getSmallTestFile()); - const res = await u.execute(); - expect(res[0].status).toEqual('Failed'); }); it('should exit on 4xx errors', async () => { From cfddad176ecb863521ed5bb4c7b67d5780cb200e Mon Sep 17 00:00:00 2001 From: SethK Date: Thu, 11 Jan 2024 17:40:48 +0530 Subject: [PATCH 2/4] fix: Change development deployment branch --- .github/workflows/deploy_beta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_beta.yml b/.github/workflows/deploy_beta.yml index bb9d5e89..aff5a826 100644 --- a/.github/workflows/deploy_beta.yml +++ b/.github/workflows/deploy_beta.yml @@ -1,7 +1,7 @@ name: filestack-js-beta on: push: - branches: [ development ] + branches: [ develop ] jobs: build: runs-on: ubuntu-latest From d39e90253634a06ac05e7d0de5e230b5d78e88dc Mon Sep 17 00:00:00 2001 From: SethK Date: Tue, 16 Jan 2024 02:18:06 +0530 Subject: [PATCH 3/4] chore: Beta picker integration --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 9ef89259..fa734e78 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,7 +18,7 @@ /** * @private */ -const PICKER_VERSION = '1.25.0'; +const PICKER_VERSION = 'beta'; /** * @private From 66f540451c7c6e50371cd2e117c4c1503476867c Mon Sep 17 00:00:00 2001 From: SethK Date: Thu, 18 Jan 2024 21:16:16 +0530 Subject: [PATCH 4/4] chore: Upgraded picker version, changelog and version --- CHANGELOG.md | 5 +++++ package-lock.json | 2 +- package.json | 2 +- src/config.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 231b06a4..62d7fe38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [3.30.0](https://github.com/filestack/filestack-js/compare/v3.29.0...v3.30.0) (2024-01-18) + +### Updgrade + * **picker:** Upgraded picker to v1.26.0. + ## [3.29.0](https://github.com/filestack/filestack-js/compare/v3.28.0...v3.29.0) (2024-01-05) ### Updgrade diff --git a/package-lock.json b/package-lock.json index fd22c507..eaac6627 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "filestack-js", - "version": "3.29.0", + "version": "3.30.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 249f34e6..2e647637 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "filestack-js", - "version": "3.29.0", + "version": "3.30.0", "description": "Official JavaScript library for Filestack", "main": "build/main/index.js", "module": "build/module/index.js", diff --git a/src/config.ts b/src/config.ts index fa734e78..9d78d4a9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,7 +18,7 @@ /** * @private */ -const PICKER_VERSION = 'beta'; +const PICKER_VERSION = '1.26.0'; /** * @private