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
23 changes: 0 additions & 23 deletions .changeset/invalid-derivations-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.13.1

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

## 0.13.1

### Patch Changes

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

The compiler's validation error was thrown synchronously out of the derivations
layout effect, so it escaped the commit and React unmounted the grid subtree —
measured as group rows 1 → 0 and a container of 0 bytes. Both doors into the
derivations seam were fatal: a bad `aggregate` written through
`setColumnAggregate`, and — the one every consumer can reach, with no pane, no
grouping state and no knowledge of this feature — a bad `aggregate` on the
`columns` prop on update.

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

Mount still throws, deliberately: there is no running grid to protect and a hard
error surfaces a config bug at its cheapest moment.

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

## 0.13.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.13.0",
"version": "0.13.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.13.1

## 0.13.0

## 0.12.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.13.0",
"version": "0.13.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.13.1

## 0.13.0

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