@thi.ng/bench 3.5.0 → 3.5.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-13T14:04:31Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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
+ ### [3.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.5.1) (2024-03-27)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix optional arg type for timeDiff() ([29825ac](https://github.com/thi-ng/umbrella/commit/29825ac))
17
+
12
18
  ## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/bench@3.5.0) (2024-03-13)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 190 standalone projects, maintained as part
10
+ > This is one of 191 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -64,7 +64,13 @@ return it as milliseconds.
64
64
  yarn add @thi.ng/bench
65
65
  ```
66
66
 
67
- ES module import:
67
+ ESM import:
68
+
69
+ ```ts
70
+ import * as bench from "@thi.ng/bench";
71
+ ```
72
+
73
+ Browser ESM import:
68
74
 
69
75
  ```html
70
76
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/bench"></script>
package/now.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn0, FnU2 } from "@thi.ng/api";
1
+ import type { Fn0 } from "@thi.ng/api";
2
2
  import type { Timestamp } from "./api.js";
3
3
  /**
4
4
  * If available, returns wrapper for `process.hrtime.bigint()` else falls back
@@ -13,7 +13,7 @@ export declare const now: Fn0<Timestamp>;
13
13
  * @param a
14
14
  * @param b
15
15
  */
16
- export declare const timeDiff: FnU2<Timestamp, number>;
16
+ export declare const timeDiff: (a: Timestamp, b?: Timestamp) => number;
17
17
  /**
18
18
  * Takes a duration (either a number or bigint) in nanosec-scale (see
19
19
  * {@link now}) and converts it to a JS number in milliseconds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/bench",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Benchmarking & profiling utilities w/ various statistics & formatters (CSV, JSON, Markdown etc.)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,17 +36,17 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.30"
39
+ "@thi.ng/api": "^8.10.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.42.3",
43
- "@thi.ng/testament": "^0.4.23",
44
- "@types/node": "^20.11.26",
45
- "esbuild": "^0.20.1",
42
+ "@microsoft/api-extractor": "^7.43.0",
43
+ "@thi.ng/testament": "^0.4.25",
44
+ "@types/node": "^20.11.30",
45
+ "esbuild": "^0.20.2",
46
46
  "rimraf": "^5.0.5",
47
47
  "tools": "^0.0.1",
48
48
  "typedoc": "^0.25.12",
49
- "typescript": "^5.4.2"
49
+ "typescript": "^5.4.3"
50
50
  },
51
51
  "keywords": [
52
52
  "benchmark",
@@ -120,5 +120,5 @@
120
120
  ],
121
121
  "year": 2018
122
122
  },
123
- "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
123
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
124
124
  }