@jimp/plugin-threshold 1.0.4 → 1.1.0

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/.tshy/build.json CHANGED
@@ -2,7 +2,6 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "../src",
5
- "target": "es2022",
6
5
  "module": "nodenext",
7
6
  "moduleResolution": "nodenext"
8
7
  }
@@ -3,11 +3,13 @@
3
3
  "include": [
4
4
  "../src/**/*.ts",
5
5
  "../src/**/*.cts",
6
- "../src/**/*.tsx"
6
+ "../src/**/*.tsx",
7
+ "../src/**/*.json"
7
8
  ],
8
9
  "exclude": [
9
10
  "../**/*.test.ts",
10
- "../src/**/*.mts"
11
+ "../src/**/*.mts",
12
+ "../src/package.json"
11
13
  ],
12
14
  "compilerOptions": {
13
15
  "outDir": "../.tshy-build/commonjs"
package/.tshy/esm.json CHANGED
@@ -3,10 +3,12 @@
3
3
  "include": [
4
4
  "../src/**/*.ts",
5
5
  "../src/**/*.mts",
6
- "../src/**/*.tsx"
6
+ "../src/**/*.tsx",
7
+ "../src/**/*.json"
7
8
  ],
8
9
  "exclude": [
9
- "../**/*.test.ts"
10
+ "../**/*.test.ts",
11
+ "../src/package.json"
10
12
  ],
11
13
  "compilerOptions": {
12
14
  "outDir": "../.tshy-build/esm"
@@ -1,4 +1,4 @@
1
1
 
2
- > @jimp/plugin-threshold@1.0.3 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
2
+ > @jimp/plugin-threshold@1.0.5 build /Users/andrewlisowski/Documents/jimp/plugins/plugin-threshold
3
3
  > tshy
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.1.0 (Sun Sep 01 2024)
2
+
3
+ #### ⚠️ Pushed to `main`
4
+
5
+ - upgrade tshy ([@hipstersmoothie](https://github.com/hipstersmoothie))
6
+ - update more docs ([@hipstersmoothie](https://github.com/hipstersmoothie))
7
+
8
+ #### Authors: 1
9
+
10
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
11
+
12
+ ---
13
+
1
14
  # v1.0.3 (Sat Aug 31 2024)
2
15
 
3
16
  #### 🐛 Bug Fix
package/README.md CHANGED
@@ -7,24 +7,4 @@
7
7
 
8
8
  This is useful as a simplified method for processing scanned drawings, signatures, etc
9
9
 
10
- ## Usage
11
-
12
- - @param {number} options object
13
- - max: A number auto limited between 0 - 255
14
- - replace: (optional) A number auto limited between 0 - 255 (default 255)
15
- - autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true)
16
- - @param {function(Error, Jimp)} cb (optional) a callback for when complete
17
-
18
- ```js
19
- import jimp from "jimp";
20
-
21
- async function main() {
22
- const image = await jimp.read("test/image.png");
23
-
24
- image.threshold({ max: 150 });
25
- // or
26
- image.threshold({ max: 200, replace: 200, autoGreyscale: false });
27
- }
28
-
29
- main();
30
- ```
10
+ - [threshold](http://jimp-dev.github.io/jimp/api/jimp/classes/jimp#threshold)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimp/plugin-threshold",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "repository": "jimp-dev/jimp",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -13,24 +13,24 @@
13
13
  "author": "Andrew Lisowski <lisowski54@gmail.com>",
14
14
  "license": "MIT",
15
15
  "devDependencies": {
16
- "@jimp/config-eslint": "1.0.4",
17
- "@jimp/config-typescript": "1.0.4",
18
- "@jimp/config-vitest": "1.0.4",
19
- "@jimp/js-jpeg": "1.0.4",
20
- "@jimp/test-utils": "1.0.4",
16
+ "@jimp/config-eslint": "1.1.0",
17
+ "@jimp/config-typescript": "1.1.0",
18
+ "@jimp/config-vitest": "1.1.0",
19
+ "@jimp/js-jpeg": "1.1.0",
20
+ "@jimp/test-utils": "1.1.0",
21
21
  "@vitest/browser": "^1.4.0",
22
22
  "eslint": "^8.57.0",
23
- "tshy": "^1.12.0",
23
+ "tshy": "^3.0.2",
24
24
  "typescript": "^5.5.4",
25
25
  "vite-plugin-node-polyfills": "^0.21.0",
26
26
  "vitest": "^1.4.0"
27
27
  },
28
28
  "dependencies": {
29
- "@jimp/core": "1.0.4",
30
- "@jimp/plugin-color": "1.0.4",
31
- "@jimp/plugin-hash": "1.0.4",
32
- "@jimp/types": "1.0.4",
33
- "@jimp/utils": "1.0.4",
29
+ "@jimp/core": "1.1.0",
30
+ "@jimp/plugin-color": "1.1.0",
31
+ "@jimp/plugin-hash": "1.1.0",
32
+ "@jimp/types": "1.1.0",
33
+ "@jimp/utils": "1.1.0",
34
34
  "zod": "^3.22.4"
35
35
  },
36
36
  "tshy": {
@@ -62,5 +62,6 @@
62
62
  "access": "public"
63
63
  },
64
64
  "sideEffects": false,
65
- "gitHead": "34e1005b240d0e1925b3d62a4119f623f4c5d726"
65
+ "module": "./dist/esm/index.js",
66
+ "gitHead": "887b0cb53fe5b8d545c8cda82a3db5ef90f18136"
66
67
  }