@thi.ng/units 0.4.13 → 0.4.16

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**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-11-24T09:35:46Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [0.4.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.4.14) (2023-11-09)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update all tests (packages T-Z) ([020ef6c](https://github.com/thi-ng/umbrella/commit/020ef6c))
17
+
12
18
  ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/units@0.4.0) (2023-03-22)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -616,7 +616,7 @@ For Node.js REPL:
616
616
  const units = await import("@thi.ng/units");
617
617
  ```
618
618
 
619
- Package sizes (brotli'd, pre-treeshake): ESM: 4.77 KB
619
+ Package sizes (brotli'd, pre-treeshake): ESM: 4.86 KB
620
620
 
621
621
  ## Dependencies
622
622
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/units",
3
- "version": "0.4.13",
3
+ "version": "0.4.16",
4
4
  "description": "Extensible SI unit creation, conversions, quantities & calculations (incl. ~170 predefined units & constants)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -28,24 +28,23 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc constants units",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
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",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "dependencies": {
37
- "@thi.ng/api": "^8.9.6",
38
- "@thi.ng/checks": "^3.4.6",
39
- "@thi.ng/equiv": "^2.1.31",
40
- "@thi.ng/errors": "^2.4.0"
36
+ "@thi.ng/api": "^8.9.9",
37
+ "@thi.ng/checks": "^3.4.9",
38
+ "@thi.ng/equiv": "^2.1.34",
39
+ "@thi.ng/errors": "^2.4.3"
41
40
  },
42
41
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.38.0",
44
- "@thi.ng/testament": "^0.3.24",
42
+ "@microsoft/api-extractor": "^7.38.3",
43
+ "@thi.ng/testament": "^0.4.2",
45
44
  "rimraf": "^5.0.5",
46
45
  "tools": "^0.0.1",
47
- "typedoc": "^0.25.2",
48
- "typescript": "^5.2.2"
46
+ "typedoc": "^0.25.3",
47
+ "typescript": "^5.3.2"
49
48
  },
50
49
  "keywords": [
51
50
  "acceleration",
@@ -179,5 +178,5 @@
179
178
  "status": "beta",
180
179
  "year": 2021
181
180
  },
182
- "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
181
+ "gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
183
182
  }
package/unit.js CHANGED
@@ -109,6 +109,7 @@ export const prefix = (id, unit, coherent = false) => {
109
109
  * Wrapper for scalar or vector quantities. See {@link quantity}.
110
110
  */
111
111
  export class Quantity {
112
+ value;
112
113
  constructor(value) {
113
114
  this.value = value;
114
115
  }