v2.2.0
Added
9 new SSR-safe Svelte 5 hooks: useEventListener, useResizeObserver / useElementSize, useScrollLock, useFocusTrap, useLocalStorage, useThrottle, useIntersectionObserver, useTimeout / useInterval, useDebouncedState.
Fixed
- Packaging —
dist/*.sveltenow 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