Skip to content

Commit 5f652db

Browse files
authored
chore: version packages (#565)
1 parent 5f39cfe commit 5f652db

9 files changed

Lines changed: 41 additions & 28 deletions

File tree

.changeset/rejected-writes-public-api.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @pretable/core
22

3+
## 0.15.0
4+
35
## 0.14.4
46

57
## 0.14.3

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pretable/core",
3-
"version": "0.14.4",
3+
"version": "0.15.0",
44
"description": "Framework-agnostic grid state primitives for Pretable.",
55
"license": "MIT",
66
"repository": {

packages/react/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# @pretable/react
22

3+
## 0.15.0
4+
5+
### Minor Changes
6+
7+
- The grid can now tell you when its rendered data no longer matches what you ([#564](https://github.com/cacheplane/pretable/pull/564))
8+
passed. Since invalid `rows`, `derivations`, and `query` updates became
9+
rejected writes, the grid kept its last-good value and stayed alive — but the
10+
only signal was a console warning that latches per fault kind, and there was
11+
no API to ask whether the rendered rows match the ones you passed. Now there
12+
is:
13+
14+
- `model.rejectedWrites` (on `usePretable`'s return) is a per-kind record:
15+
`{ rows, derivations, query }`, each `null` when in sync or
16+
`{ kind, code, message, columnId? }` describing the most recent rejection.
17+
Nothing latches — every rejection replaces the record — and a slot clears
18+
on its own when a valid value lands.
19+
- `onRejectedWriteChange` on `PretableSurface` (and `LabeledGridSurface`)
20+
fires on every transition, including recovery, so a direct-Surface consumer
21+
can render a banner, retry, or fall back.
22+
- Rejections in `useLocalRowModel` (rows and derivations) surface through the
23+
same record, so model-mode consumers get the same answer.
24+
25+
Console warnings are unchanged. Fatal faults (`disposed-model`,
26+
`reentrant-mutation`, foreign errors) still throw.
27+
28+
### Patch Changes
29+
30+
- Updated dependencies []:
31+
- @pretable/core@0.15.0
32+
- @pretable/ui@0.15.0
33+
334
## 0.14.4
435

536
### Patch Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pretable/react",
3-
"version": "0.14.4",
3+
"version": "0.15.0",
44
"description": "React components and hooks for Pretable.",
55
"license": "MIT",
66
"repository": {

packages/stream-adapter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @pretable/stream-adapter
22

3+
## 0.15.0
4+
35
## 0.14.4
46

57
## 0.14.3

packages/stream-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pretable/stream-adapter",
3-
"version": "0.14.4",
3+
"version": "0.15.0",
44
"description": "Streaming row adapters for Pretable.",
55
"license": "MIT",
66
"repository": {

packages/ui/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @pretable/ui
22

3+
## 0.15.0
4+
35
## 0.14.4
46

57
## 0.14.3

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pretable/ui",
3-
"version": "0.14.4",
3+
"version": "0.15.0",
44
"description": "CSS themes, tokens, and grid styles for Pretable.",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)