Skip to content

Commit 886187f

Browse files
chore: version packages (#360)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6a86223 commit 886187f

13 files changed

Lines changed: 51 additions & 21 deletions

File tree

‎.changeset/lucky-cameras-repeat.md‎

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

‎apps/bench/CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @pretable/app-bench
22

3+
## 0.0.28
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6a86223`](https://github.com/cacheplane/pretable/commit/6a86223cd43726f4e8f9fc4e393e9b06a4a18317)]:
8+
- @pretable/react@0.6.2
9+
- @pretable/stream-adapter@0.6.2
10+
- @pretable/ui@0.6.2
11+
312
## 0.0.27
413

514
### Patch Changes

‎apps/bench/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pretable/app-bench",
33
"private": true,
4-
"version": "0.0.27",
4+
"version": "0.0.28",
55
"description": "Pretable benchmark lab and browser test target.",
66
"license": "MIT",
77
"type": "module",

‎apps/website/CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @pretable/app-website
22

3+
## 0.0.28
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6a86223`](https://github.com/cacheplane/pretable/commit/6a86223cd43726f4e8f9fc4e393e9b06a4a18317)]:
8+
- @pretable/react@0.6.2
9+
- @pretable/core@0.6.2
10+
- @pretable/stream-adapter@0.6.2
11+
- @pretable/ui@0.6.2
12+
313
## 0.0.27
414

515
### Patch Changes

‎apps/website/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pretable/app-website",
3-
"version": "0.0.27",
3+
"version": "0.0.28",
44
"private": true,
55
"description": "Pretable documentation and marketing site.",
66
"license": "MIT",

‎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.6.2
4+
35
## 0.6.1
46

57
## 0.6.0

‎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.6.1",
3+
"version": "0.6.2",
44
"description": "Framework-agnostic grid state primitives for Pretable.",
55
"license": "MIT",
66
"repository": {

‎packages/react/CHANGELOG.md‎

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

3+
## 0.6.2
4+
5+
### Patch Changes
6+
7+
- Measure the grid font's average character width instead of guessing 7px for every font. ([#358](https://github.com/cacheplane/pretable/pull/358))
8+
9+
The row-height estimator models a font as a single number — pixels per character — and wraps with `charsPerLine = floor(width / averageCharWidth)`. Nothing ever measured that number. `prepareText` inferred it by pattern-matching a font-key string, and the key the estimator passed was the literal `"Pretable Estimate 14"`, which matched none of its patterns. Every pretable grid, in every font, silently estimated at 7px per character.
10+
11+
React now measures the real value once per font with a single `canvas.measureText` call — no layout, no reflow, nothing inserted into the document — reading the computed font from an already-rendered cell and using that cell's own text as the sample. The result is threaded to the row-layout controller alongside `defaultRowHeight`. The estimator also learns a grid's real chrome and non-text floor from measurements it already takes.
12+
13+
Measured against 48 real rows captured in Chromium, mean absolute height error falls from 11.52px to 8.69px from the measured width, and to 6.85px with the learned terms applied.
14+
15+
Line-count prediction regresses in the same change: 43/48 correct at the guessed 7px, 37/48 at the measured 6.505px. The cause is a separate, untouched bug — `predictRowLineCount` wraps at the full column width and never deducts the cell's horizontal padding, over-stating characters per line. The old 7px guess over-stated character width by roughly the same factor, and the two errors cancelled. Measuring honestly removed one half of that accident and exposed the other; the padding bug is filed as a follow-up.
16+
17+
Where no canvas is available — server rendering, jsdom — the measurement returns `null` and estimates are byte-identical to before.
18+
19+
- Updated dependencies []:
20+
- @pretable/core@0.6.2
21+
- @pretable/ui@0.6.2
22+
323
## 0.6.1
424

525
### 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.6.1",
3+
"version": "0.6.2",
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.6.2
4+
35
## 0.6.1
46

57
## 0.6.0

0 commit comments

Comments
 (0)