Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .changeset/local-rows-rejected-write.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @pretable/core

## 0.14.3

## 0.14.2

## 0.14.1
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pretable/core",
"version": "0.14.2",
"version": "0.14.3",
"description": "Framework-agnostic grid state primitives for Pretable.",
"license": "MIT",
"repository": {
Expand Down
30 changes: 30 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @pretable/react

## 0.14.3

### Patch Changes

- `useLocalRowModel` now treats an invalid `rows` or `derivations` update as a ([#559](https://github.com/cacheplane/pretable/pull/559))
rejected write rather than a fatal one, matching `usePretable`. A bad row (a
duplicate id, a throwing accessor, a missing or non-scalar id, a null row)
previously threw out of a layout effect and unmounted whatever subtree renders
the model. The model now keeps the rows it already had and warns once, and a
later valid `rows` array recovers.

The caveats are the ones `usePretable` carries: the model can stay diverged
from your data indefinitely, the warning latches per fault kind, and there is
no API to ask whether the rows it reports match the ones you passed. Treat the
warning as the signal. Its key is prefixed `local-` so a rejection here can
never be silenced by — or mistaken for — one from `usePretable`.

This supersedes the closing note in 0.14.2, which recorded that
`useLocalRowModel` was still fatal. That was accurate when it shipped; it is no
longer.

A lifecycle fault still propagates: writing to a disposed model, re-entering a
mutation, or any row-model code this guard has not been taught about reaches
you as a throw. So does an invalid `rows` option at MOUNT, which is built
during render and never reaches the guarded effect.

- Updated dependencies []:
- @pretable/core@0.14.3
- @pretable/ui@0.14.3

## 0.14.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pretable/react",
"version": "0.14.2",
"version": "0.14.3",
"description": "React components and hooks for Pretable.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/stream-adapter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @pretable/stream-adapter

## 0.14.3

## 0.14.2

## 0.14.1
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pretable/stream-adapter",
"version": "0.14.2",
"version": "0.14.3",
"description": "Streaming row adapters for Pretable.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @pretable/ui

## 0.14.3

## 0.14.2

## 0.14.1
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pretable/ui",
"version": "0.14.2",
"version": "0.14.3",
"description": "CSS themes, tokens, and grid styles for Pretable.",
"license": "MIT",
"repository": {
Expand Down