@jdsalasc/solvejs-list 1.4.1 → 1.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.
Files changed (2) hide show
  1. package/README.md +14 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,9 +13,14 @@ Zero-dependency array/list utilities for JavaScript and TypeScript.
13
13
  - `intersection`, `difference`
14
14
  - `sortBy`
15
15
 
16
- ## When to use this package
17
-
18
- Use it when you repeatedly write list transformation logic and want consistent, tested helpers for grouping, deduplication, and sorting.
16
+ ## When to use this package
17
+
18
+ Use it when you repeatedly write list transformation logic and want consistent, tested helpers for grouping, deduplication, and sorting.
19
+
20
+ ## Limitations and Constraints
21
+
22
+ - Sorting/grouping semantics rely on mapper outputs and do not infer locale-aware collation.
23
+ - Large-list performance depends on data shape and key cardinality; benchmark with production-like payloads.
19
24
 
20
25
  ## Install
21
26
 
@@ -31,5 +36,9 @@ import { uniqueBy, groupBy, sortBy } from "@jdsalasc/solvejs-list";
31
36
  const rows = [{ id: "a", team: "x", score: 2 }, { id: "a", team: "x", score: 2 }, { id: "b", team: "y", score: 1 }];
32
37
  const uniqueRows = uniqueBy(rows, (r) => r.id);
33
38
  const byTeam = groupBy(uniqueRows, (r) => r.team);
34
- sortBy(byTeam.x, (r) => r.score, "desc");
35
- ```
39
+ sortBy(byTeam.x, (r) => r.score, "desc");
40
+ ```
41
+
42
+ ## Scale note
43
+
44
+ For high-volume pipelines (`10k`/`100k` rows), run `npm run benchmark` from the monorepo to profile `uniqueBy`, `groupBy`, and `sortBy` with your real data shape.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jdsalasc/solvejs-list",
3
- "version": "1.4.1",
3
+ "version": "1.5.2",
4
4
  "description": "Zero-dependency JavaScript/TypeScript list utilities for production: uniqueBy, groupBy, keyBy, partition, intersection, difference, chunk, and sortBy.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "build:cjs": "tsc -p tsconfig.cjs.json && node ./scripts/rename-cjs.mjs",
26
26
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
27
27
  "test": "npm run build && node --test test/*.test.mjs",
28
- "lint": "node -e \"console.log('No lint configured for @jdsalasc/solvejs-list')\""
28
+ "lint": "tsc -p tsconfig.esm.json --noEmit"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"