Notion is a single space where you can think, write, and plan. Capture thoughts, manage projects, or even run an entire company β and do it exactly the way you want. π
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade usehooks-ts from 2.9.1 to 2.14.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **10 versions** ahead of your current version.
- The recommended version was released **a month ago**, on 2024-02-09.
Release notes Package name: usehooks-ts
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.
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 - 2024-01-25
2.9.5 - 2024-01-18
2.9.4 - 2024-01-13
2.9.3 - 2024-01-13
2.9.2 - 2024-01-07
2.9.1 - 2022-10-13
from usehooks-ts GitHub release notes
**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.*
For more information:
π§ [View latest project report](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15?utm_source=github&utm_medium=referral&page=upgrade-pr)
π [Adjust upgrade PR settings](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr)
π [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15/settings/integration?pkg=usehooks-ts&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade usehooks-ts from 2.9.1 to 2.14.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.- The recommended version is **10 versions** ahead of your current version. - The recommended version was released **a month ago**, on 2024-02-09.
Release notes
Package name: usehooks-ts
Minor Changes
useScreen
anduseWindowSize
Patch Changes
useEventCallback
useFetch
, see the documentation for more informationuseEffectOnce
,useIsFirstRender
anduseUpdateEffect
Minor Changes
useOnClickOutside
:undefined
useIntersectionObserver
API and fixed #395, #271 and #182, see #464.useElementSize
replaced byuseResizeObserver
useResizeObserver
hookPatch Changes
useScript
failed to remove script from cache when passingremoveOnUnmount
prop (#354 by @ ShanSenanayake)verbatimModuleSyntax
to avoid side-effectstsup
as bundler instead of transpiling with tsc (@ BlankParticle)useScreen
is not rerendering on screen resize (#280 by @ philipgher)Patch Changes
Minor Changes
useDocumentTitle()
to reset title on un-mount (#345 by @ ladislasdellinger)Patch Changes
lodash.debounce
to dependencies from peerDependencies (#459 by @ BlankParticle)Minor Changes
useUnmount
hookuseDebounceCallback
anduseDebounceValue
hooksuseDebounce
hook (replaced byuseDebounceCallback
oruseDebounceValue
){ initializeWithValue?: boolean }
parameter touseLocalStorage
,useReadLocalStorage
,useSessionStorage
,useDarkMode
,useTernaryDarkMode
,useMediaQuery
,useScreen
,useWindowSize
anduseElementSize
, see #451.defaultValue
option touseTernaryDarkMode
and update its signature (using function overload for smooth migration)useDarkMode
signature (using function overload for smooth migration)Map
,Set
andDate
supports in use*Storage hooks, it isn't compatible withuseReadLocalStorage
making the API un-consistent. Use a custom serializer/deserializer instead.Patch Changes
react
and@ testing-library/react
(thanks to @ TheHaff)@ typescript-eslint
stricter to catch bugs sooneruseImageOnLoad
, too opinionatedjest
tovitest
(making test-suite execution 2 times faster)**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: π§ [View latest project report](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15?utm_source=github&utm_medium=referral&page=upgrade-pr) π [Adjust upgrade PR settings](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) π [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/ladunjexa/project/4924aa46-d130-4254-b785-c0405edabf15/settings/integration?pkg=usehooks-ts&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)