@thi.ng/units 1.0.26 → 1.0.30

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 (2) hide show
  1. package/package.json +184 -184
  2. package/CHANGELOG.md +0 -73
package/package.json CHANGED
@@ -1,185 +1,185 @@
1
1
  {
2
- "name": "@thi.ng/units",
3
- "version": "1.0.26",
4
- "description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
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://thi.ng/units",
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
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts constants units",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/checks": "^3.7.18",
44
- "@thi.ng/equiv": "^2.1.92",
45
- "@thi.ng/errors": "^2.5.42"
46
- },
47
- "devDependencies": {
48
- "esbuild": "^0.25.9",
49
- "typedoc": "^0.28.12",
50
- "typescript": "^5.9.2"
51
- },
52
- "keywords": [
53
- "acceleration",
54
- "angle",
55
- "area",
56
- "bits",
57
- "bytes",
58
- "calculation",
59
- "capacitance",
60
- "conversion",
61
- "current",
62
- "energy",
63
- "force",
64
- "frequency",
65
- "length",
66
- "mass",
67
- "math",
68
- "power",
69
- "resistance",
70
- "si",
71
- "speed",
72
- "symbolic",
73
- "temperature",
74
- "time",
75
- "typescript",
76
- "units",
77
- "velocity",
78
- "voltage",
79
- "volume"
80
- ],
81
- "publishConfig": {
82
- "access": "public"
83
- },
84
- "browser": {
85
- "process": false,
86
- "setTimeout": false
87
- },
88
- "engines": {
89
- "node": ">=18"
90
- },
91
- "files": [
92
- "./*.js",
93
- "./*.d.ts",
94
- "constants",
95
- "units"
96
- ],
97
- "exports": {
98
- ".": {
99
- "default": "./index.js"
100
- },
101
- "./api": {
102
- "default": "./api.js"
103
- },
104
- "./constants/densities": {
105
- "default": "./constants/densities.js"
106
- },
107
- "./constants/earth": {
108
- "default": "./constants/earth.js"
109
- },
110
- "./constants/paper-sizes": {
111
- "default": "./constants/paper-sizes.js"
112
- },
113
- "./constants/velocities": {
114
- "default": "./constants/velocities.js"
115
- },
116
- "./unit": {
117
- "default": "./unit.js"
118
- },
119
- "./units/accel": {
120
- "default": "./units/accel.js"
121
- },
122
- "./units/angle": {
123
- "default": "./units/angle.js"
124
- },
125
- "./units/area": {
126
- "default": "./units/area.js"
127
- },
128
- "./units/data": {
129
- "default": "./units/data.js"
130
- },
131
- "./units/density": {
132
- "default": "./units/density.js"
133
- },
134
- "./units/electric": {
135
- "default": "./units/electric.js"
136
- },
137
- "./units/energy": {
138
- "default": "./units/energy.js"
139
- },
140
- "./units/force": {
141
- "default": "./units/force.js"
142
- },
143
- "./units/frequency": {
144
- "default": "./units/frequency.js"
145
- },
146
- "./units/length": {
147
- "default": "./units/length.js"
148
- },
149
- "./units/luminous": {
150
- "default": "./units/luminous.js"
151
- },
152
- "./units/mass": {
153
- "default": "./units/mass.js"
154
- },
155
- "./units/parts": {
156
- "default": "./units/parts.js"
157
- },
158
- "./units/power": {
159
- "default": "./units/power.js"
160
- },
161
- "./units/pressure": {
162
- "default": "./units/pressure.js"
163
- },
164
- "./units/substance": {
165
- "default": "./units/substance.js"
166
- },
167
- "./units/temperature": {
168
- "default": "./units/temperature.js"
169
- },
170
- "./units/time": {
171
- "default": "./units/time.js"
172
- },
173
- "./units/velocity": {
174
- "default": "./units/velocity.js"
175
- },
176
- "./units/volume": {
177
- "default": "./units/volume.js"
178
- }
179
- },
180
- "thi.ng": {
181
- "status": "beta",
182
- "year": 2021
183
- },
184
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
185
- }
2
+ "name": "@thi.ng/units",
3
+ "version": "1.0.30",
4
+ "description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
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://thi.ng/units",
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
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts constants units",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.6",
43
+ "@thi.ng/checks": "^3.7.22",
44
+ "@thi.ng/equiv": "^2.1.96",
45
+ "@thi.ng/errors": "^2.5.46"
46
+ },
47
+ "devDependencies": {
48
+ "esbuild": "^0.25.11",
49
+ "typedoc": "^0.28.14",
50
+ "typescript": "^5.9.3"
51
+ },
52
+ "keywords": [
53
+ "acceleration",
54
+ "angle",
55
+ "area",
56
+ "bits",
57
+ "bytes",
58
+ "calculation",
59
+ "capacitance",
60
+ "conversion",
61
+ "current",
62
+ "energy",
63
+ "force",
64
+ "frequency",
65
+ "length",
66
+ "mass",
67
+ "math",
68
+ "power",
69
+ "resistance",
70
+ "si",
71
+ "speed",
72
+ "symbolic",
73
+ "temperature",
74
+ "time",
75
+ "typescript",
76
+ "units",
77
+ "velocity",
78
+ "voltage",
79
+ "volume"
80
+ ],
81
+ "publishConfig": {
82
+ "access": "public"
83
+ },
84
+ "browser": {
85
+ "process": false,
86
+ "setTimeout": false
87
+ },
88
+ "engines": {
89
+ "node": ">=18"
90
+ },
91
+ "files": [
92
+ "./*.js",
93
+ "./*.d.ts",
94
+ "constants",
95
+ "units"
96
+ ],
97
+ "exports": {
98
+ ".": {
99
+ "default": "./index.js"
100
+ },
101
+ "./api": {
102
+ "default": "./api.js"
103
+ },
104
+ "./constants/densities": {
105
+ "default": "./constants/densities.js"
106
+ },
107
+ "./constants/earth": {
108
+ "default": "./constants/earth.js"
109
+ },
110
+ "./constants/paper-sizes": {
111
+ "default": "./constants/paper-sizes.js"
112
+ },
113
+ "./constants/velocities": {
114
+ "default": "./constants/velocities.js"
115
+ },
116
+ "./unit": {
117
+ "default": "./unit.js"
118
+ },
119
+ "./units/accel": {
120
+ "default": "./units/accel.js"
121
+ },
122
+ "./units/angle": {
123
+ "default": "./units/angle.js"
124
+ },
125
+ "./units/area": {
126
+ "default": "./units/area.js"
127
+ },
128
+ "./units/data": {
129
+ "default": "./units/data.js"
130
+ },
131
+ "./units/density": {
132
+ "default": "./units/density.js"
133
+ },
134
+ "./units/electric": {
135
+ "default": "./units/electric.js"
136
+ },
137
+ "./units/energy": {
138
+ "default": "./units/energy.js"
139
+ },
140
+ "./units/force": {
141
+ "default": "./units/force.js"
142
+ },
143
+ "./units/frequency": {
144
+ "default": "./units/frequency.js"
145
+ },
146
+ "./units/length": {
147
+ "default": "./units/length.js"
148
+ },
149
+ "./units/luminous": {
150
+ "default": "./units/luminous.js"
151
+ },
152
+ "./units/mass": {
153
+ "default": "./units/mass.js"
154
+ },
155
+ "./units/parts": {
156
+ "default": "./units/parts.js"
157
+ },
158
+ "./units/power": {
159
+ "default": "./units/power.js"
160
+ },
161
+ "./units/pressure": {
162
+ "default": "./units/pressure.js"
163
+ },
164
+ "./units/substance": {
165
+ "default": "./units/substance.js"
166
+ },
167
+ "./units/temperature": {
168
+ "default": "./units/temperature.js"
169
+ },
170
+ "./units/time": {
171
+ "default": "./units/time.js"
172
+ },
173
+ "./units/velocity": {
174
+ "default": "./units/velocity.js"
175
+ },
176
+ "./units/volume": {
177
+ "default": "./units/volume.js"
178
+ }
179
+ },
180
+ "thi.ng": {
181
+ "status": "beta",
182
+ "year": 2021
183
+ },
184
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
185
+ }
package/CHANGELOG.md DELETED
@@ -1,73 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.5.0) (2024-06-21)
15
-
16
- #### 🚀 Features
17
-
18
- - add DPI constants/presets ([5fe2f78](https://github.com/thi-ng/umbrella/commit/5fe2f78))
19
-
20
- #### 🩹 Bug fixes
21
-
22
- - update DPI constants ([0b36809](https://github.com/thi-ng/umbrella/commit/0b36809))
23
-
24
- ### [0.4.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.4.14) (2023-11-09)
25
-
26
- #### ♻️ Refactoring
27
-
28
- - update all tests (packages T-Z) ([020ef6c](https://github.com/thi-ng/umbrella/commit/020ef6c))
29
-
30
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.4.0) (2023-03-22)
31
-
32
- #### 🚀 Features
33
-
34
- - add US paper sizes/presets ([bc78668](https://github.com/thi-ng/umbrella/commit/bc78668))
35
- - rename file din-sizes.ts => paper-sizes.ts
36
- - update pkg export maps
37
- - add landscape presets (paper sizes) ([a96a714](https://github.com/thi-ng/umbrella/commit/a96a714))
38
-
39
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.3.0) (2023-03-16)
40
-
41
- #### 🚀 Features
42
-
43
- - add more quantities/constants ([27cd71e](https://github.com/thi-ng/umbrella/commit/27cd71e))
44
-
45
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.2.0) (2023-03-15)
46
-
47
- #### 🚀 Features
48
-
49
- - add support for quantities ([94ded3e](https://github.com/thi-ng/umbrella/commit/94ded3e))
50
- - add quantity()
51
- - update various ops & predicates as polymorphic fns
52
- - fix asUnit()
53
- - update docs
54
- - restructure /src, add quantities/constants ([1374162](https://github.com/thi-ng/umbrella/commit/1374162))
55
- - add /src/constants:
56
- - velocities
57
- - DIN paper sizes
58
- - move all unit presets to /src/units
59
- - update pkg exports
60
-
61
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.1.0) (2023-03-14)
62
-
63
- #### 🚀 Features
64
-
65
- - migrate, refactor & import as new pkg ([73c941a](https://github.com/thi-ng/umbrella/commit/73c941a))
66
- - add coherent(), update unit defs ([d2f7608](https://github.com/thi-ng/umbrella/commit/d2f7608))
67
- - add MaybeUnit, update fn sigs ([fe65abc](https://github.com/thi-ng/umbrella/commit/fe65abc))
68
- - add isDimensionless(), update prefix() ([1851fb9](https://github.com/thi-ng/umbrella/commit/1851fb9))
69
- - add/update units, aliases ([850e604](https://github.com/thi-ng/umbrella/commit/850e604))
70
-
71
- #### ♻️ Refactoring
72
-
73
- - rename builtin units, update readme ([22031e6](https://github.com/thi-ng/umbrella/commit/22031e6))