nano-benchmark 1.0.10 → 1.0.11

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/README.md CHANGED
@@ -50,10 +50,9 @@ Use `-A` for convenience in safe environments.
50
50
 
51
51
  ## Documentation
52
52
 
53
- Both utilities are available by name if you installed `nano-benchmark` globally
54
- (`npm install -g nano-benchmark`).
55
- If it is installed as a dependency, you can use utilities by name in the `scripts` section of
56
- your `package.json` file or from the command line by prefixing them with `npx`, e.g., `npx nano-watch`.
53
+ Both utilities are available by name with a global install (`npm install -g nano-benchmark`).
54
+ Otherwise, prefix with `npx` (e.g., `npx nano-watch`) or use them in the `scripts` section of
55
+ your `package.json`.
57
56
 
58
57
  Utilities are self-documented — run them with `--help` flag to learn about arguments.
59
58
 
@@ -116,6 +115,7 @@ BSD 3-Clause License
116
115
 
117
116
  ## Release history
118
117
 
118
+ - 1.0.11: _Fixed MedianCounter.clone() bug, expanded test suite (204 tests), added CodeQL workflow, multi-OS CI matrix, and new Windsurf workflows._
119
119
  - 1.0.10: _Added Prettier lint scripts, GitHub issue templates, Copilot instructions, and Windsurf workflows._
120
120
  - 1.0.9: _Updated dependencies._
121
121
  - 1.0.8: _Updated dependencies._
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-benchmark",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "CLI micro-benchmarking with nonparametric statistics and significance testing.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -60,12 +60,12 @@
60
60
  ],
61
61
  "devDependencies": {
62
62
  "prettier": "^3.8.1",
63
- "tape-six": "^1.7.2",
64
- "tape-six-proc": "^1.2.3"
63
+ "tape-six": "^1.7.8",
64
+ "tape-six-proc": "^1.2.5"
65
65
  },
66
66
  "dependencies": {
67
67
  "commander": "^14.0.3",
68
- "console-toolkit": "^1.2.11"
68
+ "console-toolkit": "^1.2.12"
69
69
  },
70
70
  "tape6": {
71
71
  "tests": [
@@ -74,7 +74,7 @@ export class MedianCounter {
74
74
  }
75
75
 
76
76
  clone() {
77
- const newMedian = new MedianCounter();
77
+ const newMedian = new MedianCounter(this.limit);
78
78
  for (const counter of this.array) {
79
79
  newMedian.array.push(counter.slice());
80
80
  }