- #2813
1171b00
Thanks @melnikov-s! - Do not throw when using useMedia in SSR without providing an initialValue
- #2811
2b70145
Thanks @melnikov-s! - Make useMedia options an optional param
0fc2d54
Thanks @melnikov-s! - Make useMedia options an optional param
- #2809
5546b1d
Thanks @melnikov-s! - Media hooks initialized with correct matches value
-
#2785
97f8f6cf5
Thanks @vsumner! - Drop support for node 14 and 16. Support node LTS and up. -
#2787
f50049004
Thanks @vsumner! - Drop support for React 17
- #2718
591e65366
Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2
- #2637
a3b5c3fc0
Thanks @QuintonC! - Addressed a bug with useMountedRef for React 18 Strict Mode in development where mounted.current would be false after the effect runs for the first time.
- #2583
2aa32e8b8
Thanks @BPScott! - Add explictreturn undefined
to functions that had implicit returns
- #2389
03c1abc8c
Thanks @BPScott! - Add types field to package.json export maps to support typescript consumers that usemoduleResolution: "node16"
- No updates. Transitive dependency bump.
- Drop support for node 12 and Safari 10, 11 and 12. Remove wildcard export in exports field. [#2277]
- No updates. Transitive dependency bump.
- Correct wildcard export to
./*
[#2209]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Use
./*
instead of./
in package.json exports to fix deprecation warning. [#2184]
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Rerelease after failed publish. No code changes.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- No updates. Transitive dependency bump.
- Migrate from
sewing-kit-next
toloom
for building - package build output remains identical. [#2039]
- No updates. Transitive dependency bump.
- Enable type checking in tests and fix type errors. [#2034]
- Updated build tooling, types are now compiled with TypeScript 4.3. [#1997]
- Added file exclusion for tests to package.json. [#2005]
- Ensure
tsconfig.tsbuildinfo
file is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types
/typesVersions
fields to point directly into the build folder [#1980]
- Officially supports React
17.x
1969
useMountedRef
now works with React 17 #1964.
- Update minimum supported node version to 12.14.0. Add engines field to help enforce usage of this version. #1906
- Removed dependency on tslib, as we no-longer compile with
tsc
. #1829
- Added
useIsomorphicLayoutEffect
hook #1813. - Updated
useLazyRef
hook implementation to avoid mutating refs directly during the render phase, which is unsafe #1813. - Updated
useTimeout
anduseInterval
hooks. Both of these hooks use mutable ref to hold on to the latest callback function. Now updating this ref synchronously to avoid stale callbacks being invoked #1813.
- Updated multi-build outputs to include mandatory extensions to fix "Module not found" issues reported by ESM supported bundlers #1759
- Add new build outputs (CommonJS, ESM, esnext, Node) for greater tree-shakability #1698
- Added
tslib@^1.14.1
in the list of dependencies. #1657
useDelayedCallback
now usesuseRef
instead ofuseState
in to avoid unnecessary re-render (#1600)- Improved test case for
useDelayedCallback
(#1601)
- Added
useDelayedCallback
hook (#1595)
- Added
useForceUpdate
hook (#1441)
- Add missing
useMediaLayout
export (#1408)
- Added
useMediaLayout
hook (#1396)
- Added a
useMedia
hook (#1364)
- Added
useDebouncedValue
hook (#1354)
useOnChangeValue
is now executed in anuseEffect
and doesn't block the render method anymore. This fix may cause timing issue in your project if you depended on the change handler happening synchronously.
- Added support for
null
delay
argument touseTimeout
, to clear the timeout (#1306)
- Improved
useTimeout
hook, so it doesn't reset the timeout if thecallback
changes (#1306)
- Added
useInterval
hook (#1241)
- Added
useToggle
hook (#1220)
- Added a
usePrevious
hook (#1145)
- Added a
useMountedRef
hook (#663)
- Added a
useLazyRef
hook (#659)
@shopify/react-hooks
package with initial hooks foruseTimeout
anduseOnValueChange
(#609)