chore: version packages - #546
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
blove
enabled auto-merge (squash)
August 31, 2026 00:19
blove
force-pushed
the
changeset-release/main
branch
from
August 31, 2026 00:28
2d6376f to
34df6e0
Compare
Contributor
Vercel preview readyPreview: https://pretable-4is0w4fv1-cacheplane.vercel.app Updated automatically by the |
blove
force-pushed
the
changeset-release/main
branch
from
August 31, 2026 00:38
34df6e0 to
2765733
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@pretable/core@0.13.0
Minor Changes
autosizeColumns()becomessetAllColumnsAutoWidth(auto), and undeclared columns have one default width. (#542)The rename. The grid handle's
autosizeColumns()never sized anything to content — it put every column into the auto-width set, the mode bit that says "the grid manages this column's width". Nothing in the column-width path measures a cell. It is nowgrid.setAllColumnsAutoWidth(auto: boolean), symmetric with the per-columnsetColumnAutoWidth(columnId, auto)that shipped alongside the tool panel, and it moves the roster in BOTH directions —falsefreezes every column at the engine's stored width, which the old name could not express. The surface'sautosize?: boolean | AutosizeOptionsprop is likewiseallColumnsAutoWidth?: boolean, and theAutosizeOptionstype is gone from both packages: it was a tuning bag (averageCharWidth,cellPaddingPx, min/max) for a measurement pass that does not exist, so every field was inert.One default width. A column that declares no
widthPxwas drawn by the renderer at 140px but STORED by the engine at 160px, so turning auto width off on a never-resized column jumped its width 140 → 160 for no reason a user could see. Both numbers now come from one shared constant (140, and 220 for awrap: "text"column) and the engine seeds its stored width through the renderer's own resolver, so the freeze lands on the pixel the column was already drawing. 140 won because it is what undeclared columns have always painted at — no grid repaints as a result of this change.A double-click that does something. Double-clicking a column's resize handle was wired to a no-op. It now calls
setColumnAutoWidth(columnId, true), the pointer shortcut for handing that column's width back to the grid, which is what the docs had claimed all along. It no longer firesonColumnWidthsChange: that callback reports the engine's STORED widths, and handing a column to the grid moves none of them — the notification announced a change that had not happened.Fixed: auto width did not survive a controlled
state.columnWidths.setColumnWidthcleared a column's auto bit unconditionally, and a controlled consumer replays its whole widths map throughsetColumnWidthon every write-back pass. So any re-render of such a consumer silently took every column in the map back out of the auto set — the tool panel's Auto width toggle and the resize handle's double-click both appeared to work and were undone before paint. The bit is now cleared only when the write actually MOVES the stored width, compared across grid-core's own min/max clamping rather than against the requested number. This is a user-visible fix to behavior that shipped with the tool panel's auto-width toggle, not a consequence of the rename.@pretable/react@0.13.0
Minor Changes
autosizeColumns()becomessetAllColumnsAutoWidth(auto), and undeclared columns have one default width. (#542)The rename. The grid handle's
autosizeColumns()never sized anything to content — it put every column into the auto-width set, the mode bit that says "the grid manages this column's width". Nothing in the column-width path measures a cell. It is nowgrid.setAllColumnsAutoWidth(auto: boolean), symmetric with the per-columnsetColumnAutoWidth(columnId, auto)that shipped alongside the tool panel, and it moves the roster in BOTH directions —falsefreezes every column at the engine's stored width, which the old name could not express. The surface'sautosize?: boolean | AutosizeOptionsprop is likewiseallColumnsAutoWidth?: boolean, and theAutosizeOptionstype is gone from both packages: it was a tuning bag (averageCharWidth,cellPaddingPx, min/max) for a measurement pass that does not exist, so every field was inert.One default width. A column that declares no
widthPxwas drawn by the renderer at 140px but STORED by the engine at 160px, so turning auto width off on a never-resized column jumped its width 140 → 160 for no reason a user could see. Both numbers now come from one shared constant (140, and 220 for awrap: "text"column) and the engine seeds its stored width through the renderer's own resolver, so the freeze lands on the pixel the column was already drawing. 140 won because it is what undeclared columns have always painted at — no grid repaints as a result of this change.A double-click that does something. Double-clicking a column's resize handle was wired to a no-op. It now calls
setColumnAutoWidth(columnId, true), the pointer shortcut for handing that column's width back to the grid, which is what the docs had claimed all along. It no longer firesonColumnWidthsChange: that callback reports the engine's STORED widths, and handing a column to the grid moves none of them — the notification announced a change that had not happened.Fixed: auto width did not survive a controlled
state.columnWidths.setColumnWidthcleared a column's auto bit unconditionally, and a controlled consumer replays its whole widths map throughsetColumnWidthon every write-back pass. So any re-render of such a consumer silently took every column in the map back out of the auto set — the tool panel's Auto width toggle and the resize handle's double-click both appeared to work and were undone before paint. The bit is now cleared only when the write actually MOVES the stored width, compared across grid-core's own min/max clamping rather than against the requested number. This is a user-visible fix to behavior that shipped with the tool panel's auto-width toggle, not a consequence of the rename.Patch Changes
d53bc8d]:@pretable/stream-adapter@0.13.0
@pretable/ui@0.13.0