Releases: juliencrn/usehooks-ts
Releases · juliencrn/usehooks-ts
[email protected]
Minor Changes
- 06dfd5e: Add
remove
function touseLocalStorage
anduseSessionStorage
(@k-melnychuk & @RubyHuntsman)
Patch Changes
- e62c41f: Restoration of the
useTernaryDarkMode
related types (@soullivaneuh) - 90a33f5: fix: reject non-boolean value as a
defaultValue
foruseBoolean
(@luckrnx09) - 7ba7e3a: test reset for
useCounter
(#570 by @luckrnx09)
[email protected]
Patch Changes
- b14db5b: Add support for focus event to
useOnClickOutside
(Fixes: #522) - 59c0b93: Add SVG element support to
useEventListener
(#546 by @LumaKernel) - b14db5b: Expose
AddEventListenerOptions
inuseOnClickOutside
(Fixes #554 from @metav-drimz) - b14db5b: Support missing refs in
useOnClickOutside
(Fixes: #531) - 09341a3: feat(useEventCallback): allow optional callback (#550 by @Newbie012)
[email protected]
Patch Changes
- Fix: Update exported files
[email protected]
[email protected]
Minor Changes
Patch Changes
- d881f08: Add
isLocked
state to theuseScrollLock
return (#521 by @kyrylo-soulandwolf) - fc25779: Resolve warning when using
useScrollLock
in an SSR environment (#521 by @kyrylo-soulandwolf) - d42741f: Wrap
useCountdown
methods withuseCallback
(from #326 by @gromchen) - d42741f: Wrap
useCounter
methods withuseCallback
(from #326 by @gromchen) - d881f08: Fixed
useScrollLock
leaving inline styles (#516 from @novacdenis) - 0d99db9: chore(deps): update all non-major dependencies
- d881f08: Fixed reflow not considering the padding before the lock (#521 by @kyrylo-soulandwolf)
[email protected]
[email protected]
Minor Changes
- 649ef39: ✨ Feature: add
useScrollLock
hook (#479 by @BlankParticle)
Patch Changes
- 649ef39: Deprecated
useLockedBody
replaced byuseScrollLock
- 6514683: Fix
useMediaQuery
by defininggetMatches
before use (#494 by @ymc-maha) - d8d8e5d: Upgrade dependencies
Additional
- Improved the doc introduction page
- Updated all contributor list
- Added regular contributing guide
[email protected]
[email protected]
Minor Changes
- 87a5141: Improve
useOnClickOutside
: - 87ba579: Fix SSR hooks by fallback with default or initial value instead of
undefined
- f39078f: Updated
useIntersectionObserver
API and fixed #395, #271 and #182, see #464. - a444ba7: Depreciated
useElementSize
replaced byuseResizeObserver
- e807ab3: Create
useResizeObserver
hook
Patch Changes
- b5b9e1f: chore: Updated dependencies
- 4146c39: fix:
useScript
failed to remove script from cache when passingremoveOnUnmount
prop (#354 by @ShanSenanayake) - bdf7bda: Add eslint rules to comply with
verbatimModuleSyntax
to avoid side-effects - 6b582de: use
tsup
as bundler instead of transpiling with tsc (@BlankParticle) - be8c35b: Fix
useScreen
is not rerendering on screen resize (#280 by @philipgher)
[email protected]
Patch Changes
- Don't remove comments during package build to keep JSdoc comments