@opencorestack/opengridx 2.0.0 → 2.0.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
@@ -5,6 +5,30 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [2.0.2] — 2026-09-10
9
+
10
+ ### Fixed
11
+
12
+ - **Infinite re-render loop with `rowGroupingModel` + `groupingColDef`** — when both were active,
13
+ `activeColumns` and `effectivePinnedColumns` were rebuilt as new object/array references on every
14
+ render. The new references cascaded through `useRowGrouping`'s memoized values and a `useEffect`
15
+ that called `setExpandedGroupIds`, triggering a render → new references → effect → `setState`
16
+ cycle that never settled (`Maximum update depth exceeded`). Both values are now wrapped in
17
+ `useMemo` so their references only change when their actual inputs change.
18
+
19
+ ---
20
+
21
+ ## [2.0.1] — 2026-09-08
22
+
23
+ ### Documentation
24
+
25
+ - **`unique` aggregation function documented in changelog** — `unique` (count of distinct non-null
26
+ values via `Set`) has been a built-in aggregation function since v1. The v2.0.0 changelog entry
27
+ for `availableAggregationFunctions` now explicitly lists all six built-in names: `sum`, `avg`,
28
+ `count`, `min`, `max`, `unique`.
29
+
30
+ ---
31
+
8
32
  ## [2.0.0] — 2026-09-08
9
33
 
10
34
  ### Breaking
@@ -34,7 +58,8 @@
34
58
  `GridRowMeta.groupLabel`. Falls back to `"${field}: ${value}"` when omitted.
35
59
  - **`availableAggregationFunctions` honored** — per-column `availableAggregationFunctions?: string[]`
36
60
  now gates which aggregation functions are computed in `useAggregation`. Functions not in the
37
- allowed list are skipped for that field.
61
+ allowed list are skipped for that field. Built-in function names (all available since v1):
62
+ `sum`, `avg`, `count`, `min`, `max`, `unique` (count of distinct non-null values).
38
63
  - **`multiSort` prop** — new `multiSort?: boolean` on `DataGrid`. When `true`, every click on a
39
64
  sortable column header appends/cycles that column in the sort model instead of replacing it — no
40
65
  Shift key required. Shift+click continues to work as an append gesture regardless of this prop.