@casoon/opengrid 0.14.0 → 0.15.0

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
@@ -2,7 +2,8 @@
2
2
 
3
3
  Notable changes to `@casoon/opengrid` and the `opengrid-*` crates. The npm
4
4
  package and the crates carry the same version and are released together, so one
5
- entry covers both.
5
+ entry covers both. The crates are published on [crates.io](https://crates.io);
6
+ the npm package on npm.
6
7
 
7
8
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
8
9
  the versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
@@ -18,7 +19,341 @@ Two things belong in every release entry and are easy to leave out:
18
19
 
19
20
  ## [Unreleased]
20
21
 
21
- ## [0.14.0] — 2026-10-26
22
+ ## [0.15.0] - 2026-11-09
23
+
24
+ **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
25
+ **Browsers:** Chromium (the whole e2e suite: 1405 passed). Firefox and WebKit on Linux
26
+ (`gh workflow run ci.yml -f browsers=true`): 1386 passed, 24 skipped by design — no failures, none
27
+ on a retry.
28
+
29
+ The first release with the Rust crates on crates.io: the engine, the connectors and
30
+ `opengrid-server`, fourteen crates at the npm package's version. The rest is hardening after a
31
+ review of the whole project: the server bounds its work before doing it, tells a caller nothing
32
+ about the database and refuses a wrong configuration at startup; PostgreSQL connects over TLS and
33
+ both SQL connectors end a statement nobody waits for; the grid keeps its focus, its selection and
34
+ its editor through new answers, scrolls a result of any length and does less work per frame.
35
+
36
+ **Module sizes** (brotli, `just measure-modules`): the elements 279.4 → 288.5 KiB, the engine
37
+ 145.4 → 149.1 KiB, measured against v0.14.0 — both within their bounds
38
+ (`scripts/module-budget.txt`); the elements are 83 bytes under theirs.
39
+
40
+ **What breaks:**
41
+ - Rust: `DataSourceError` gained `Data`, `ErrorCode` gained `Data`, `QueryError` gained
42
+ `OffsetTooLarge` and `ListTooLong`, `SchemaError` one variant, so an exhaustive `match` must
43
+ handle them; `Limits` has the new field `max_list_values` and `AppState` a new field, so a struct
44
+ literal needs them; `Schema::check` refuses a column named `__og_…` or `__grouping_…`.
45
+ - Server: `ServerBuilder::build` fails for a token that does not fit a row filter, a token handed
46
+ in twice and an invalid `allow_origin`. A backend failure reaches the client as one sentence and a
47
+ reference, not as the database's text. A tree with a key twice or a cycle answers `data` / `422`
48
+ (it was `backend` / `502`). A `POST /query` without `limit` gets `max_limit`. A tree over five
49
+ million rows, an Excel export over a million rows and a list of more than 1 000 values are
50
+ refused unless the bound is raised. PostgreSQL's `connect` refuses `sslmode=require`; use
51
+ `connect_with_tls`.
52
+ - Elements: `set_texts(host, {})` no longer resets the texts (`null` does). The default wording of
53
+ `subtreeCell` and `subtreeOnly` and the name of a disabled add button changed. `page-size="0"`
54
+ means no paging. Results above 312 500 rows scroll through a scaled scroll bar.
55
+ - npm: `engines.node` is `>=22.12.0`; the peer ranges are `vue >=3.4.20` and
56
+ `@types/react >=18.3.0`.
57
+ - MCP: `opengrid_query` answers 500 rows at most per call, and a server source over `http://` is
58
+ refused unless it is on the machine itself.
59
+
60
+ ### Added
61
+
62
+ - **PostgreSQL:** `PostgresDataSource::connect_with` and `PoolOptions` set the pool size and the wait,
63
+ create and recycle timeouts, so `max_concurrent_exports` can be sized against a known pool.
64
+ - **Rust crates on crates.io:** the portable crates, the connectors and `opengrid-server` (fourteen
65
+ in all) are published with every release at the npm package's version, through crates.io Trusted
66
+ Publishing; `opengrid-wasm` and the `opengrid-web-*` crates stay unpublished
67
+ ([#241](https://github.com/casoon/opengrid/issues/241), [releasing](docs/releasing.md#rust-crates)).
68
+ - **PostgreSQL over TLS** ([#220](https://github.com/casoon/opengrid/issues/220)).
69
+ `PostgresDataSource::connect_with_tls` takes any `tokio-postgres` TLS connector and **requires**
70
+ TLS (`sslmode=prefer` would fall back to clear text, so it is lifted to `require`; `disable` is
71
+ refused). The cancel request of a dropped statement goes over the same connector. The cargo
72
+ feature `tls` (off by default) adds `rustls_connector`: `rustls` with the `ring` provider, the
73
+ Mozilla roots and optionally a private authority's. `connect` refuses a string with
74
+ `sslmode=require` at once. New dependencies, only with the feature: `rustls`,
75
+ `tokio-postgres-rustls`, `webpki-roots`, `rustls-pki-types`.
76
+ - **Editing through `connect` and the framework components** ([#206](https://github.com/casoon/opengrid/issues/206)).
77
+ New options `actions` and `validators` (functions compare by identity, as in `formats`) and the
78
+ callbacks `onRowAdd`, `onPaste`, `onBulkChange`, `onRowAction`, `onSourceReplaced`. `onRowAdd`
79
+ answers with the new row's state, or a promise of it — that is `set_row_state`. The connection
80
+ carries `setCellState` and `setValues`, and so does each component's ref (React: the element;
81
+ Vue: the template ref; Svelte: `bind:this`). React, Vue and Svelte take `rowKey` and `addRow`
82
+ as props; the Angular recipe has them as inputs, `[rowAdd]` and `exportAs: "opengrid"`.
83
+ See the framework guide's "Editing".
84
+
85
+ ### Changed
86
+
87
+ - **Engine:** the hot paths no longer allocate per row. `in` looks each cell up in a set of the
88
+ literals instead of comparing the whole column once per literal (500 values over 1M rows: 2229 ms
89
+ to 19 ms), `min`/`max` reuse one buffer per group (1M rows by country: 154 ms to 102 ms), and a
90
+ tree keys its nodes on the typed value and builds the paths of the returned page only (100 000
91
+ nodes: roots 24 ms to 8 ms, flat tree 49 ms to 30 ms; native release build). The answers are the
92
+ same ([#214](https://github.com/casoon/opengrid/issues/214)).
93
+ - **Engine:** `load_csv` reads the file record by record into the column builders instead of
94
+ scanning every record first. The peak memory of loading the 1M-row demo file (85 MB) drops from
95
+ 431 MiB to 159 MiB (native, release build, maximum resident set size); the result is the same
96
+ ([#215](https://github.com/casoon/opengrid/issues/215)).
97
+ - **Packaging:** the Cargo feature `pivot` pulls `opengrid-grid` and `opengrid-query`, so
98
+ `set_columns` and `set_formats` exist in a pivot-only build of `opengrid-web-components` too
99
+ (they were gated on `grid`, and a pivot-only build had no way to title its columns or format its
100
+ values). The pivot-only module grows from 125803 to 127991 B brotli (343738 to 351574 B raw);
101
+ `grid+pivot`, the module the packages ship, is the same to the byte raw (876486 B)
102
+ ([#234](https://github.com/casoon/opengrid/issues/234)).
103
+ - **Server:** `ServerBuilder::build` now fails at startup for what used to fail on every request or
104
+ silently: a token whose context does not fit a source's row filter (a `tenant_id bigint` filter
105
+ never worked, the context was always sent as text; it is now read as the column's type), a token
106
+ value handed in twice (the last context replaced the first's, so the first tenant got the second's
107
+ rows), and an `allow_origin` that is not a valid header value (it was dropped). **What breaks:** a
108
+ server that was configured with any of these now refuses to start
109
+ ([#221](https://github.com/casoon/opengrid/issues/221)).
110
+ - **Server:** data that breaks a rule of the query, a tree with a key twice or a cycle, now answers
111
+ with the new error code `data` and status `422` instead of `backend` and `502`; the message is
112
+ still told in full. The code is added to the end of `ErrorCode` (`opengrid-datasource`), of the
113
+ frozen server codes and of the `ErrorCode` type in `loader.d.ts`. `createRestProvider`, `exportRows`
114
+ and the elements pass a code they do not know on unchanged and treat it as a failure like any
115
+ other. **What breaks:** a `switch` over `ErrorCode` in Rust must handle the new variant, and a client
116
+ that retried `backend` for a tree cycle now sees `data` and retrying does not help
117
+ ([#219](https://github.com/casoon/opengrid/issues/219)).
118
+ - **Docs:** the project site uses the current shared theme (0.12.6) and ends with a link to the
119
+ quickstart.
120
+ - **Grid:** a further sort key says its place to a screen reader. `aria-sort` stays on the primary
121
+ key only (ARIA 1.2); the header of the second and later keys is described by "Sort key 2", "Sort key
122
+ 3" … through `aria-describedby` and a hidden node. **Public API:** the new text key `sortKey`
123
+ (`Sort key {position}`, 1-based) for `set_texts`, documented in `docs/api.md`
124
+ ([#229](https://github.com/casoon/opengrid/issues/229)).
125
+ - **Packaging:** a bundler's production build finds the WebAssembly modules and the worker by
126
+ itself ([#238](https://github.com/casoon/opengrid/issues/238)). `loader.js` and `worker.js`
127
+ import the packaged glue statically and the worker is started with the
128
+ `new Worker(new URL(...))` form, so `loadOpengrid()` and `createWorkerProvider()` work in a Vite
129
+ build without `moduleUrl` or `workerUrl`; the options still replace the defaults. Before, such a
130
+ build fell back to the plain table and could not start the engine's worker.
131
+ - **Grid:** scrolling, filtering and selecting everything cost less
132
+ ([#235](https://github.com/casoon/opengrid/issues/235), measured with `just measure-grid` over
133
+ 100 000 rows and 10 columns in Chromium). A frame now crosses into the DOM once instead of once
134
+ per patch, writes only what differs (a text, an attribute or a removal that is already as it
135
+ should be is left alone), and the operator choices and column markers are written per result
136
+ instead of per frame. A scroll step of three rows: 6 656 DOM writes become 64, the script time
137
+ 9.6 ms becomes 2.7 ms and the main-thread time 14.2 ms becomes 4.2 ms. The handler of Ctrl+A
138
+ runs 3.6 ms instead of 11.7 ms, `<opengrid-table>` draws 5 000 rows 20 % faster, and extending a range
139
+ over a large selection no longer takes quadratic time. The DOM, the events and the texts are
140
+ the same.
141
+ - **API:** `opengrid-source-replaced` is frozen, typed in `OpengridEventMap` and in the events table
142
+ of the API reference, which says that `loader.js` dispatches it on the grid without bubbling
143
+ ([#234](https://github.com/casoon/opengrid/issues/234)). A test now reads the module's
144
+ `#[wasm_bindgen]` exports from the source and holds them against the frozen functions and an
145
+ explicit internal list, so a new export cannot slip past the freeze. The docs and types no longer
146
+ count events or functions.
147
+ - **Grid:** `opengrid-selection-change` carries `ranges` beside `rows`: the selected rows as runs of
148
+ adjacent rows, `{ from, to }`, ascending, both ends inclusive, so a page can take "select all" over
149
+ 100 000 rows as one range instead of walking the list. `rows` and `count` are unchanged; in a
150
+ tree `ranges` follow `rows`. **Public API:** the detail gains the field `ranges`
151
+ (`SelectionChangeDetail` in `loader.d.ts`, the events table in `docs/api.md`), additive
152
+ ([#235](https://github.com/casoon/opengrid/issues/235)).
153
+ - **Packages:** the peer range of `vue` is `>=3.4.20` and that of `@types/react` is `>=18.3.0`
154
+ ([#237](https://github.com/casoon/opengrid/issues/237)). The shipped Vue types import
155
+ `DefineSetupFnComponent`, which Vue only has from 3.4.20; a project on 3.3 or early 3.4 got a
156
+ type error from our own `.d.ts`. `just types` now also checks the packed adapters against the
157
+ lowest Vue, React and Svelte the ranges allow.
158
+ - **npm:** `engines.node` of `@casoon/opengrid` is `>=22.12.0` (it was `>=18`, which is past its end of life), the same as `@casoon/opengrid-mcp`.
159
+ - **MCP:** `opengrid_query` answers a window of 500 rows at most, the server keeps 100 sessions
160
+ (the least recently used goes first), the `view` of the tools is a typed schema instead of any
161
+ object, and a server source over `http://` is refused unless it is on the machine itself
162
+ ([#242](https://github.com/casoon/opengrid/issues/242)).
163
+ - **Contributors:** the changelog's release headings use the Keep a Changelog form `## [x.y.z] - date`, and the version links at the end of the file work.
164
+
165
+ ### Fixed
166
+
167
+ - **Grid:** loading the source again leaves nothing of the old one behind
168
+ ([#226](https://github.com/casoon/opengrid/issues/226)). The selection is cleared (and the
169
+ `opengrid-selection-change` event and the status line say so), a tree asks for its levels again
170
+ instead of keeping the old ones, and a facet lists the new source's values. A result with fewer
171
+ rows no longer leaves selected rows that are not there. The rows the reader added and the undo
172
+ history now survive what rebuilds the grid (moving or hiding a column, `tree`, applying a view),
173
+ following their columns by name; a changed `datasource` still starts clean. `<opengrid-table>` and
174
+ `<opengrid-pivot>` re-run their query when `loadRows` or `load` replaces their source, which only
175
+ the grid did.
176
+ - **Grid: a selected row is visible under forced colours** ([#230](https://github.com/casoon/opengrid/issues/230)).
177
+ The tint is `Canvas` there and browsers drop `box-shadow`, so a selected row looked like any
178
+ other unless the `selection` column was on. It now keeps a 4px `Highlight` border on its first
179
+ cell.
180
+ - **Server and connectors, hardening** ([#222](https://github.com/casoon/opengrid/issues/222)).
181
+ `max_payload_bytes` above axum's 2 MiB is honoured (the router carries the limit; an oversize body
182
+ is still the `limit_exceeded` wire error), every answer has `Cache-Control: no-store` and
183
+ `X-Content-Type-Options: nosniff`, and the `Bearer` scheme matches without regard to case. An
184
+ `offset` past `i64::MAX` is a validation error (`OffsetTooLarge`) instead of a negative one in the
185
+ database, and `Limits::max_list_values` (default 1 000) bounds an `in`, `has_all`, `and` or `or`
186
+ (`ListTooLong`). A decimal that does not fit SQLite's 64-bit integer is a backend error instead of
187
+ a wrapped number. `PostgresDataSource::connect_in_schema` takes a table in a PostgreSQL schema.
188
+ The example server warns when it falls back to a public demo token. **What breaks:** `Limits` has
189
+ a new public field (a struct literal without `..Limits::default()` no longer compiles),
190
+ `QueryError` has two new variants, `SchemaError` one, and `Schema::check` refuses a column named
191
+ `__og_…` or `__grouping_…`, which the connectors use for helper columns.
192
+ - **Grid and pivot a11y: a disabled add button answers to what it shows** ([#306](https://github.com/casoon/opengrid/issues/306)).
193
+ axe-core 4.14 reports `label-content-name-mismatch` (WCAG 2.5.3, Label in Name) on `+ Group`
194
+ (`part="add-grouping"`) when it is `aria-disabled`, and on the pivot's `+ Row`, `+ Column` and
195
+ `+ Measure` (`part="add-field"`): the `aria-label` was the reason alone ("Nothing left to add"),
196
+ so a speaker saying "click + Row" did not match the name. The accessible name is now the visible
197
+ text, then the reason: `+ Row. Nothing left to add`. The reasons are the texts `groupingFull`,
198
+ `treeGroupIgnored`, `columnFull` and `nothingToAdd`, unchanged and still translatable; no key is
199
+ new or gone, but the name is now `{addGrouping|addRow|addColumn|addMeasure}. {reason}`, so a page
200
+ or test that read the whole name as the bare reason sees the longer one.
201
+ - **Connectors:** a query the server gave up on (its timeout, a client that left) kept running in the
202
+ database. PostgreSQL now gets a cancel request for the connection when the request is dropped
203
+ halfway (`/query`, `/pivot`, a pushed-down tree) and the connection is closed instead of reused.
204
+ SQLite ran on the async thread, to the end, so the timeout could not fire and one slow query held
205
+ every other request; it now runs on a thread of its own and a dropped request interrupts the
206
+ statement. `opengrid_conformance::block_on` waits for a future that is woken from another
207
+ thread (up to two minutes) instead of panicking. `opengrid-datasource-postgres` depends on `tokio` (already in the build) to send the cancel
208
+ request, and SQLite queries of one connector still run one after the other
209
+ ([#217](https://github.com/casoon/opengrid/issues/217)).
210
+ - **Grid a11y: a tree node's cell with a subtree summary names what it shows** ([#306](https://github.com/casoon/opengrid/issues/306)).
211
+ The cell shows `10 · Σ 15` but said "10. Sum of the subtree: 15", which axe-core 4.14 reports as
212
+ `label-content-name-mismatch` (WCAG 2.5.3, Label in Name). The texts `subtreeCell` and
213
+ `subtreeOnly` get a new placeholder `{shown}` for the cell's visible text, and the English
214
+ defaults use it: the name is now "10 · Σ 15, Sum of the subtree" (was
215
+ `{value}. {aggregate} of the subtree: {total}` and `{aggregate} of the subtree: {total}`; now both
216
+ `{shown}, {aggregate} of the subtree`). **The default wording changes**, so a test or a page that
217
+ matches the old sentence sees the new one, and the summary is now said once. For a summary that
218
+ is NULL, `{shown}` is the cell text plus the word for none ("10 · Σ (no value)"). The new
219
+ placeholder is additive: a text a page has set without `{shown}` stays valid and is used exactly
220
+ as written; its name then does not contain the visible text, which is the page's decision.
221
+ `{value}`, `{aggregate}` and `{total}` work as before.
222
+ - **Grid:** with a far row focused, the last row of the result is drawn again
223
+ ([#309](https://github.com/casoon/opengrid/issues/309)). The focused row keeps its own slot while
224
+ the rows scroll; when that left the window one slot short, the window lost its last row, so a click
225
+ in row 3 followed by a scroll to the end showed no last row. The row dropped is now never the
226
+ first or last row of the result (and so the first row stays too, with a focus far below).
227
+ - **Server:** a backend failure reaches the browser as one fixed sentence and a reference
228
+ (`the data source failed (reference og-…)`), no longer as the database's text, which can name a
229
+ table, a hidden column or a tenant's value. New `ServerBuilder::on_error(hook)` receives the full
230
+ cause under the same reference, and every refused token with its reason (never the token); there
231
+ is no logging without it. `DataSourceError::Data` is new: a tree with a key twice or a cycle
232
+ (T1, T3) is told to the caller in full instead of hidden as an outage, and the local engine's
233
+ `TooLarge` is `LimitExceeded` now. **What breaks:** `DataSourceError` has a new variant (an
234
+ exhaustive `match` no longer compiles), `AppState` a new field, and a client that parsed the
235
+ database text out of a `backend` message no longer can. A tree error has the code `data`, see
236
+ *Changed* ([#219](https://github.com/casoon/opengrid/issues/219)).
237
+ - **Grid:** a grid that was removed from the page is collected after its popups were opened
238
+ ([#227](https://github.com/casoon/opengrid/issues/227)). The listeners of the column list, the
239
+ filter dialog, the grouping menu and the operator menu held the grid, so one open of any of them
240
+ kept it, its shadow tree and its runtime for the life of the page. They now find the grid from the
241
+ event they receive.
242
+ - **Grid: the pager keeps the keyboard focus** ([#285](https://github.com/casoon/opengrid/issues/285)).
243
+ Pressing "Next" onto the last page (or "Previous" onto the first) disabled the button the focus
244
+ stood on and the browser dropped it to the document. It now moves to the nearest pager button that
245
+ still works.
246
+ - **Columns:** the binary wire reader no longer panics on forged counts and lengths: a row count of
247
+ `u64::MAX` overflowed `rows + 1` in a text or list column, and path lengths of a flat tree that wrap
248
+ around `u64` passed the sum check and then indexed out of range. Both are now a decode error, so a
249
+ hostile or broken server cannot trap the page ([#212](https://github.com/casoon/opengrid/issues/212)).
250
+ - **Server:** pivots, trees and Excel exports are bounded before the work is done, not after it.
251
+ A pivot's grouping sets carry a limit one past `max_cells` (PostgreSQL's single statement one past
252
+ the sets' sum), so a pivot over a high-cardinality dimension no longer reads every group; the
253
+ overflow is `limit_exceeded` (it was a hidden `backend` error in the default pivot path). A tree the
254
+ engine builds has its scope counted against the new `ServerBuilder::max_tree_rows` (default
255
+ 5 000 000) before its rows are read, for a level and for an export. The new
256
+ `ServerBuilder::max_xlsx_rows` (default 1 000 000) bounds an Excel export below the sheet's 1 048 576
257
+ rows, since the whole workbook is built in memory: a million rows of ten columns take about
258
+ 65 MiB while it is made, and about 25 s, which is past the default timeout of 10 s, so raise
259
+ `timeout` for such exports. **What breaks:** a tree over five million rows, and an Excel export
260
+ over a million rows, are refused unless the bound is raised
261
+ ([#218](https://github.com/casoon/opengrid/issues/218)).
262
+ - **Grid: a result of any length can be scrolled to its last row** ([#284](https://github.com/casoon/opengrid/issues/284)).
263
+ The sizer is `rows * row-height` and a browser caps the height of an element (Firefox at about
264
+ 17.9 million pixels, Chromium and WebKit at 33.5 million), so past about a million rows the end
265
+ was out of reach. The sizer now stops at 10 million pixels (312 500 rows at 32 px) and above that
266
+ the scroll position is mapped onto the rows: dragging the scroll bar lands proportionally in the
267
+ result (its ends are the first and the last row, to the pixel), while the wheel, touch, the
268
+ arrow and page keys still move a few rows at a time. Ctrl+End and every other far jump of the
269
+ focus place the scroll position first. A result that fits the sizer is drawn exactly as before.
270
+ **What changes:** results between 312 500 rows and the old limit are now scaled too, so the thumb
271
+ of the scroll bar is not exactly proportional while the wheel is used in the middle of such a
272
+ result; a drag of it moves by many rows per pixel.
273
+ - **Grid: `--og-row-height` is followed at runtime and a fractional value counts** ([#283](https://github.com/casoon/opengrid/issues/283)).
274
+ A change while the grid stays in the page (a theme switch, a class on a parent) used to leave the
275
+ window math on the old height, so rows overlapped; the grid now notices it through the size of its
276
+ rows. A value like `40.5px` fell back to the default silently; it is now rounded up to 41 px.
277
+ - **Query:** an integer literal on a `decimal` column (`{"field": "amount", "op": "gt", "value": 10}`) was
278
+ refused as `ValueTypeMismatch`, although rule S8 allows comparing an integer with a decimal. It is
279
+ now read at the column's scale (an overflow of the precision is still a validation error); a float
280
+ literal on a decimal column stays an error ([#210](https://github.com/casoon/opengrid/issues/210)).
281
+ - **Grid:** a filter control that has the focus stays in sight when the filter row is laid out again
282
+ (a window resized, a column shown). The widths and the indent changed under the control and the
283
+ row's own scroll position did not follow, so the control could end up beside the edge and stay
284
+ there (WCAG 2.4.11). Found by a spec that passed only on its retry
285
+ (`at 480px every filter control is in sight`, about 1 run in 20).
286
+ - **Pivot and grid: live region, language, names and descriptions** ([#231](https://github.com/casoon/opengrid/issues/231)).
287
+ `<opengrid-pivot>` keeps its status line across answers and changes only its text, where it built
288
+ a fresh `role="status"` with the text already inside on every answer (WCAG 4.1.3); the toolbar and
289
+ the table are drawn around it. The grand total carries our `lang`, and the filter field is named
290
+ by a hidden node with our `lang` instead of `aria-label`. A validation sentence and a tree's
291
+ "context" are hidden nodes the cell is described by (`aria-describedby`) instead of
292
+ `aria-description` (ARIA 1.3 draft); a finding no longer overwrites the context on a tree's first
293
+ cell. The *Add filter* dialog is `aria-modal="true"`, and what it says about a refused value goes
294
+ through the status line instead of a second `role="alert"`.
295
+ - **Planner:** a tree the client builds (the source has no trees, or leaves the sort or the paging
296
+ to the client) lost the query's sort when it was not paged, and a tree the source answered but
297
+ could not sort or page came back as plain rows without `children`, `match` and `orphans`. The
298
+ client now builds the whole level in those cases and asks the source for the columns of the tree's
299
+ scope and sums too, which it did not, so a scoped or summing tree failed with an unknown column.
300
+ The hybrid conformance run now covers the tree and list cases
301
+ ([#211](https://github.com/casoon/opengrid/issues/211)).
302
+ - **Grid: the ARIA of grouping, selection and sorting** ([#229](https://github.com/casoon/opengrid/issues/229)).
303
+ Group rows and grouped data rows carry `aria-posinset` / `aria-setsize` (the total row none), the
304
+ `<table>` carries `aria-multiselectable="true"` while selection is on, rows carry no
305
+ `aria-selected` while grouped (selection is off there), and only the primary sort key sets
306
+ `aria-sort`: further keys show their order and direction in the header's marks, which stay
307
+ `aria-hidden` — the text key `sortKey` says them, see *Changed*.
308
+ - **Engine:** a decimal `sum` of 39 digits was returned as a `decimal(38, s)` that neither wire form
309
+ could read back; it is now an overflow error, like an `int64` sum past its limit. A decimal pushed
310
+ into a column of another scale was stored with a different meaning (100 at scale 0 became `1.00`);
311
+ it is now refused ([#213](https://github.com/casoon/opengrid/issues/213)).
312
+ - **Grid:** after a filter, facet or search the row the focus stood on kept showing the old record,
313
+ or stayed on as an empty row past the end; a new answer now clears the pinned row and keeps the
314
+ active cell inside the result. A focus request that a newer query superseded is carried by the
315
+ answer that lands, and an answer no longer pulls the focus back from a filter field or a toolbar
316
+ button the reader moved to. The grouped grand total is asked again when a newer query cut the
317
+ first one short ([#223](https://github.com/casoon/opengrid/issues/223)).
318
+ - **Grid:** attributes mean their value, not their presence
319
+ ([#233](https://github.com/casoon/opengrid/issues/233)). `page-size="0"` (or a word) is no paging
320
+ and no longer refuses `group-by`, `tree`, `add-row` or the grouping in the column menu; a
321
+ `row-key` that names no field no longer offers bulk editing or puts `key: null` into events.
322
+ `set_texts` now does what the API reference says: it adds to the texts an earlier call set
323
+ instead of starting from the defaults again (**behaviour change:** `set_texts(host, {})` no longer
324
+ resets the texts; `set_texts(host, null)` does, and `connect` uses it so that its `texts` option
325
+ still means all of them). The pivot mirrors a changed `label` instead of asking its provider again, as
326
+ the grid and the table do.
327
+ - **Grid:** with a `row-key`, undo and redo of a record that was not among the loaded rows (a filter
328
+ or a scroll had moved it out) wrote the old value into whichever record sat in its former position.
329
+ The grid is not written to then; the event reaches the page with the record's `key`. A value the
330
+ page sets with `set_values` now ends the undo and redo steps it overrides
331
+ ([#225](https://github.com/casoon/opengrid/issues/225)).
332
+ - **Formats follow the page's `lang`** ([#232](https://github.com/casoon/opengrid/issues/232)).
333
+ An `Intl` format without a `locale` read the browser's locale, so a `lang="de"` page in an English
334
+ browser showed `1,234.5` while the screen reader spoke German. The locale is now the explicit
335
+ `locale`, then the nearest `lang` of the page (through shadow roots), then the browser's — and a
336
+ change of `lang` on the page re-resolves the formats and redraws the grid, table and pivot.
337
+ - **Grid:** scrolling while a cell was being edited closed the editor in the grid's state but left
338
+ the `<input>` on screen, where `Enter` and `Escape` no longer reached it and the typed value was
339
+ lost. A scroll now leaves the editor open ([#224](https://github.com/casoon/opengrid/issues/224)).
340
+ - **Grid:** pasting no longer writes into a column the page fills (`readonly`)
341
+ ([#228](https://github.com/casoon/opengrid/issues/228)). The preview shows those cells with the
342
+ reason and leaves them out, the live region names the column, and a block of nothing else closes
343
+ without an `opengrid-paste`. A preview is discarded when a new result for the whole query lands
344
+ (another sort or filter, a replaced source, a rebuild), and an answer that arrives after one does
345
+ not open one; before, `Enter` applied the block to rows that were no longer there. The preview's
346
+ query is no longer counted in the footer.
347
+ - **Engine:** a date or timestamp text with a multi-byte character (a filter literal, a CSV cell, a
348
+ wire value) panicked the parser — a wasm trap in the browser, a 500 on the server; it is now a
349
+ validation error ([#209](https://github.com/casoon/opengrid/issues/209)).
350
+ - **Server:** a `POST /query` that named no `limit` read the whole filtered table into memory;
351
+ it now gets `max_limit`, as `docs/protocol.md` always said ([#216](https://github.com/casoon/opengrid/issues/216)).
352
+ An export is unchanged and still reads up to its row bound.
353
+ - **Docs:** rustdoc builds without warnings again: broken and private intra-doc links in the
354
+ crate docs now point at public paths or are plain code spans.
355
+
356
+ ## [0.14.0] - 2026-10-26
22
357
 
23
358
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
24
359
  **Browsers:** Chromium (the whole e2e suite: 1231 passed). Firefox and WebKit on Linux
@@ -120,7 +455,7 @@ workflow with npm Trusted Publishing.
120
455
  hero shows a tighter capture of the grid from the live demo, with a narrower one on phones.
121
456
  - **Releases:** the npm packages are published by a Release workflow on the tag, with npm Trusted Publishing (provenance, no token), after approval in the `npm` environment; `pnpm release` now checks the commit and sets the tag.
122
457
 
123
- ## `@casoon/opengrid-mcp` [0.13.0] — 2026-10-14
458
+ ## [0.13.0-mcp] - 2026-10-14
124
459
 
125
460
  **Not yet tried in a host.** No chat client has rendered the view yet — Claude Desktop
126
461
  included; the e2e suite runs it in a test host of its own, and the release installs the
@@ -135,7 +470,7 @@ on one view; the rows stay with the server. Sources are a CSV with schema or a s
135
470
  CSP allows no WebAssembly. Published alone, under the tag `opengrid-mcp-v0.13.0`; from the
136
471
  next release on it comes out with `@casoon/opengrid`, with the same version.
137
472
 
138
- ## [0.13.0] — 2026-10-10
473
+ ## [0.13.0] - 2026-10-10
139
474
 
140
475
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
141
476
  **Browsers:** Chromium (the whole e2e suite: 1155 passed). Firefox and WebKit on Linux (`gh workflow run ci.yml -f browsers=true`): 1141 passed, 19 skipped by design — no failures; the two of [#157](https://github.com/casoon/opengrid/issues/157) are gone.
@@ -194,7 +529,7 @@ level and path. Beside it, two Firefox fixes the new browser run found.
194
529
  stop of its own before the first button. It is out of the tab order now; every button is still
195
530
  reached by `Tab` and scrolls into view.
196
531
 
197
- ## [0.12.0] — 2026-10-09
532
+ ## [0.12.0] - 2026-10-09
198
533
 
199
534
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
200
535
  **Browsers:** Chromium (the whole e2e suite: 1138 passed; a GC test of the Angular example passed on
@@ -236,7 +571,7 @@ bound; the engine is unchanged.
236
571
  `script-src 'self' 'wasm-unsafe-eval'; style-src 'self'` with editing, choices, read-only
237
572
  columns, widths and scrolling.
238
573
 
239
- ## [0.11.0] — 2026-10-08
574
+ ## [0.11.0] - 2026-10-08
240
575
 
241
576
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
242
577
  **Browsers:** Chromium (the whole e2e suite: 1127 passed), WebKit (`just e2e-browsers` on macOS:
@@ -271,7 +606,7 @@ which this release raises (`scripts/module-budget.txt`); the engine is unchanged
271
606
  - States and values name records, so they outlive sorting, filtering and reloading; another
272
607
  `row-key` or `datasource` forgets them. A guide: *Saving edits from the page*.
273
608
 
274
- ## [0.10.0] — 2026-10-02
609
+ ## [0.10.0] - 2026-10-02
275
610
 
276
611
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
277
612
  **Browsers:** Chromium (the whole e2e suite: 1116 passed; the 480 px filter test, a known flake, passed on its own rerun). WebKit and Firefox: **not run** for this release.
@@ -341,7 +676,7 @@ the tree in the grid and in the engine is most of it; `view_query`'s share is 5.
341
676
  `set_formats` built its formatters with `new Function`, which throws without `'unsafe-eval'`. They
342
677
  come from a static snippet now; no code is built at run time.
343
678
 
344
- ## [0.9.0] — 2026-10-01
679
+ ## [0.9.0] - 2026-10-01
345
680
 
346
681
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
347
682
  **Browsers:** Chromium (the whole e2e suite, 1053 passed) and WebKit (Playwright's, not Safari:
@@ -386,7 +721,7 @@ what a browser draws as a table in about a second.
386
721
  with a sentence. The toolbar offers "+ Column" until there are two; `columnFull` reads "Two
387
722
  column fields already". Conformance cases with two column dimensions run on every path.
388
723
 
389
- ## [0.8.1] — 2026-09-30
724
+ ## [0.8.1] - 2026-09-30
390
725
 
391
726
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
392
727
  **Browsers:** Chromium, the whole e2e suite. A fix to the types; nothing breaks.
@@ -398,7 +733,7 @@ what a browser draws as a table in about a second.
398
733
  `View | PivotView`. It is two overloads now: without a type argument the grid's `View`,
399
734
  with one (`get_view<PivotView>(pivot)`) the pivot's.
400
735
 
401
- ## [0.8.0] — 2026-09-30
736
+ ## [0.8.0] - 2026-09-30
402
737
 
403
738
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
404
739
  **Browsers:** Chromium (the whole e2e suite, 1047 passed) and WebKit (Playwright's, not Safari:
@@ -459,7 +794,7 @@ the fields and filtering — each from the keyboard, each part of the view.
459
794
  plus "Remove all". The types come from a pivot the provider already answers (the pivot has no
460
795
  schema of its own). Three new text keys: `pivotFilters`, `pivotFilterLabel`, `pivotFilterHint`.
461
796
 
462
- ## [0.7.2] — 2026-09-30
797
+ ## [0.7.2] - 2026-09-30
463
798
 
464
799
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
465
800
  **Browsers:** Chromium, the whole e2e suite. A fix to the toolbar's column list; nothing breaks.
@@ -473,7 +808,7 @@ the fields and filtering — each from the keyboard, each part of the view.
473
808
  back to the button), a click outside or the button. It no longer opens inline and pushes the
474
809
  toolbar aside.
475
810
 
476
- ## [0.7.1] — 2026-09-30
811
+ ## [0.7.1] - 2026-09-30
477
812
 
478
813
  **Screen-reader pairings tested: none yet** ([issue #5](https://github.com/casoon/opengrid/issues/5)).
479
814
  **Browsers:** Chromium, the whole e2e suite. A fix to the filter row of 0.7.0; nothing breaks.
@@ -484,7 +819,7 @@ the fields and filtering — each from the keyboard, each part of the view.
484
819
  wrote the placeholder `is` into every column it did not filter, so a text column showed
485
820
  *is* instead of *contains*. It is back on its type's default now, as after a reset.
486
821
 
487
- ## [0.7.0] — 2026-09-30
822
+ ## [0.7.0] - 2026-09-30
488
823
 
489
824
  **Screen-reader pairings tested: none yet** — the VoiceOver pass is prepared and not yet run
490
825
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** Chromium and
@@ -509,7 +844,7 @@ menu), the engine unchanged at 115.2 KiB.
509
844
  **What breaks:** `filter-operator` is a `<button>` now, not a `<select>`; a page script that
510
845
  set its `value` sets nothing. The new part `operator-menu` is the menu.
511
846
 
512
- ## [0.6.0] — 2026-09-29
847
+ ## [0.6.0] - 2026-09-29
513
848
 
514
849
  **Screen-reader pairings tested: none yet** — the VoiceOver pass is prepared and not yet run
515
850
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** Chromium, the whole
@@ -588,7 +923,7 @@ Playwright's Firefox does not start on the release machine.
588
923
  couldn't tell from an empty one. The waiting table now carries `aria-busy="true"`, and
589
924
  the table with its answer doesn't.
590
925
 
591
- ## [0.5.0] — 2026-09-28
926
+ ## [0.5.0] - 2026-09-28
592
927
 
593
928
  **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
594
929
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** Chromium, the whole
@@ -658,7 +993,7 @@ engine 122.6 → 124.9 KiB (the resource report's measuring, #70).
658
993
  columns' minimum widths — a column without a width of its own no longer shrinks to a few
659
994
  pixels, the grid scrolls sideways instead.
660
995
 
661
- ## [0.4.0] — 2026-09-28
996
+ ## [0.4.0] - 2026-09-28
662
997
 
663
998
  **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
664
999
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** as in 0.1.0.
@@ -755,7 +1090,7 @@ unchanged): the crate `opengrid-arrow-engine` is now `opengrid-engine`. `load_cs
755
1090
  fail, and `execute::QueryResult` carries a `table`. `opengrid-types` has no `arrow`
756
1091
  feature any more.
757
1092
 
758
- ## [0.3.0] — 2026-09-27
1093
+ ## [0.3.0] - 2026-09-27
759
1094
 
760
1095
  **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
761
1096
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** as in 0.1.0.
@@ -794,7 +1129,7 @@ feature any more.
794
1129
  changes. A page that styled `::part(status)` as a line above the rows finds it in the
795
1130
  footer now.
796
1131
 
797
- ## [0.2.0] — 2026-09-27
1132
+ ## [0.2.0] - 2026-09-27
798
1133
 
799
1134
  **Screen-reader pairings tested: none yet** — unchanged since 0.1.0
800
1135
  ([issue #5](https://github.com/casoon/opengrid/issues/5)). **Browsers:** as in 0.1.0.
@@ -813,7 +1148,7 @@ Replace the import — `from "@casoon/opengrid-react"` becomes
813
1148
  `from "@casoon/opengrid/react"` — and drop the package from `dependencies`. The
814
1149
  components, their props and their events are unchanged.
815
1150
 
816
- ## [0.1.0] — 2026-09-26
1151
+ ## [0.1.0] - 2026-09-26
817
1152
 
818
1153
  The first release: `@casoon/opengrid`, `@casoon/opengrid-react`,
819
1154
  `@casoon/opengrid-vue`, `@casoon/opengrid-svelte` and the `opengrid-*` crates,
@@ -1049,3 +1384,24 @@ tested.
1049
1384
  in all three adapters; Vite's development server only checked by hand; not
1050
1385
  tested: React 18 rendering on the server, SvelteKit, Nuxt, Next.js and Astro
1051
1386
  as real applications. A Vite production build needs `loadOpengrid({ moduleUrl })`.
1387
+
1388
+ [Unreleased]: https://github.com/casoon/opengrid/compare/v0.15.0...HEAD
1389
+ [0.15.0]: https://github.com/casoon/opengrid/compare/v0.14.0...v0.15.0
1390
+ [0.14.0]: https://github.com/casoon/opengrid/compare/v0.13.0...v0.14.0
1391
+ [0.13.0]: https://github.com/casoon/opengrid/compare/v0.12.0...v0.13.0
1392
+ [0.13.0-mcp]: https://github.com/casoon/opengrid/releases/tag/opengrid-mcp-v0.13.0
1393
+ [0.12.0]: https://github.com/casoon/opengrid/compare/v0.11.0...v0.12.0
1394
+ [0.11.0]: https://github.com/casoon/opengrid/compare/v0.10.0...v0.11.0
1395
+ [0.10.0]: https://github.com/casoon/opengrid/compare/v0.9.0...v0.10.0
1396
+ [0.9.0]: https://github.com/casoon/opengrid/compare/v0.8.1...v0.9.0
1397
+ [0.8.1]: https://github.com/casoon/opengrid/compare/v0.8.0...v0.8.1
1398
+ [0.8.0]: https://github.com/casoon/opengrid/compare/v0.7.2...v0.8.0
1399
+ [0.7.2]: https://github.com/casoon/opengrid/compare/v0.7.1...v0.7.2
1400
+ [0.7.1]: https://github.com/casoon/opengrid/compare/v0.7.0...v0.7.1
1401
+ [0.7.0]: https://github.com/casoon/opengrid/compare/v0.6.0...v0.7.0
1402
+ [0.6.0]: https://github.com/casoon/opengrid/compare/v0.5.0...v0.6.0
1403
+ [0.5.0]: https://github.com/casoon/opengrid/compare/v0.4.0...v0.5.0
1404
+ [0.4.0]: https://github.com/casoon/opengrid/compare/v0.3.0...v0.4.0
1405
+ [0.3.0]: https://github.com/casoon/opengrid/compare/v0.2.0...v0.3.0
1406
+ [0.2.0]: https://github.com/casoon/opengrid/compare/v0.1.0...v0.2.0
1407
+ [0.1.0]: https://github.com/casoon/opengrid/releases/tag/v0.1.0
package/README.md CHANGED
@@ -50,6 +50,21 @@ The package holds the elements and the query engine. With a bundler, import from
50
50
  `@casoon/opengrid`; without one, see
51
51
  [Installation](https://github.com/casoon/opengrid/blob/main/docs/getting-started/installation.mdx).
52
52
 
53
+ ### Rust crates
54
+
55
+ The engine and the server are on crates.io, one crate per layer. They carry the same version
56
+ as the npm package, so give every `opengrid-*` crate the same one:
57
+
58
+ ```toml
59
+ [dependencies]
60
+ opengrid-server = "0.15" # the gateway, as a library
61
+ opengrid-connector-sqlite = "0.15" # or opengrid-datasource-postgres
62
+ opengrid-engine = "0.15" # the engine alone, native
63
+ ```
64
+
65
+ While the version is 0.x, a minor bump may break the Rust API
66
+ ([releasing](https://github.com/casoon/opengrid/blob/main/docs/releasing.md)).
67
+
53
68
  ## Data in the browser
54
69
 
55
70
  The engine reads a CSV against a schema — it never guesses types.
@@ -160,7 +175,7 @@ shown with `get_pivot`. See [Export](https://github.com/casoon/opengrid/blob/mai
160
175
  - [Guides](https://github.com/casoon/opengrid/tree/main/docs/guides) and the
161
176
  [project page](https://casoon.github.io/opengrid/)
162
177
  - [In a chat client](https://github.com/casoon/opengrid/blob/main/docs/guides/mcp.md) —
163
- the grid as an MCP App, `@casoon/opengrid-mcp` (not released yet)
178
+ the grid as an MCP App, [`@casoon/opengrid-mcp`](https://www.npmjs.com/package/@casoon/opengrid-mcp)
164
179
 
165
180
  ## Accessible and machine-readable: the aim
166
181
 
Binary file