@thi.ng/blurhash 0.1.10 → 0.1.12

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-02-22T11:59:16Z
3
+ - **Last updated**: 2024-03-01T15:22:50Z
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.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.1.11) (2024-02-27)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix imports ([2306883](https://github.com/thi-ng/umbrella/commit/2306883))
17
+
12
18
  ### [0.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/blurhash@0.1.5) (2024-02-06)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -1,16 +1,5 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- > [!IMPORTANT]
4
- > ‼️ Announcing the thi.ng user survey 2024 📋
5
- >
6
- > [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
7
- > (open until end of February)
8
- >
9
- > **To achieve a better sample size, I'd highly appreciate if you could
10
- > circulate the link to this survey in your own networks.**
11
- >
12
- > [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
13
-
14
3
  # ![@thi.ng/blurhash](https://media.thi.ng/umbrella/banners-20230807/thing-blurhash.svg?f3b5be72)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/blurhash.svg)](https://www.npmjs.com/package/@thi.ng/blurhash)
@@ -22,7 +11,7 @@
22
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
12
  > and anti-framework.
24
13
  >
25
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring me on
26
15
  > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
27
16
 
28
17
  - [About](#about)
package/decode.js CHANGED
@@ -2,8 +2,8 @@ import { B83_CHARS } from "@thi.ng/base-n/chars/83";
2
2
  import { BaseNDecoder } from "@thi.ng/base-n/decode";
3
3
  import { canvas2d } from "@thi.ng/canvas";
4
4
  import { signedPow } from "@thi.ng/math/abs";
5
- import { __ensureSize } from "./internal/ensure";
6
- import { __fromLinear, __toLinear } from "./internal/linear";
5
+ import { __ensureSize } from "./internal/ensure.js";
6
+ import { __fromLinear, __toLinear } from "./internal/linear.js";
7
7
  const { PI, cos, floor } = Math;
8
8
  const BASE83 = new BaseNDecoder(B83_CHARS);
9
9
  const decode = (hash, width, height, contrast = 1, pixels) => {
package/encode.js CHANGED
@@ -3,8 +3,8 @@ import { BaseNEncoder } from "@thi.ng/base-n/encode";
3
3
  import { imageCanvas } from "@thi.ng/canvas";
4
4
  import { signedPow } from "@thi.ng/math/abs";
5
5
  import { clamp } from "@thi.ng/math/interval";
6
- import { __ensureDetail, __ensureSize } from "./internal/ensure";
7
- import { __fromLinear, __toLinear } from "./internal/linear";
6
+ import { __ensureDetail, __ensureSize } from "./internal/ensure.js";
7
+ import { __fromLinear, __toLinear } from "./internal/linear.js";
8
8
  const { PI, cos, floor } = Math;
9
9
  const BASE83 = new BaseNEncoder(B83_CHARS);
10
10
  const encode = (pixels, width, height, detailX = 4, detailY = detailX) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/blurhash",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Fast, optimized TS implementation of the Wolt Blurhash algorithm",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.26",
39
- "@thi.ng/base-n": "^2.7.3",
40
- "@thi.ng/canvas": "^0.2.7",
41
- "@thi.ng/errors": "^2.4.18",
42
- "@thi.ng/math": "^5.10.3"
38
+ "@thi.ng/api": "^8.9.27",
39
+ "@thi.ng/base-n": "^2.7.4",
40
+ "@thi.ng/canvas": "^0.2.8",
41
+ "@thi.ng/errors": "^2.4.19",
42
+ "@thi.ng/math": "^5.10.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.40.1",
@@ -91,5 +91,5 @@
91
91
  "status": "alpha",
92
92
  "year": 2023
93
93
  },
94
- "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
94
+ "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
95
95
  }