Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usehooks-ts 2.9.5 → 2.14.0 (minor) #325

Closed
wants to merge 1 commit into from

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Feb 16, 2024

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ usehooks-ts (2.9.5 → 2.14.0) · Repo · Changelog

Release Notes

2.14.0 (from changelog)

Minor Changes

  • d60f1c6: Added debounce option to both useScreen and useWindowSize

Patch Changes

  • 7d74e09: Release documentation for useEventCallback
  • 2660580: Depreciated useFetch, see documentation for more information
  • bc3f967: Deprecated useEffectOnce, useIsFirstRender and useUpdateEffect

2.13.0 (from changelog)

Minor Changes

  • 87a5141: Improve useOnClickOutside:

    • Prevent handling callback when clicking on a not connected element (#374 by @hooriza)
    • Add support to accept multiple references
    • Add support for touch events in addition to mouse events
  • 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 by useResizeObserver

  • e807ab3: Create useResizeObserver hook

Patch Changes

2.12.1 (from changelog)

Patch Changes

  • Don't remove comments during package build to keep JSdoc comments

2.11.0 (from changelog)

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)

2.10.0 (from changelog)

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

Does any of this look wrong? Please let us know.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aulianza-id ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2024 3:44pm

Copy link
Contributor Author

depfu bot commented Mar 12, 2024

Closed in favor of #336.

@depfu depfu bot closed this Mar 12, 2024
@depfu depfu bot deleted the depfu/update/yarn/usehooks-ts-2.14.0 branch March 12, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants