Don't remove comments during package build to keep JSdoc comments
usehooks-ts@2.12.0
Minor Changes
cb6eb5c: Added an optional option param in useDocumentTitle() to reset title on un-mount (#345 by @ladislasdellinger)
Patch Changes
b8ee088: move lodash.debounce to dependencies from peerDependencies (#459 by @BlankParticle)
usehooks-ts@2.11.0
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
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps usehooks-ts from 2.9.2 to 2.12.1.
Release notes
Sourced from usehooks-ts's releases.
... (truncated)
Commits
9f6c3bb
🐛 Keep JSdoc comments in the compiled /dist and bump versionf8cfe73
🔖 Update versionb8ee088
fix: movelodash.debounce
todependencies
frompeerDependencies
(#459)05375bf
🔧 Update the hook blacklist for unit testingb83fcaf
chore(deps): update actions/setup-node action to v4 (#455)7f2ef22
chore(deps): update dependency@types/node
to v20.11.10 (#454)cb6eb5c
✨ feat: add an option to reset to default document title on unmount for useDo...9f48970
Add useClickAnyWhere tests (#353)781378a
🔖 Update version4a9fc88
✨ Feature: declarative SSR (#451)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show