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
24 changes: 0 additions & 24 deletions .changeset/invalid-query-rejected.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.1

## 0.14.0

### Minor Changes
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.0",
"version": "0.14.1",
"description": "Framework-agnostic grid state primitives for Pretable.",
"license": "MIT",
"repository": {
Expand Down
29 changes: 29 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @pretable/react

## 0.14.1

### Patch Changes

- An invalid `query` arriving on the prop after mount is a rejected write, not a ([#553](https://github.com/cacheplane/pretable/pull/553))
destroyed grid.

The compiler's validation error was thrown synchronously out of the same layout
effect that already guards derivations, so it escaped the commit and React
unmounted the grid subtree — measured as rows 3 → 0 and a container of 0 bytes.
Two faults reach it, both from an ordinary `query` prop: a filter whose operator
requires an operand and has none, and a `rowGroups` entry naming a column the
model does not have.

The update is now rejected whole: the row model keeps the query it already had,
the grid stays interactive and keeps painting the rows that query selected, and a
later valid query still lands. The rejection is reported through `warnOnce`, keyed
on the column, the fault location and the detail, so a second, different fault
still warns instead of being swallowed by the first one's latch.

Two throws are deliberate and unchanged. Mount still throws: there is no running
grid to protect, and a hard error surfaces a config bug at its cheapest moment.
An uncontrolled `grid.setQuery` still throws synchronously to its caller, who
asked for the write, can catch it, and whose grid survives either way.

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

## 0.14.0

### Minor 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.0",
"version": "0.14.1",
"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.1

## 0.14.0

## 0.13.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.0",
"version": "0.14.1",
"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.1

## 0.14.0

## 0.13.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.0",
"version": "0.14.1",
"description": "CSS themes, tokens, and grid styles for Pretable.",
"license": "MIT",
"repository": {
Expand Down