@rtorcato/js-common 1.4.0 → 1.4.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,4 +1,42 @@
1
- # [1.4.0](https://github.com/rtorcato/js-common/compare/v1.3.1...v1.4.0) (2025-10-24)
1
+ ## [1.4.2](https://github.com/rtorcato/js-common/compare/v1.4.1...v1.4.2) (2026-01-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update benchmark imports to use correct module paths ([0713f23](https://github.com/rtorcato/js-common/commit/0713f23f03826546718f6d7667aea09bf14b26ce))
7
+
8
+ ## [1.4.1](https://github.com/rtorcato/js-common/compare/v1.4.0...v1.4.1) (2026-01-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add build step to performance benchmarks job ([e3a9020](https://github.com/rtorcato/js-common/commit/e3a9020d17d6cf00feb95055c7d483cd190ca30d))
14
+ * add vitest coverage-istanbul dependency ([498b6fb](https://github.com/rtorcato/js-common/commit/498b6fbd41bc262ea00bb42d0bc2c97e4393f13c))
15
+
16
+ # [1.4.0](https://github.com/rtorcato/js-common/compare/v1.3.1...v1.4.0) (2026-01-16)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * resolve lint errors for unused variables and isNaN usage ([e47b644](https://github.com/rtorcato/js-common/commit/e47b644d4e15b134aaeb2583bc8d97ea1e51e6bb))
22
+ * trigger release for lint and template fixes ([51888fd](https://github.com/rtorcato/js-common/commit/51888fdf6d0d063a6e605e248e214d895125ce2b))
23
+ * update CodeQL workflow to v4 and fix invalid query pack ([15c4868](https://github.com/rtorcato/js-common/commit/15c4868e4f1d23eaaf79cd5fc3c427ed81193c72))
24
+ * update performance workflow with correct pnpm setup order ([908fb60](https://github.com/rtorcato/js-common/commit/908fb60e25f4416b91f0bad4dc77ae66ce81894f))
25
+
26
+
27
+ ### Features
28
+
29
+ * Enable TypeScript type definitions for package consumers ([70eb162](https://github.com/rtorcato/js-common/commit/70eb162bb556164432762f382470ff28a3ec0251))
30
+
31
+ # [1.4.0](https://github.com/rtorcato/js-common/compare/v1.3.1...v1.4.0) (2026-01-16)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * resolve lint errors for unused variables and isNaN usage ([e47b644](https://github.com/rtorcato/js-common/commit/e47b644d4e15b134aaeb2583bc8d97ea1e51e6bb))
37
+ * trigger release for lint and template fixes ([51888fd](https://github.com/rtorcato/js-common/commit/51888fdf6d0d063a6e605e248e214d895125ce2b))
38
+ * update CodeQL workflow to v4 and fix invalid query pack ([15c4868](https://github.com/rtorcato/js-common/commit/15c4868e4f1d23eaaf79cd5fc3c427ed81193c72))
39
+ * update performance workflow with correct pnpm setup order ([908fb60](https://github.com/rtorcato/js-common/commit/908fb60e25f4416b91f0bad4dc77ae66ce81894f))
2
40
 
3
41
 
4
42
  ### Features
@@ -1 +1 @@
1
- import"../chunks/chunk-ANN5UYCF.js";function r(n){return n[0]}function u(n){return n.length?n[n.length-1]:void 0}function T(n){return Array.from(new Set(n))}function f(n){return n.flat()}function i(n,t){let e=[];for(let o=0;o<n.length;o+=t)e.push(n.slice(o,o+t));return e}function l(n){return n.filter(Boolean)}function c(n){let t=n.slice();for(let e=t.length-1;e>0;e--){let o=Math.floor(Math.random()*(e+1));[t[e],t[o]]=[t[o],t[e]]}return t}export{i as chunk,l as compact,r as first,f as flatten,u as last,c as shuffle,T as unique};
1
+ import"../chunks/chunk-ANN5UYCF.js";function o(t){return t[0]}function u(t){return t.length?t[t.length-1]:void 0}function T(t){return Array.from(new Set(t))}function f(t){return t.flat()}function i(t,n){if(n<1)throw new Error("Chunk size must be at least 1");let e=[];for(let r=0;r<t.length;r+=n)e.push(t.slice(r,r+n));return e}function l(t){return t.filter(Boolean)}function c(t){let n=t.slice();for(let e=n.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1));[n[e],n[r]]=[n[r],n[e]]}return n}export{i as chunk,l as compact,o as first,f as flatten,u as last,c as shuffle,T as unique};
@@ -354,7 +354,7 @@ mathCmd
354
354
  .description('Calculate sum of numbers')
355
355
  .argument('<numbers...>', 'Numbers to sum')
356
356
  .action((numbers) => {
357
- const nums = numbers.map(Number).filter((n) => !isNaN(n));
357
+ const nums = numbers.map(Number).filter((n) => !Number.isNaN(n));
358
358
  console.log(nums.reduce((a, b) => a + b, 0));
359
359
  });
360
360
  mathCmd
@@ -362,7 +362,7 @@ mathCmd
362
362
  .description('Calculate average of numbers')
363
363
  .argument('<numbers...>', 'Numbers to average')
364
364
  .action((numbers) => {
365
- const nums = numbers.map(Number).filter((n) => !isNaN(n));
365
+ const nums = numbers.map(Number).filter((n) => !Number.isNaN(n));
366
366
  console.log(nums.reduce((a, b) => a + b, 0) / nums.length);
367
367
  });
368
368
  mathCmd
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtorcato/js-common",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "JavaScript and TypeScript common code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,6 +40,7 @@
40
40
  "test": "vitest",
41
41
  "test:watch": "vitest --watch",
42
42
  "coverage": "vitest run --coverage",
43
+ "benchmark": "node scripts/benchmark.mjs",
43
44
  "commit": "cz",
44
45
  "================================================": ""
45
46
  },
@@ -238,6 +239,7 @@
238
239
  "devDependencies": {
239
240
  "@biomejs/biome": "^2.3.0",
240
241
  "@commitlint/cli": "^20.1.0",
242
+ "@commitlint/config-conventional": "^20.3.1",
241
243
  "@rtorcato/js-tooling": "^1.0.9",
242
244
  "@semantic-release/changelog": "^6.0.3",
243
245
  "@semantic-release/commit-analyzer": "^13.0.1",
@@ -250,6 +252,7 @@
250
252
  "@types/inquirer": "^9.0.9",
251
253
  "@types/luxon": "^3.7.1",
252
254
  "@types/node": "^24.9.1",
255
+ "@vitest/coverage-istanbul": "^4.0.17",
253
256
  "cross-env": "^10.1.0",
254
257
  "esbuild": "^0.25.11",
255
258
  "husky": "^9.1.7",
@@ -258,7 +261,7 @@
258
261
  "rimraf": "^6.0.1",
259
262
  "semantic-release": "^25.0.1",
260
263
  "typescript": "^5.9.3",
261
- "vitest": "^4.0.3"
264
+ "vitest": "^4.0.17"
262
265
  },
263
266
  "dependencies": {
264
267
  "chalk": "^5.6.2",