Skip to content

Commit a708f7b

Browse files
Add Upscale action (#586)
* Add Upscale action * Update Blur action reexport * Use new type for the custom region * Increase allowed bundle size --------- Co-authored-by: Maciej Komorowski <[email protected]>
1 parent 34f500d commit a708f7b

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

__TESTS_BUNDLE_SIZE__/bundleSizeTestCases.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const bundleSizeTestCases:ITestCase[] = [
7474
},
7575
{
7676
name: 'Import all of the SDK',
77-
sizeLimitInKB: 136,
77+
sizeLimitInKB: 137,
7878
importsArray: [
7979
importFromPackage('* as CloudinaryURLGEN')
8080
]

__TESTS__/unit/actions/Effect.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe('Tests for Transformation Action -- Effect', () => {
5353
.effect(Effect.backgroundRemoval())
5454
.effect(Effect.dropShadow())
5555
.effect(Effect.generativeRestore())
56+
.effect(Effect.upscale())
5657
.toURL();
5758

5859
const expectedToContain = [
@@ -93,7 +94,8 @@ describe('Tests for Transformation Action -- Effect', () => {
9394
'e_deshake:16',
9495
'e_background_removal',
9596
'e_dropshadow',
96-
'e_gen_restore'
97+
'e_gen_restore',
98+
'e_upscale'
9799
].join('/');
98100

99101
expect(url).toBe(`https://res.cloudinary.com/demo/image/upload/${expectedToContain}/sample`);

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@
150150
}
151151
},
152152
"dependencies": {
153-
"@cloudinary/transformation-builder-sdk": "^1.7.0"
153+
"@cloudinary/transformation-builder-sdk": "^1.9.0"
154154
}
155-
}
155+
}

src/actions/effect.ts

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import {
3939
generativeReplace,
4040
generativeRecolor,
4141
generativeRestore,
42+
upscale,
4243
theme
4344
} from "@cloudinary/transformation-builder-sdk/actions/effect";
4445

@@ -83,5 +84,6 @@ export {
8384
generativeReplace,
8485
generativeRecolor,
8586
generativeRestore,
87+
upscale,
8688
theme
8789
};

src/actions/effect/blur/Blur.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BlurAction } from "@cloudinary/transformation-builder-sdk/actions/effect/blur/Blur";
1+
import { BlurAction } from "@cloudinary/transformation-builder-sdk/actions/effect/Blur";
22

33

44
export {BlurAction};

src/qualifiers/region/CustomRegion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {Qualifier} from "../../internal/qualifier/Qualifier.js";
66
*/
77
class CustomRegion extends NamedRegion {
88
constructor() {
9-
super('named');
9+
super('custom');
1010
}
1111

1212
/**

0 commit comments

Comments
 (0)