diff --git a/.changeset/invalid-derivations-rejected.md b/.changeset/invalid-derivations-rejected.md deleted file mode 100644 index bf323174d..000000000 --- a/.changeset/invalid-derivations-rejected.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -"@pretable/react": patch ---- - -An invalid `aggregate` arriving after mount is a rejected write, not a destroyed -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. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 50948d747..97acb8273 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,7 @@ # @pretable/core +## 0.13.1 + ## 0.13.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index ad7b4a74b..b9d1c5778 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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": { diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 02c53fc11..7655ddb0f 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -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 diff --git a/packages/react/package.json b/packages/react/package.json index b9f8116e1..149597126 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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": { diff --git a/packages/stream-adapter/CHANGELOG.md b/packages/stream-adapter/CHANGELOG.md index 6718a843c..513b92b06 100644 --- a/packages/stream-adapter/CHANGELOG.md +++ b/packages/stream-adapter/CHANGELOG.md @@ -1,5 +1,7 @@ # @pretable/stream-adapter +## 0.13.1 + ## 0.13.0 ## 0.12.1 diff --git a/packages/stream-adapter/package.json b/packages/stream-adapter/package.json index 26641dd36..4c00d9c76 100644 --- a/packages/stream-adapter/package.json +++ b/packages/stream-adapter/package.json @@ -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": { diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index d5993cd14..9dac477d8 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,7 @@ # @pretable/ui +## 0.13.1 + ## 0.13.0 ## 0.12.1 diff --git a/packages/ui/package.json b/packages/ui/package.json index 3a9dbe342..65df98dfe 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -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": {