@agile-team/mach-table 0.18.1 → 0.19.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 CHANGED
@@ -41,7 +41,41 @@ await api.applyTransactionAsync({ update: realtimeRows });
41
41
  api.applyState(state);
42
42
  ```
43
43
 
44
- 0.18 adds governed runtime APIs, nested filters, named views, conflict-aware saves and performance evidence:
44
+ 0.19 adds a lower-cost rendering pipeline and a smaller, more discoverable imperative surface without removing the flat 0.x API:
45
+
46
+ ```ts
47
+ api.batch((grid) => {
48
+ grid.rows.apply({ update: changedRows });
49
+ grid.columns.setVisible("internalNote", false);
50
+ grid.refreshCells({ rowIds: changedIds, columns: ["status"] });
51
+ });
52
+
53
+ console.info(api.diagnostics.get().updates);
54
+ ```
55
+
56
+ For very large remote datasets, opt into random-access blocks. Sequential infinite loading remains the compatibility default:
57
+
58
+ ```ts
59
+ const options = {
60
+ datasource,
61
+ datasourceMode: "block" as const,
62
+ datasourceRowCount: 1_000_000,
63
+ blockSize: 200,
64
+ maxBlocksInCache: 12,
65
+ blockPrefetch: 1
66
+ };
67
+
68
+ await api.rows.ensureLoaded(40_000, 40_200, { signal });
69
+ console.info(api.rows.getCacheSnapshot());
70
+ ```
71
+
72
+ Worker runtime helpers are intentionally split from the default entry:
73
+
74
+ ```ts
75
+ import { createWorkerDataProcessor, installGridDataWorker } from "@agile-team/mach-table/worker";
76
+ ```
77
+
78
+ 0.18 added governed runtime APIs, nested filters, named views, conflict-aware saves and performance evidence:
45
79
 
46
80
  ```ts
47
81
  const views = createGridViewManager(api, { scope: "tenant:user:orders" });