Skip to content

chore: update versions - #209

Open
adara-cloud-ci wants to merge 1 commit into
mainfrom
changeset-release/main
Open

chore: update versions#209
adara-cloud-ci wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@adara-cloud-ci

@adara-cloud-ci adara-cloud-ci commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

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

@vega-ui/hooks@2.6.0

Minor Changes

  • a89803a: Enable react-hooks lint rules repo-wide; fix all stale-closure findings; add useEventCallback

    eslint-plugin-react-hooks was installed but none of its rules were enabled — the class of bugs behind the recent Slider and Calendar stale closures was invisible to CI. rules-of-hooks and exhaustive-deps now run as errors (with rules-of-hooks off for Storybook CSF render functions, which are false positives).

    • new @vega-ui/hooks export: useEventCallback — a stable-identity wrapper that always calls the latest handler (the industry "latest ref" pattern à la MUI/Radix/Floating UI), throws in development if called during render
    • useScrollSnap: onSnapChanging/onSnapChange/getSnapPoint go through useEventCallback, so inline consumer callbacks no longer resubscribe the scrollend listener and observers on every render; the remaining deps are honest
    • Calendar: onSelectDay no longer freezes the first onChange — it reads the latest callback through useEventCallback while keeping a stable identity (regression-tested by swapping onChange between renders)
    • NumberField: decrement no longer clamps against a stale max; the native non-passive wheel listener is attached only while changeOnWheel is enabled and no longer resubscribes when min/max/step or the value change
    • useSelection: a consumer-provided resolveRange no longer cascades identity changes into select/expand/toggle
    • Collapsible: onChangeHidden fires only when hidden actually changes — an inline callback no longer re-triggers the notification effect on every parent render
    • all remaining findings were stable-value dependencies added for free, plus three documented intentional suppressions (useMutationObserver per-field options deps, createContext shallow-by-value memoization, SnapScrollerContent unmount-only unregistration)

Patch Changes

  • @vega-ui/utils@2.6.0

@vega-ui/theme-core@2.6.0

Patch Changes

  • @vega-ui/tokens-core@2.6.0

@vega-ui/react@2.6.0

Patch Changes

  • 5603707: Changed badge colors to WCAG

  • a89803a: Enable react-hooks lint rules repo-wide; fix all stale-closure findings; add useEventCallback

    eslint-plugin-react-hooks was installed but none of its rules were enabled — the class of bugs behind the recent Slider and Calendar stale closures was invisible to CI. rules-of-hooks and exhaustive-deps now run as errors (with rules-of-hooks off for Storybook CSF render functions, which are false positives).

    • new @vega-ui/hooks export: useEventCallback — a stable-identity wrapper that always calls the latest handler (the industry "latest ref" pattern à la MUI/Radix/Floating UI), throws in development if called during render
    • useScrollSnap: onSnapChanging/onSnapChange/getSnapPoint go through useEventCallback, so inline consumer callbacks no longer resubscribe the scrollend listener and observers on every render; the remaining deps are honest
    • Calendar: onSelectDay no longer freezes the first onChange — it reads the latest callback through useEventCallback while keeping a stable identity (regression-tested by swapping onChange between renders)
    • NumberField: decrement no longer clamps against a stale max; the native non-passive wheel listener is attached only while changeOnWheel is enabled and no longer resubscribes when min/max/step or the value change
    • useSelection: a consumer-provided resolveRange no longer cascades identity changes into select/expand/toggle
    • Collapsible: onChangeHidden fires only when hidden actually changes — an inline callback no longer re-triggers the notification effect on every parent render
    • all remaining findings were stable-value dependencies added for free, plus three documented intentional suppressions (useMutationObserver per-field options deps, createContext shallow-by-value memoization, SnapScrollerContent unmount-only unregistration)
  • b5afed6: Changed badge ghost colors

  • Updated dependencies [a89803a]

    • @vega-ui/hooks@2.6.0
    • @vega-ui/icons@2.6.0
    • @vega-ui/react-context@2.6.0
    • @vega-ui/utils@2.6.0

@vega-ui/icons@2.6.0

@vega-ui/react-context@2.6.0

@vega-ui/tokens-core@2.6.0

@vega-ui/utils@2.6.0

@adara-cloud-ci
adara-cloud-ci force-pushed the changeset-release/main branch 2 times, most recently from 1f39b16 to 6d6fc32 Compare July 6, 2026 18:10
@adara-cloud-ci
adara-cloud-ci force-pushed the changeset-release/main branch from 6d6fc32 to dccf0fb Compare July 15, 2026 22:21
@adara-cloud-ci
adara-cloud-ci force-pushed the changeset-release/main branch from dccf0fb to 014ec7b Compare July 27, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant