@thi.ng/units 1.0.5 → 1.0.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-29T16:25:48Z
3
+ - **Last updated**: 2025-02-13T16:03:11Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/api.d.ts CHANGED
@@ -49,7 +49,7 @@ export type MaybeUnit = Unit | string;
49
49
  * Note: For dimensionless units, all dimensions are zero.
50
50
  *
51
51
  * Reference:
52
- * - https://en.wikipedia.org/wiki/SI_base_unit
52
+ * https://en.wikipedia.org/wiki/SI_base_unit
53
53
  */
54
54
  export type Dimensions = [
55
55
  number,
@@ -67,7 +67,7 @@ export type Prefix = keyof typeof PREFIXES;
67
67
  /**
68
68
  * @remarks
69
69
  * Reference:
70
- * - https://en.wikipedia.org/wiki/Metric_prefix
70
+ * https://en.wikipedia.org/wiki/Metric_prefix
71
71
  */
72
72
  export declare const PREFIXES: {
73
73
  Q: number;
@@ -7,7 +7,7 @@ export declare const EARTH_RADIUS: import("../unit.js").Quantity<6371000>;
7
7
  *
8
8
  * @remarks
9
9
  * Reference:
10
- * - https://en.wikipedia.org/wiki/Earth%27s_circumference
10
+ * https://en.wikipedia.org/wiki/Earth%27s_circumference
11
11
  */
12
12
  export declare const EARTH_CIRCUMFERENCE: import("../unit.js").Quantity<40075017>;
13
13
  /**
@@ -15,7 +15,7 @@ export declare const EARTH_CIRCUMFERENCE: import("../unit.js").Quantity<40075017
15
15
  *
16
16
  * @remarks
17
17
  * Reference:
18
- * - https://en.wikipedia.org/wiki/Gravity_of_Earth
18
+ * https://en.wikipedia.org/wiki/Gravity_of_Earth
19
19
  */
20
20
  export declare const EARTH_GRAVITY: import("../unit.js").Quantity<9.78033>;
21
21
  /**
@@ -27,7 +27,7 @@ export declare const EARTH_MASS: import("../unit.js").Quantity<5.9722e+24>;
27
27
  *
28
28
  * @remarks
29
29
  * Reference:
30
- * - https://en.wikipedia.org/wiki/Gravitational_constant
30
+ * https://en.wikipedia.org/wiki/Gravitational_constant
31
31
  */
32
32
  export declare const GRAVITATION: import("../unit.js").Quantity<6.6743e-11>;
33
33
  //# sourceMappingURL=earth.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/units",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,14 +39,14 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.11.19",
43
- "@thi.ng/checks": "^3.6.22",
44
- "@thi.ng/equiv": "^2.1.75",
45
- "@thi.ng/errors": "^2.5.25"
42
+ "@thi.ng/api": "^8.11.20",
43
+ "@thi.ng/checks": "^3.6.23",
44
+ "@thi.ng/equiv": "^2.1.76",
45
+ "@thi.ng/errors": "^2.5.26"
46
46
  },
47
47
  "devDependencies": {
48
- "esbuild": "^0.24.2",
49
- "typedoc": "^0.27.6",
48
+ "esbuild": "^0.25.0",
49
+ "typedoc": "^0.27.7",
50
50
  "typescript": "^5.7.3"
51
51
  },
52
52
  "keywords": [
@@ -181,5 +181,5 @@
181
181
  "status": "beta",
182
182
  "year": 2021
183
183
  },
184
- "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
184
+ "gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
185
185
  }
package/unit.d.ts CHANGED
@@ -89,9 +89,10 @@ export declare class Quantity<T extends number | number[]> implements IDeref<T>
89
89
  * polymorphic functions: {@link div}, {@link mul}, {@link reciprocal} and
90
90
  * {@link convert}.
91
91
  *
92
- * The {@link Quantity} class also implements the standard [`IDeref`]()
93
- * interface to obtain unwrapped amount (though only should be used for
94
- * dimensionless quantities). Use {@link convert} otherwise!
92
+ * The {@link Quantity} class also implements the standard
93
+ * [`IDeref`](https://docs.thi.ng/umbrella/api/interfaces/IDeref.html) interface
94
+ * to obtain unwrapped amount (though only should be used for dimensionless
95
+ * quantities). Use {@link convert} otherwise!
95
96
  *
96
97
  * @example
97
98
  * ```ts tangle:../export/quantity.ts