Skip to content

v2.2.0

Choose a tag to compare

@ndlabdev ndlabdev released this 24 Jun 11:48
ab43e29

Added

9 new SSR-safe Svelte 5 hooks: useEventListener, useResizeObserver / useElementSize, useScrollLock, useFocusTrap, useLocalStorage, useThrottle, useIntersectionObserver, useTimeout / useInterval, useDebouncedState.

Fixed

  • Packagingdist/*.svelte now ships as plain JS (TypeScript preprocessed), fixing parse errors with strict bundlers like Rolldown / Vite 8 (optimizeDeps + SSR). (#138)
  • SelectMenu — fixed hydration_mismatch (trigger is now a <div role="button"> — select it via [data-combobox-trigger]), aria-hidden on the focused combobox input, and a blocked autofocus.
  • DropdownMenu / ContextMenu — checkbox/radio checked indicator icon sized to its slot.

Changed

  • Internal hook consolidation + dogfooding (Table / PinInput / SelectMenu); hooks barrel uses export *.

Full changelog: https://github.com/ndlabdev/sv5ui/blob/main/CHANGELOG.md