@thi.ng/blurhash 0.1.30 → 0.2.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-07-22T13:15:57Z
3
+ - **Last updated**: 2024-08-01T16:32:31Z
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.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.2.0) (2024-08-01)
13
+
14
+ #### 🚀 Features
15
+
16
+ - support OffscreenCanvas in encodeFromCanvas function to enhance compatibility with different rendering contexts ([294b650](https://github.com/thi-ng/umbrella/commit/294b650))
17
+
12
18
  ### [0.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.1.11) (2024-02-27)
13
19
 
14
20
  #### 🩹 Bug fixes
package/encode.d.ts CHANGED
@@ -18,7 +18,7 @@ export declare const encode: (pixels: Uint32Array, width: number, height: number
18
18
  * @param detailX
19
19
  * @param detailY
20
20
  */
21
- export declare const encodeFromCanvas: (canvas: HTMLCanvasElement, detailX?: number, detailY?: number) => string;
21
+ export declare const encodeFromCanvas: (canvas: HTMLCanvasElement | OffscreenCanvas, detailX?: number, detailY?: number) => string;
22
22
  /**
23
23
  * Syntax sugar for {@link encodeFromCanvas}. Creates a canvas and draws given
24
24
  * image into it. `width` and `height` default to the actual image size, but can be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/blurhash",
3
- "version": "0.1.30",
3
+ "version": "0.2.1",
4
4
  "description": "Fast, optimized TS implementation of the Wolt Blurhash algorithm",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@thi.ng/api": "^8.11.7",
40
40
  "@thi.ng/base-n": "^2.7.19",
41
- "@thi.ng/canvas": "^0.2.24",
41
+ "@thi.ng/canvas": "^0.4.0",
42
42
  "@thi.ng/errors": "^2.5.13",
43
43
  "@thi.ng/math": "^5.11.5"
44
44
  },
@@ -92,5 +92,5 @@
92
92
  "status": "alpha",
93
93
  "year": 2023
94
94
  },
95
- "gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
95
+ "gitHead": "74b023c95ab8219fd4192ef2a02962b2e2038563\n"
96
96
  }