@softistx/image 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/roadmap.md +1 -1
- package/docs/troubleshooting.md +3 -3
- package/package.json +6 -6
package/docs/roadmap.md
CHANGED
|
@@ -67,5 +67,5 @@ _Nothing queued._
|
|
|
67
67
|
JPEG, WebP or PNG, never enlarging, with the set's limits and metadata
|
|
68
68
|
stripping.
|
|
69
69
|
|
|
70
|
-
Everything released is in [`CHANGELOG.md`](https://github.com/softistx/
|
|
70
|
+
Everything released is in [`CHANGELOG.md`](https://github.com/softistx/data/blob/develop/packages/image/CHANGELOG.md) — it is not in
|
|
71
71
|
the published package, only in the repository.
|
package/docs/troubleshooting.md
CHANGED
|
@@ -321,7 +321,7 @@ which accepts only what Bun's shrink writes. A refusal here means the
|
|
|
321
321
|
intermediate file was not what was expected, not that the upload was a bad
|
|
322
322
|
PNG: an uploaded interlaced or palette PNG is read by Bun first and re-encoded.
|
|
323
323
|
**Fix:** none on your side. Report it with the Bun version and the upload's
|
|
324
|
-
format and dimensions at <https://github.com/softistx/
|
|
324
|
+
format and dimensions at <https://github.com/softistx/data/issues>.
|
|
325
325
|
|
|
326
326
|
### `the image is <w>x<h>, under <minSide>px on its short side`
|
|
327
327
|
|
|
@@ -542,7 +542,7 @@ await avatars.process(blob); // centred square of the short side
|
|
|
542
542
|
**When:** never from a call that goes through `process`.
|
|
543
543
|
**Why:** an internal check on the pixels that the package crops, after the crop
|
|
544
544
|
has already been validated. Reaching it is a bug in this package.
|
|
545
|
-
**Fix:** report it at <https://github.com/softistx/
|
|
545
|
+
**Fix:** report it at <https://github.com/softistx/data/issues> with the
|
|
546
546
|
image's size and format, and the crop given.
|
|
547
547
|
|
|
548
548
|
## `renderImage`
|
|
@@ -668,7 +668,7 @@ refused one), and the first error is rethrown **unchanged**, so `@softistx/s3`'s
|
|
|
668
668
|
own handling and messages apply. A put that failed after sending (a network
|
|
669
669
|
error) may still land on the server after the cleanup.
|
|
670
670
|
**Fix:** for a `TIMEOUT`, raise the bucket's `timeoutMs` default. Otherwise
|
|
671
|
-
read the cause in [`@softistx/s3`'s troubleshooting](https://github.com/softistx/
|
|
671
|
+
read the cause in [`@softistx/s3`'s troubleshooting](https://github.com/softistx/data/blob/develop/packages/s3/docs/troubleshooting.md)
|
|
672
672
|
and use a fresh id per upload, so that the cleanup never deletes an image that
|
|
673
673
|
is in use:
|
|
674
674
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softistx/image",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Avatar and photo uploads on Bun's own Bun.Image: checked by magic bytes, cropped square, resized to WebP with every metadata stripped",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/softistx/
|
|
46
|
+
"url": "git+https://github.com/softistx/data.git",
|
|
47
47
|
"directory": "packages/image"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@napi-rs/canvas": "^1.1
|
|
70
|
-
"@softistx/s3": "^0.13.
|
|
71
|
-
"@types/bun": "^1.4.
|
|
69
|
+
"@napi-rs/canvas": "^1.2.1",
|
|
70
|
+
"@softistx/s3": "^0.13.2",
|
|
71
|
+
"@types/bun": "^1.4.5",
|
|
72
72
|
"pdfjs-dist": "^6.5.438"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@napi-rs/canvas": "^1.1.0",
|
|
76
|
-
"@softistx/s3": "^0.13.
|
|
76
|
+
"@softistx/s3": "^0.13.2",
|
|
77
77
|
"pdfjs-dist": "^6.5.0",
|
|
78
78
|
"typescript": "^6.0.3 || ^7.0.0"
|
|
79
79
|
},
|