@jdsalasc/solvejs-list 1.4.0 → 1.5.1
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 +6 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -31,5 +31,9 @@ import { uniqueBy, groupBy, sortBy } from "@jdsalasc/solvejs-list";
|
|
|
31
31
|
const rows = [{ id: "a", team: "x", score: 2 }, { id: "a", team: "x", score: 2 }, { id: "b", team: "y", score: 1 }];
|
|
32
32
|
const uniqueRows = uniqueBy(rows, (r) => r.id);
|
|
33
33
|
const byTeam = groupBy(uniqueRows, (r) => r.team);
|
|
34
|
-
sortBy(byTeam.x, (r) => r.score, "desc");
|
|
35
|
-
```
|
|
34
|
+
sortBy(byTeam.x, (r) => r.score, "desc");
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Scale note
|
|
38
|
+
|
|
39
|
+
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jdsalasc/solvejs-list",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -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": "
|
|
28
|
+
"lint": "tsc -p tsconfig.esm.json --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|