@thi.ng/pixel-io-netpbm 2.0.9 → 2.1.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +75 -33
  2. package/README.md +1 -1
  3. package/package.json +86 -81
package/CHANGELOG.md CHANGED
@@ -1,61 +1,103 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@2.0.8...@thi.ng/pixel-io-netpbm@2.0.9) (2021-11-04)
7
-
8
- **Note:** Version bump only for package @thi.ng/pixel-io-netpbm
9
-
10
-
11
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
12
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
13
8
 
14
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@2.0.7...@thi.ng/pixel-io-netpbm@2.0.8) (2021-11-03)
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
15
11
 
16
- **Note:** Version bump only for package @thi.ng/pixel-io-netpbm
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@2.1.0) (2021-11-17)
17
13
 
14
+ #### 🚀 Features
18
15
 
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
19
21
 
22
+ #### ♻️ Refactoring
20
23
 
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
21
30
 
22
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@1.0.7...@thi.ng/pixel-io-netpbm@2.0.0) (2021-10-12)
31
+ ### [2.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@2.0.9) (2021-11-04)
23
32
 
33
+ #### ♻️ Refactoring
24
34
 
25
- ### Build System
35
+ - minor changes (rename types) ([7bd491d](https://github.com/thi-ng/umbrella/commit/7bd491d))
26
36
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
37
+ ### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@2.0.8) (2021-11-03)
28
38
 
39
+ #### ♻️ Refactoring
29
40
 
30
- ### BREAKING CHANGES
41
+ - minor update ([b8f1714](https://github.com/thi-ng/umbrella/commit/b8f1714))
31
42
 
32
- * discontinue CommonJS & UMD versions
43
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@2.0.1) (2021-10-13)
33
44
 
34
- - only ESM modules will be published from now on
35
- - CJS obsolete due to ESM support in recent versions of node:
36
- - i.e. launch NodeJS via:
37
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
38
- - in the node REPL use `await import(...)` instead of `require()`
39
- - UMD obsolete due to widespread browser support for ESM
45
+ #### ♻️ Refactoring
40
46
 
41
- Also:
42
- - normalize/restructure/reorg all package.json files
43
- - cleanup all build scripts, remove obsolete
44
- - switch from mocha to @thi.ng/testament for all tests
47
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
48
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
49
+ - add .js suffix for all relative imports
45
50
 
51
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@2.0.0) (2021-10-12)
46
52
 
53
+ #### 🛑 Breaking changes
47
54
 
55
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
56
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
57
+ - only ESM modules will be published from now on
58
+ - CJS obsolete due to ESM support in recent versions of node:
59
+ - i.e. launch NodeJS via:
60
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
61
+ - in the node REPL use `await import(...)` instead of `require()`
62
+ - UMD obsolete due to widespread browser support for ESM
63
+ Also:
64
+ - normalize/restructure/reorg all package.json files
65
+ - cleanup all build scripts, remove obsolete
66
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
48
67
 
68
+ #### ♻️ Refactoring
49
69
 
70
+ - update imports ([9a97d74](https://github.com/thi-ng/umbrella/commit/9a97d74))
71
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
72
+ - largely related to recent updates/restructuring of these packages:
73
+ - api
74
+ - defmulti
75
+ - errors
76
+ - logger
77
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
78
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
79
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
50
80
 
51
- ## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/pixel-io-netpbm@1.0.6...@thi.ng/pixel-io-netpbm@1.0.7) (2021-09-03)
81
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-io-netpbm@0.1.0) (2021-02-20)
52
82
 
53
- **Note:** Version bump only for package @thi.ng/pixel-io-netpbm
83
+ #### 🚀 Features
54
84
 
55
- # 0.1.0 (2021-02-20)
85
+ - add opt comment support ([2659031](https://github.com/thi-ng/umbrella/commit/2659031))
86
+ - add extra arg for all asPXM() functions to include
87
+ arbitrary comments in file header
88
+ - add/update readers/writers ([a62ef0b](https://github.com/thi-ng/umbrella/commit/a62ef0b))
89
+ - extract parseHeader()
90
+ - update readComments() to collect comment lines
91
+ (e.g. useful for meta data)
92
+ - add 16bit grayscale support for read/write
93
+ - add support for channel rescaling
94
+ - fix readPBM() bit twiddling
95
+ - update asPGM(), add asPGM16()
96
+ - import as new pkg ([697b842](https://github.com/thi-ng/umbrella/commit/697b842))
56
97
 
57
- ### Features
98
+ #### ♻️ Refactoring
58
99
 
59
- - **pixel-io-netpbm:** add opt comment support ([2659031](https://github.com/thi-ng/umbrella/commit/265903115d4ca0ac71f1811b22afa016b685832e))
60
- - **pixel-io-netpbm:** add/update readers/writers ([a62ef0b](https://github.com/thi-ng/umbrella/commit/a62ef0b88218f87e17bd16b0cec3dd561d73669f))
61
- - **pixel-io-netpbm:** import as new pkg ([697b842](https://github.com/thi-ng/umbrella/commit/697b842bf5d3754bee88954cc84367d65734019d))
100
+ - update PBM R&W, comment handling ([ed495e9](https://github.com/thi-ng/umbrella/commit/ed495e9))
101
+ - remove [@thi.ng/binary](https://github.com/thi-ng/umbrella/tree/main/packages/binary) dep
102
+ - update bitops in readPBM()/asPBM()
103
+ - update initHeader() to avoid double newlines if no comments
package/README.md CHANGED
@@ -69,7 +69,7 @@ node --experimental-repl-await
69
69
  > const pixelIoNetpbm = await import("@thi.ng/pixel-io-netpbm");
70
70
  ```
71
71
 
72
- Package sizes (gzipped, pre-treeshake): ESM: 1.36 KB
72
+ Package sizes (gzipped, pre-treeshake): ESM: 1.34 KB
73
73
 
74
74
  ## Dependencies
75
75
 
package/package.json CHANGED
@@ -1,85 +1,90 @@
1
1
  {
2
- "name": "@thi.ng/pixel-io-netpbm",
3
- "version": "2.0.9",
4
- "description": "Multi-format NetPBM reader & writer support for @thi.ng/pixel",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/pixel-io-netpbm",
3
+ "version": "2.1.2",
4
+ "description": "Multi-format NetPBM reader & writer support for @thi.ng/pixel",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/pixel-io-netpbm#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/pixel-io-netpbm#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.2",
38
+ "@thi.ng/errors": "^2.1.2",
39
+ "@thi.ng/pixel": "^3.2.2"
40
+ },
41
+ "devDependencies": {
42
+ "@microsoft/api-extractor": "^7.18.19",
43
+ "@thi.ng/testament": "^0.2.2",
44
+ "rimraf": "^3.0.2",
45
+ "tools": "^0.0.1",
46
+ "typedoc": "^0.22.9",
47
+ "typescript": "^4.5.2"
48
+ },
49
+ "keywords": [
50
+ "1bit",
51
+ "8bit",
52
+ "16bit",
53
+ "24bit",
54
+ "binary",
55
+ "bitmap",
56
+ "color",
57
+ "fileformat",
58
+ "grayscale",
59
+ "image",
60
+ "pixel",
61
+ "rgb",
62
+ "typescript"
63
+ ],
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "engines": {
68
+ "node": ">=12.7"
69
+ },
70
+ "files": [
71
+ "*.js",
72
+ "*.d.ts"
73
+ ],
74
+ "exports": {
75
+ ".": {
76
+ "import": "./index.js"
35
77
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.1.0",
38
- "@thi.ng/errors": "^2.0.6",
39
- "@thi.ng/pixel": "^3.0.0"
78
+ "./read": {
79
+ "import": "./read.js"
40
80
  },
41
- "devDependencies": {
42
- "@thi.ng/testament": "^0.1.6"
43
- },
44
- "keywords": [
45
- "1bit",
46
- "8bit",
47
- "16bit",
48
- "24bit",
49
- "binary",
50
- "bitmap",
51
- "color",
52
- "fileformat",
53
- "grayscale",
54
- "image",
55
- "pixel",
56
- "rgb",
57
- "typescript"
58
- ],
59
- "publishConfig": {
60
- "access": "public"
61
- },
62
- "engines": {
63
- "node": ">=12.7"
64
- },
65
- "files": [
66
- "*.js",
67
- "*.d.ts"
68
- ],
69
- "exports": {
70
- ".": {
71
- "import": "./index.js"
72
- },
73
- "./read": {
74
- "import": "./read.js"
75
- },
76
- "./write": {
77
- "import": "./write.js"
78
- }
79
- },
80
- "thi.ng": {
81
- "parent": "@thi.ng/pixel",
82
- "year": 2021
83
- },
84
- "gitHead": "d6aca4b4edb697613ed6635b1c0b12f0bf27b1f0"
85
- }
81
+ "./write": {
82
+ "import": "./write.js"
83
+ }
84
+ },
85
+ "thi.ng": {
86
+ "parent": "@thi.ng/pixel",
87
+ "year": 2021
88
+ },
89
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
90
+ }