From 6615d39dbcc90fbd646ce82b4bd3753a8a935606 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 3 Feb 2021 14:12:19 +0200 Subject: [PATCH 1/2] Breaking - change the name of the named export of the entire SDK --- rollup.config.js | 2 +- src/index.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index a2e61d23..d8ede630 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -7,7 +7,7 @@ export default [{ { file: 'dist/bundles/umd/base.js', format: 'umd', - name:'cloudinaryBase' + name:'CloudinaryBaseSDK' } ], plugins: [ diff --git a/src/index.ts b/src/index.ts index 831fa989..195012a8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,8 +12,7 @@ import {createCloudinaryV1URL} from "./backwards/createCloudinaryURL"; /** * @namespace SDK */ - -const CloudinarySDK = { +const CloudinaryBaseSDK = { Transformation, ImageTransformation, VideoTransformation, @@ -37,6 +36,6 @@ export { CloudinaryVideo, CloudinaryFile, createCloudinaryV1URL, - CloudinarySDK, - CloudinarySDK as default + CloudinaryBaseSDK, + CloudinaryBaseSDK as default }; From 3e0b913b55224b1a3a9dadb9ce213b0f63ad69ec Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 3 Feb 2021 14:13:19 +0200 Subject: [PATCH 2/2] Add a missing test file --- __TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts b/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts index 41bb6fbd..f086b7d1 100644 --- a/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts +++ b/__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts @@ -76,7 +76,7 @@ const bundleSizeTestCases:ITestCase[] = [ name: 'Import all of the SDK', sizeLimitInKB: 110, importsArray: [ - importFromBase('CloudinarySDK') + importFromBase('CloudinaryBaseSDK') ] } ];