Skip to content

Commit dd1bb08

Browse files
🎉 release v0.2.0
1 parent ee4e511 commit dd1bb08

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

dist/get-sharp-options.js

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

dist/get-sharp-options.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/transformer.js

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

dist/transformer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/get-sharp-options.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/types/types.d.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
ResizeOptions,
3-
RGBA,
3+
// RGBA,
44
Region,
55
ExtendOptions,
66
ThresholdOptions,
@@ -11,6 +11,7 @@ import {
1111
Metadata,
1212
Kernel,
1313
Sharp,
14+
OverlayOptions,
1415
} from 'sharp'
1516
import { S3 } from 'aws-sdk'
1617

@@ -49,13 +50,16 @@ export declare type ResizeOption =
4950

5051
export declare interface SharpOptions {
5152
resize?: ResizeOption
52-
crop?: SharpOption<string | number>
53-
background?: SharpOption<RGBA | string>
54-
embed?: boolean
55-
max?: boolean
56-
min?: boolean
57-
withoutEnlargement?: boolean
58-
ignoreAspectRatio?: boolean
53+
// MARK: deprecated since sharp v0.22.0
54+
// crop?: SharpOption<string | number>
55+
// background?: SharpOption<RGBA | string>
56+
// embed?: boolean
57+
// max?: boolean
58+
// min?: boolean
59+
// withoutEnlargement?: boolean
60+
// ignoreAspectRatio?: boolean
61+
modulate?: { brightness?: number; saturation?: number; hue?: number }
62+
composite?: OverlayOptions[]
5963
extract?: SharpOption<Region>
6064
trim?: SharpOption<number>
6165
flatten?: boolean

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multer-sharp-s3",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "A plugin multer to transform image and upload to AWS S3",
55
"main": "index.js",
66
"scripts": {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"compileOnSave": true,
2424
"exclude": [
25-
"**/*.spec.ts"
25+
"**/*.spec.ts",
26+
"examples/*"
2627
],
2728
"include": [
2829
"src/*.ts",

0 commit comments

Comments
 (0)