- #2813
1171b00Thanks @melnikov-s! - Do not throw when using useMedia in SSR without providing an initialValue
- #2811
2b70145Thanks @melnikov-s! - Make useMedia options an optional param
0fc2d54Thanks @melnikov-s! - Make useMedia options an optional param
- #2809
5546b1dThanks @melnikov-s! - Media hooks initialized with correct matches value
-
#2785
97f8f6cf5Thanks @vsumner! - Drop support for node 14 and 16. Support node LTS and up. -
#2787
f50049004Thanks @vsumner! - Drop support for React 17
- #2718
591e65366Thanks @dependabot! - Bump @babel/traverse from 7.17.9 to 7.23.2
- #2637
a3b5c3fc0Thanks @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
2aa32e8b8Thanks @BPScott! - Add explictreturn undefinedto functions that had implicit returns
- #2389
03c1abc8cThanks @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-nexttoloomfor 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.tsbuildinfofile is not uploaded to the npm registry. [#1982]
- Update to latest sewing-kit-next for build. Update
types/typesVersionsfields to point directly into the build folder [#1980]
- Officially supports React
17.x1969
useMountedRefnow 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
useIsomorphicLayoutEffecthook #1813. - Updated
useLazyRefhook implementation to avoid mutating refs directly during the render phase, which is unsafe #1813. - Updated
useTimeoutanduseIntervalhooks. 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.1in the list of dependencies. #1657
useDelayedCallbacknow usesuseRefinstead ofuseStatein to avoid unnecessary re-render (#1600)- Improved test case for
useDelayedCallback(#1601)
- Added
useDelayedCallbackhook (#1595)
- Added
useForceUpdatehook (#1441)
- Add missing
useMediaLayoutexport (#1408)
- Added
useMediaLayouthook (#1396)
- Added a
useMediahook (#1364)
- Added
useDebouncedValuehook (#1354)
useOnChangeValueis now executed in anuseEffectand 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
nulldelayargument touseTimeout, to clear the timeout (#1306)
- Improved
useTimeouthook, so it doesn't reset the timeout if thecallbackchanges (#1306)
- Added
useIntervalhook (#1241)
- Added
useTogglehook (#1220)
- Added a
usePrevioushook (#1145)
- Added a
useMountedRefhook (#663)
- Added a
useLazyRefhook (#659)
@shopify/react-hookspackage with initial hooks foruseTimeoutanduseOnValueChange(#609)