@thi.ng/units 0.4.24 → 0.4.26
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 +1 -1
- package/README.md +7 -3
- package/package.json +6 -6
- package/unit.d.ts +1 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
> This is one of 189 standalone projects, maintained as part
|
|
12
|
+
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
13
|
+
> and anti-framework.
|
|
14
|
+
>
|
|
15
|
+
> 🚀 Help me to work full-time on these projects by [sponsoring me on
|
|
16
|
+
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
13
17
|
|
|
14
18
|
- [About](#about)
|
|
15
19
|
- [Unit definitions](#unit-definitions)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/units",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/checks": "^3.4.
|
|
40
|
-
"@thi.ng/equiv": "^2.1.
|
|
41
|
-
"@thi.ng/errors": "^2.4.
|
|
38
|
+
"@thi.ng/api": "^8.9.19",
|
|
39
|
+
"@thi.ng/checks": "^3.4.19",
|
|
40
|
+
"@thi.ng/equiv": "^2.1.43",
|
|
41
|
+
"@thi.ng/errors": "^2.4.12"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"status": "beta",
|
|
180
180
|
"year": 2021
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
|
|
183
183
|
}
|
package/unit.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const asUnit: (id: string) => Unit;
|
|
|
69
69
|
* @param coherent
|
|
70
70
|
*/
|
|
71
71
|
export declare const prefix: (id: Prefix, unit: MaybeUnit, coherent?: boolean) => Unit;
|
|
72
|
-
type QUnit<T extends number | number[]> = T extends number ? Unit : Unit[];
|
|
72
|
+
export type QUnit<T extends number | number[]> = T extends number ? Unit : Unit[];
|
|
73
73
|
/**
|
|
74
74
|
* Wrapper for scalar or vector quantities. See {@link quantity}.
|
|
75
75
|
*/
|
|
@@ -236,5 +236,4 @@ export declare const isReciprocal: (a: MaybeUnit, b: MaybeUnit) => boolean;
|
|
|
236
236
|
* @param u
|
|
237
237
|
*/
|
|
238
238
|
export declare const formatSI: (u: Quantity<any> | MaybeUnit) => string;
|
|
239
|
-
export {};
|
|
240
239
|
//# sourceMappingURL=unit.d.ts.map
|