Skip to content

Releases: juliencrn/usehooks-ts

usehooks-ts@2.12.0

01 Feb 14:34
Compare
Choose a tag to compare

Minor Changes

Patch Changes

usehooks-ts@2.11.0

31 Jan 20:26
Compare
Choose a tag to compare

Minor Changes

  • add1431: Created useUnmount hook
  • add1431: Created useDebounceCallback and useDebounceValue hooks
  • add1431: Depreciated useDebounce hook (replaced by useDebounceCallback or useDebounceValue)
  • fc8a30e: Fix hydration issues in both useScreen and useMediaQuery (Fixes #394, thanks to @bryantcodesart)
  • 4a9fc88: Introduce the SSR-friendly new optional { initializeWithValue?: boolean } parameter to useLocalStorage, useReadLocalStorage, useSessionStorage, useDarkMode, useTernaryDarkMode, useMediaQuery, useScreen, useWindowSize and useElementSize, see #451.
  • 5c210c1: Add defaultValue option to useTernaryDarkMode and update its signature (using function overload for smooth migration)
  • 5c210c1: Update useDarkMode signature (using function overload for smooth migration)
  • 0321342, 4a9fc88: Drop Map, Set and Date supports in use*Storage hooks, it isn't compatible with useReadLocalStorage making the API un-consistent. Use a custom serializer/deserializer instead.

Patch Changes

  • add1431: Upgrade dependencies
  • a192167: Upgraded react and @testing-library/react (thanks to @TheHaff)
  • 0321342: Make Typescript and @typescript-eslint stricter to catch bugs sooner
  • 382161a: Depreciate useImageOnLoad, too opinionated
  • 382161a: Add JSdoc comments to improve DX via in-IDE documentation
  • a192167: Migrate from jest to vitest (making test-suite execution 2 times faster)

usehooks-ts@2.10.0

25 Jan 12:54
Compare
Choose a tag to compare

2.10.0

Minor Changes

  • 8f3c90f: Enable setting localStorage key for useDarkTheme & useTernaryDarkMode (#298 by @ubarbaxor)
  • ae47c9a: Expose setting dark mode value directly (#299 by ubarbaxor)
  • 771afa5: Add serialization support for use-*-storage hooks

Patch Changes

usehooks-ts@2.9.5

18 Jan 15:10
Compare
Choose a tag to compare

Fixed

Updated

  • 60da216: use named exports instead of default exports
  • 5611309: added export map in package.json (CJS/ESM support)
  • 7141d01: Upgrade internal dependencies
  • 3588427: Add a comment in useMediaQuery (#402)

usehooks-ts@2.9.1

13 Oct 19:08
Compare
Choose a tag to compare

Fixes

  • fix hard-coded useLockedBody anchor id
  • useEventListener passes options to removeEventListener (#235 by @marnusw)
  • rename useBoolean, useCounter, useLockedBody and useSidebar hooks ReturnType to Output (#234 by @valentinpolitov)

usehooks-ts@2.9.0

13 Oct 01:35
Compare
Choose a tag to compare

Fixes

  • Transpile commonjs to es5 and esm to es6 (fixes #232)

usehooks-ts@2.8.0

13 Oct 01:03
Compare
Choose a tag to compare

Added

  • Added useToggle
  • Added options in useScript (#203, #197 by @curtvict)
  • Added media query support to useEventListener (#194 from @modex98)

Updated

  • Remove unnecessary import React from "react"

Fixes

usehooks-ts@2.7.2

30 Sep 18:27
Compare
Choose a tag to compare

Added

Updated

  • Removed import React line (not needed since react 17)

Fixes

usehooks-ts@2.7.1

22 Sep 15:05
Compare
Choose a tag to compare

Added

Updated

  • Remove hooks index files
  • Remove source-map

usehooks-ts@2.7.0

19 Sep 18:05
Compare
Choose a tag to compare

Updated

  • Move usehooks-ts to the root
  • Simplify config files (removing some tools)
  • Split the documentation website from the workspace
  • Regroup hooks related files together (test, doc, demo, hook)
  • Upgrade dependencies

See: #208