Skip to content

Commit aa07979

Browse files
authored
chore: upgrade dependencies (#64)
1 parent 12e87c0 commit aa07979

File tree

4 files changed

+1355
-805
lines changed

4 files changed

+1355
-805
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[workspace]
22
members = ["./packages/binding"]
3+
resolver = "2"
34

45
[profile.release]
56
lto = 'fat'

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
"website"
1313
],
1414
"devDependencies": {
15-
"@napi-rs/cli": "^2.16.2",
15+
"@napi-rs/cli": "^2.16.3",
1616
"@taplo/cli": "^0.5.2",
17-
"@types/node": "^20.4.5",
17+
"@types/node": "^20.7.0",
1818
"@types/sharp": "^0.31.1",
1919
"ava": "^5.3.1",
2020
"blurhash": "^2.0.5",
2121
"chalk": "^5.3.0",
22-
"electron": "^26.0.0",
23-
"lerna": "^7.1.4",
22+
"electron": "^26.2.2",
23+
"lerna": "^7.3.0",
2424
"npm-run-all": "^4.1.5",
25-
"prettier": "^3.0.0",
25+
"prettier": "^3.0.3",
2626
"rxjs": "^7.8.1",
27-
"sharp": "^0.32.4",
28-
"typescript": "^5.1.6"
27+
"sharp": "^0.32.6",
28+
"typescript": "^5.2.2"
2929
},
3030
"scripts": {
3131
"artifacts": "lerna run artifacts",

packages/binding/index.d.ts

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const enum ChromaSubsampling {
5555
* What if the chroma subsampling model is 4:0:0?
5656
* That says to use every pixel of luma data, but that each row has 0 chroma samples applied to it. The resulting image, then, is comprised solely of the luminance data—a greyscale image.
5757
*/
58-
Yuv400 = 3,
58+
Yuv400 = 3
5959
}
6060
export const enum FastResizeFilter {
6161
/**
@@ -94,7 +94,7 @@ export const enum FastResizeFilter {
9494
* Lanczos filter (a truncated sinc) on all pixels that may contribute
9595
* to the output value.
9696
*/
97-
Lanczos3 = 5,
97+
Lanczos3 = 5
9898
}
9999
export const enum ResizeFit {
100100
/**
@@ -108,7 +108,7 @@ export const enum ResizeFit {
108108
* Preserving aspect ratio
109109
* resize the image to be as large as possible while ensuring its dimensions are less than or equal to both those specified.
110110
*/
111-
Inside = 2,
111+
Inside = 2
112112
}
113113
export interface FastResizeOptions {
114114
width: number
@@ -126,18 +126,14 @@ export interface JpegCompressOptions {
126126
optimizeScans?: boolean
127127
}
128128
export function compressJpegSync(input: Buffer, options?: JpegCompressOptions | undefined | null): Buffer
129-
export function compressJpeg(
130-
input: Buffer,
131-
options?: JpegCompressOptions | undefined | null,
132-
signal?: AbortSignal | undefined | null,
133-
): Promise<Buffer>
129+
export function compressJpeg(input: Buffer, options?: JpegCompressOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
134130
export const enum CompressionType {
135131
/** Default compression level */
136132
Default = 0,
137133
/** Fast, minimal compression */
138134
Fast = 1,
139135
/** High compression level */
140-
Best = 2,
136+
Best = 2
141137
}
142138
export const enum FilterType {
143139
/**
@@ -157,7 +153,7 @@ export const enum FilterType {
157153
* Uses a heuristic to select one of the preceding filters for each
158154
* scanline rather than one filter for the entire image
159155
*/
160-
Adaptive = 5,
156+
Adaptive = 5
161157
}
162158
export interface PngEncodeOptions {
163159
/** Default is `CompressionType::Default` */
@@ -175,7 +171,7 @@ export const enum PngRowFilter {
175171
Entropy = 6,
176172
Bigrams = 7,
177173
BigEnt = 8,
178-
Brute = 9,
174+
Brute = 9
179175
}
180176
export interface PNGLosslessOptions {
181177
/**
@@ -220,11 +216,7 @@ export interface PNGLosslessOptions {
220216
strip?: boolean
221217
}
222218
export function losslessCompressPngSync(input: Buffer, options?: PNGLosslessOptions | undefined | null): Buffer
223-
export function losslessCompressPng(
224-
input: Buffer,
225-
options?: PNGLosslessOptions | undefined | null,
226-
signal?: AbortSignal | undefined | null,
227-
): Promise<Buffer>
219+
export function losslessCompressPng(input: Buffer, options?: PNGLosslessOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
228220
export interface PngQuantOptions {
229221
/** default is 70 */
230222
minQuality?: number
@@ -243,11 +235,7 @@ export interface PngQuantOptions {
243235
posterization?: number
244236
}
245237
export function pngQuantizeSync(input: Buffer, options?: PngQuantOptions | undefined | null): Buffer
246-
export function pngQuantize(
247-
input: Buffer,
248-
options?: PngQuantOptions | undefined | null,
249-
signal?: AbortSignal | undefined | null,
250-
): Promise<Buffer>
238+
export function pngQuantize(input: Buffer, options?: PngQuantOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
251239
export const enum Orientation {
252240
/** Normal */
253241
Horizontal = 1,
@@ -257,7 +245,7 @@ export const enum Orientation {
257245
MirrorHorizontalAndRotate270Cw = 5,
258246
Rotate90Cw = 6,
259247
MirrorHorizontalAndRotate90Cw = 7,
260-
Rotate270Cw = 8,
248+
Rotate270Cw = 8
261249
}
262250
/**
263251
* Available Sampling Filters.
@@ -337,7 +325,7 @@ export const enum ResizeFilterType {
337325
/** Gaussian Filter */
338326
Gaussian = 3,
339327
/** Lanczos with window 3 */
340-
Lanczos3 = 4,
328+
Lanczos3 = 4
341329
}
342330
export const enum JsColorType {
343331
/** Pixel is 8-bit luminance */
@@ -359,7 +347,7 @@ export const enum JsColorType {
359347
/** Pixel is 32-bit float RGB */
360348
Rgb32F = 8,
361349
/** Pixel is 32-bit float RGBA */
362-
Rgba32F = 9,
350+
Rgba32F = 9
363351
}
364352
export interface Metadata {
365353
width: number
@@ -400,12 +388,7 @@ export class Transformer {
400388
* The image is scaled to the maximum possible size that fits
401389
* within the bounds specified by `width` and `height`.
402390
*/
403-
resize(
404-
widthOrOptions: number | ResizeOptions,
405-
height?: number | undefined | null,
406-
filter?: ResizeFilterType | undefined | null,
407-
fit?: ResizeFit | undefined | null,
408-
): this
391+
resize(widthOrOptions: number | ResizeOptions, height?: number | undefined | null, filter?: ResizeFilterType | undefined | null, fit?: ResizeFit | undefined | null): this
409392
/**
410393
* Resize this image using the specified filter algorithm.
411394
* The image is scaled to the maximum possible size that fits

0 commit comments

Comments
 (0)