Skip to content

Commit 939e80a

Browse files
author
Asif Ansari
committed
chore(release): 3.2.0
1 parent 0d57087 commit 939e80a

6 files changed

Lines changed: 21 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55

66
---
77

8+
## [3.2.0] — 2026-09-29
9+
10+
### Added
11+
12+
- **Non-blocking `exportToPdf`** — the export now works in ~30 ms slices and yields to the event loop between them, both while formatting rows (including grouped rows and WinAnsi conversion) and while drawing the table: the body is drawn by a series of `jspdf-autotable` calls that continue on the same page with fixed column widths, the header repeated on every new page and the footer only at the end. Pages, row positions, shading and page breaks are unchanged (verified against a single call in Chromium, Firefox and WebKit). Measured with 50,000 grouped rows in Chromium: longest main-thread block 6.3 s → ~0.4–0.6 s (jsPDF's final save, which cannot be split), total time about the same (~6–7 s), file size unchanged.
13+
- **`PdfExportOptions.onProgress`** — `({ phase: 'prepare' | 'render' | 'save', done, total }) => void`; new exported type `PdfExportProgress`.
14+
- **`PdfExportOptions.signal`** — an `AbortSignal`; aborting rejects the promise with a `DOMException` named `'AbortError'` and saves no file.
15+
- **`PdfExportOptions.maxRows`** (default 20,000) — above it a development-mode `console.warn` recommends `exportToCsv` / `exportToExcelAdvanced`. The export still runs; nothing is thrown.
16+
- Demo: the PDF export page has a row-count selector, a progress bar and a Cancel button.
17+
818
## [3.1.0] — 2026-09-29
919

1020
### Added

‎CLAUDE.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This file is auto-loaded by Claude Code and other AI coding assistants. It provi
1414
- **Build:** `npm run build:lib` produces the published `dist/opengridx.es.js` / `dist/opengridx.umd.js`. `npm run build` type-checks the lib and builds the **demo site**.
1515
- **Published:** yes — on npm as `@opencorestack/opengridx` with external consumers. Treat public types and behaviour changes as semver-relevant.
1616
- **Lint:** `npm run lint` (ESLint). Must pass before every commit.
17-
- **Current version:** 3.1.0
17+
- **Current version:** 3.2.0
1818

1919
---
2020

@@ -148,6 +148,11 @@ Full doc: `docs/architecture/grid-row-meta.md`
148148

149149
---
150150

151+
## v3.2.0 — significant changes
152+
153+
- `exportToPdf` is time-sliced (`runPdfExport` + `PdfExportTuning` in `lib/utils/export/exportToPdf.ts`; internal, not exported from the package). Yields use `setTimeout(0)`, not `scheduler.yield()` (which resumes ahead of queued tasks and starves React's scheduler). The body is drawn as several autoTable calls: continuation chunks start at `startY: MARGIN` and a `willDrawPage` hook moves `data.cursor.y` to the previous `finalY` and sets `settings.showHead = 'never'` for that page only (bypasses autoTable's fit-below-startY page break, so breaks match a single call). Chunks are even-sized (alternate shading parity); foot only on the last chunk. `exportToPdf.browser.test.ts` checks drawing ops are identical to a single call
154+
- New options `onProgress`, `signal` (DOMException `'AbortError'`, nothing saved), `maxRows` (default `PDF_MAX_ROWS_DEFAULT` 20000, dev warning only)
155+
151156
## v3.1.0 — significant changes
152157

153158
- `GridColDef.sortComparator(v1, v2, params1, params2)`: ascending comparator; sees null/undefined (no built-in nulls-last for that column); negated for desc. Sorting utils (`lib/utils/sorting`) take it through `GridSortValue.comparator` + `params` — two items use it only when both carry the same comparator, otherwise the built-in key comparison applies (tree auto-parents, group rows sorted by a non-grouping field). Always call it through `callSortComparator` (throw / NaN → 0, warn once). Row grouping passes the grouping column's comparator for group rows; pivot uses the source column's for row-label fields

‎demo/App.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function App() {
147147
<img src={`${import.meta.env.BASE_URL}logo.png`} alt="OpenGridX Logo" className="app-logo" />
148148
<h2 className="app-title">
149149
OpenGridX
150-
<span className="app-version">v3.1.0</span>
150+
<span className="app-version">v3.2.0</span>
151151
</h2>
152152
</div>
153153

‎demo/Home.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function Home(_props: HomeProps) {
6262
<div className="home-logo-hero">
6363
<img src={`${import.meta.env.BASE_URL}banner.png`} alt="OpenGridX Logo" className="home-banner-image" />
6464
</div>
65-
<span className="home-badge">OpenGridX v3.1.0</span>
65+
<span className="home-badge">OpenGridX v3.2.0</span>
6666
<p className="home-subtitle">
6767
The elite, high-performance DataGrid for modern React.
6868
Built to handle massive data with a premium developer experience.

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencorestack/opengridx",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "OpenGridX: High-performance React data infrastructure. Unlock advanced Row Grouping, Excel Export, and Column Pinning without the usual \"Pro\" gatekeeping. Built for speed, scale, and complete architectural freedom. Fully open, virtualization-ready, and feature-complete.",
55
"type": "module",
66
"main": "./dist/opengridx.umd.js",

0 commit comments

Comments
 (0)