@thi.ng/blurhash 0.2.7 → 0.2.8
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/CHANGELOG.md +7 -1
- package/encode.js +7 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-10-
|
|
3
|
+
- **Last updated**: 2024-10-05T13:06:12Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.2.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.2.8) (2024-10-05)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- add explicit type casts (TS5.6.2) ([dcbdd60](https://github.com/thi-ng/umbrella/commit/dcbdd60))
|
|
17
|
+
|
|
12
18
|
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.2.0) (2024-08-01)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/encode.js
CHANGED
|
@@ -46,7 +46,13 @@ const encode = (pixels, width, height, detailX = 4, detailY = detailX) => {
|
|
|
46
46
|
const encodeFromCanvas = (canvas, detailX, detailY) => {
|
|
47
47
|
return encode(
|
|
48
48
|
new Uint32Array(
|
|
49
|
-
|
|
49
|
+
// TODO remove cast again - temp workaround for TS5.6.2?
|
|
50
|
+
canvas.getContext("2d").getImageData(
|
|
51
|
+
0,
|
|
52
|
+
0,
|
|
53
|
+
canvas.width,
|
|
54
|
+
canvas.height
|
|
55
|
+
).data.buffer
|
|
50
56
|
),
|
|
51
57
|
canvas.width,
|
|
52
58
|
canvas.height,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/blurhash",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Fast, optimized TS implementation of the Wolt Blurhash algorithm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"year": 2023,
|
|
93
93
|
"screenshot": "blurhash/thumb.png"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "9a32147fce4bd1e5f98dffb04a452576f9984de8\n"
|
|
96
96
|
}
|