@jimp/plugin-threshold 1.1.2 → 1.1.3

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.
@@ -1,4 +1,5 @@
1
1
 
2
- > @jimp/plugin-threshold@1.1.1 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
4
  > tshy
4
5
 
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 lint /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
4
+ > eslint .
5
+
@@ -1,14 +1,15 @@
1
1
 
2
- > @jimp/plugin-threshold@1.1.1 test /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
- > vitest "--watch=false"
2
+ 
3
+ > @jimp/plugin-threshold@1.1.2 test /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
4
+ > vitest "--watch=false" "-u"
4
5
 
5
6
 
6
-  RUN  v1.4.0 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
+  RUN  v2.0.5 /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
7
8
 
8
9
  [?25l · src/index.test.ts (1)
9
10
  · Threshold (1)
10
11
  · defines default threshold for lighter backgrounds
11
- [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ❯ src/index.test.ts (1)
12
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ❯ src/index.test.ts (1)
12
13
  ❯ Threshold (1)
13
14
  ⠙ defines default threshold for lighter backgrounds
14
15
  [?25l ❯ src/index.test.ts (1)
@@ -92,31 +93,16 @@
92
93
  [?25l ❯ src/index.test.ts (1)
93
94
  ❯ Threshold (1)
94
95
  ⠇ defines default threshold for lighter backgrounds
95
- [?25l ❯ src/index.test.ts (1)
96
- ❯ Threshold (1)
97
- ⠏ defines default threshold for lighter backgrounds
98
- [?25l ❯ src/index.test.ts (1)
99
- ❯ Threshold (1)
100
- ⠋ defines default threshold for lighter backgrounds
101
- [?25l ❯ src/index.test.ts (1)
102
- ❯ Threshold (1)
103
- ⠙ defines default threshold for lighter backgrounds
104
- [?25l ❯ src/index.test.ts (1)
105
- ❯ Threshold (1)
106
- ⠹ defines default threshold for lighter backgrounds
107
- [?25l ❯ src/index.test.ts (1)
108
- ❯ Threshold (1)
109
- ⠸ defines default threshold for lighter backgrounds
110
- [?25l ✓ src/index.test.ts (1) 783ms
111
- ✓ Threshold (1) 783ms
112
- ✓ defines default threshold for lighter backgrounds 783ms
113
- [?25l ✓ src/index.test.ts (1) 783ms
114
- ✓ Threshold (1) 783ms
115
- ✓ defines default threshold for lighter backgrounds 783ms
96
+ [?25l ✓ src/index.test.ts (1) 651ms
97
+ ✓ Threshold (1) 651ms
98
+ ✓ defines default threshold for lighter backgrounds 650ms
99
+  ✓ src/index.test.ts (1) 651ms
100
+ ✓ Threshold (1) 651ms
101
+ ✓ defines default threshold for lighter backgrounds 650ms
116
102
 
117
103
   Test Files  1 passed (1)
118
104
   Tests  1 passed (1)
119
-  Start at  23:10:34
120
-  Duration  1.47s (transform 175ms, setup 0ms, collect 249ms, tests 783ms, environment 0ms, prepare 68ms)
105
+  Start at  01:23:31
106
+  Duration  1.36s (transform 157ms, setup 0ms, collect 243ms, tests 651ms, environment 0ms, prepare 88ms)
121
107
 
122
108
  [?25h[?25h
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.1.3 (Mon Sep 02 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Update deps [#1319](https://github.com/jimp-dev/jimp/pull/1319) ([@hipstersmoothie](https://github.com/hipstersmoothie))
6
+
7
+ #### Authors: 1
8
+
9
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
10
+
11
+ ---
12
+
1
13
  # v1.1.0 (Sun Sep 01 2024)
2
14
 
3
15
  #### ⚠️ Pushed to `main`
@@ -0,0 +1,2 @@
1
+ import shared from "@jimp/config-eslint/base.js";
2
+ export default [...shared];
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@jimp/plugin-threshold",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "repository": "jimp-dev/jimp",
5
+ "engines": {
6
+ "node": ">=18"
7
+ },
5
8
  "scripts": {
6
9
  "lint": "eslint .",
7
10
  "test": "vitest",
@@ -13,25 +16,25 @@
13
16
  "author": "Andrew Lisowski <lisowski54@gmail.com>",
14
17
  "license": "MIT",
15
18
  "devDependencies": {
16
- "@jimp/config-eslint": "1.1.2",
17
- "@jimp/config-typescript": "1.1.2",
18
- "@jimp/config-vitest": "1.1.2",
19
- "@jimp/js-jpeg": "1.1.2",
20
- "@jimp/test-utils": "1.1.2",
21
- "@vitest/browser": "^1.4.0",
22
- "eslint": "^8.57.0",
19
+ "@jimp/config-eslint": "1.1.3",
20
+ "@jimp/config-typescript": "1.1.3",
21
+ "@jimp/config-vitest": "1.1.3",
22
+ "@jimp/js-jpeg": "1.1.3",
23
+ "@jimp/test-utils": "1.1.3",
24
+ "@vitest/browser": "^2.0.5",
25
+ "eslint": "^9.9.1",
23
26
  "tshy": "^3.0.2",
24
27
  "typescript": "^5.5.4",
25
- "vite-plugin-node-polyfills": "^0.21.0",
26
- "vitest": "^1.4.0"
28
+ "vite-plugin-node-polyfills": "^0.22.0",
29
+ "vitest": "^2.0.5"
27
30
  },
28
31
  "dependencies": {
29
- "@jimp/core": "1.1.2",
30
- "@jimp/plugin-color": "1.1.2",
31
- "@jimp/plugin-hash": "1.1.2",
32
- "@jimp/types": "1.1.2",
33
- "@jimp/utils": "1.1.2",
34
- "zod": "^3.22.4"
32
+ "@jimp/core": "1.1.3",
33
+ "@jimp/plugin-color": "1.1.3",
34
+ "@jimp/plugin-hash": "1.1.3",
35
+ "@jimp/types": "1.1.3",
36
+ "@jimp/utils": "1.1.3",
37
+ "zod": "^3.23.8"
35
38
  },
36
39
  "tshy": {
37
40
  "exclude": [
@@ -63,5 +66,5 @@
63
66
  },
64
67
  "sideEffects": false,
65
68
  "module": "./dist/esm/index.js",
66
- "gitHead": "ba9de4df25a2f0e41f11a68c7aa50181a52115cb"
69
+ "gitHead": "737b2300a34f8ed29a0b77e02b3f6eeda58ec439"
67
70
  }
package/src/index.test.ts CHANGED
@@ -14,7 +14,7 @@ describe("Threshold", () => {
14
14
  test("defines default threshold for lighter backgrounds", async () => {
15
15
  const testImage = await jimp.read(getTestImagePath("hands.jpg"));
16
16
  const expectedImage = await jimp.read(
17
- getTestImagePath("hands_mx200_rp255.jpg")
17
+ getTestImagePath("hands_mx200_rp255.jpg"),
18
18
  );
19
19
  const output = testImage.threshold({ max: 200, replace: 255 }).hash();
20
20
 
package/.eslintrc.cjs DELETED
@@ -1,5 +0,0 @@
1
- /** @type {import("eslint").Linter.Config} */
2
- module.exports = {
3
- root: true,
4
- extends: [require.resolve("@jimp/config-eslint/base.js")],
5
- };