Repository navigation
feat(core)!: remove deprecated APIs for 0.6 - #6118
Merged
Merged
Conversation
cixzhang
requested review from
imdreamrunner and
josephfarina
as code owners
September 7, 2026 15:20
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
September 7, 2026 15:21
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsBottomSheet (@astryxdesign/core) · View in Storybook
Layout (@astryxdesign/core) · View in Storybook
Resizable (@astryxdesign/core) · View in Storybook
SideNav (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual RegressionStatus: Skipped — Broad stable scope is deferred to the daily release gate. It covers 380 trusted baseline shots instead of recapturing them for this PR. View the report Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
Contributor
Author
|
/approve-spec 47a182f |
cixzhang
added a commit
that referenced
this pull request
Sep 7, 2026
Nine commits, no conflicts. Two touched files this branch also changes, both auto-merged cleanly and re-read by hand: - ci.yml gained a tooling_only lane (#6112, #6113) and moved the heavier test lane to a larger runner (#6080). The tooling lane is an exact two-file allowlist in change-scope.cjs, so it cannot claim this PR, and the accessibility additions — the widened check-components filter, the a11y-spec typecheck step, and the test:a11y-contract step in pr-a11y — all survived the merge intact; - deploy.yml's a11y-spec typecheck step is intact. The 0.6 breaking change (#6118) removes deprecated focus-hook options, an isImeKeyEvent re-export, and useResizable pixel bounds. Nothing under Switch, the stories, or internal/a11y-spec references any of them.
This branch was successfully deployed
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.
Summary
Remove the explicitly deprecated Core APIs selected for the Astryx 0.6 breaking window:
UseGridFocusOptions.isRtlandUseListFocusOptions.isRtl; both hooks now rely exclusively on their existing lazy container-direction detection.isImeKeyEventfrom@astryxdesign/core/hooks; the canonical@astryxdesign/core/utilsand package-root exports remain.minSizePxandmaxSizePx; numericminSizeandmaxSizepreserve pixel semantics, includingmaxSize: Infinity.All first-party callers, examples, stories, and docs are migrated. AST-010 and the Resizable contract now describe the shipped 0.6 surface.
Migration
Run before updating:
Three staged next-release transforms:
isRtloptions from inlineuseGridFocus/useListFocuscalls.isImeKeyEventimports fromcore/hookstocore/utils.useResizableminSizePx/maxSizePxkeys, including multi-region configs.The transforms preserve side-effect imports, handle existing value/type-only/namespace imports safely, respect lexical shadowing, preserve shorthand values, and keep the released new-key-wins conflict behavior.
Compatibility
This is intentionally breaking relative to Core 0.5.4 and carries a
[breaking]Core changeset (minor bump while Astryx is 0.x). The CLI codemods carry a separate patch changeset.Testing
useResizable, andResizeHandle.pnpm -F @astryxdesign/core typecheckpnpm -F @astryxdesign/cli typecheck:strictpnpm -F @astryxdesign/core buildpnpm check:repo