Skip to content

Releases: react-hookz/web

v22.0.0

05 Jan 13:45
Compare
Choose a tag to compare

22.0.0 (2023-01-05)

Features

  • rename all hook implementation files to index.ts (#1065) (34c36f2)
  • After some reconsideration - cjs bundle is back! At the moment of time pure ESM requires too much hustle around it therefore we decided to bring CJS back

BREAKING CHANGES

  • all current hook implementation fies renamed to index to allow usage of directory imports and avoid redundant reexporting.
    Such change breaks previous direct imports, but simplifies import string and solves redundant hook name duplication.

4ex:

// previously
import { useUpdate } from "@react-hookz/web/useUpdate/useUpdate"

// now
import { useUpdate } from "@react-hookz/web/useUpdate"

v21.0.0

04 Jan 12:49
Compare
Choose a tag to compare

21.0.0 (2023-01-04)

Features

  • Drop es5 versions support, leave only ESNext (#963) (5a622af)

BREAKING CHANGES

  • CJS ES5 and ESM ES5 versions are removed from distribution, leaving only ESM ESNext version.

We understand that this change can break existing pipelines for some developers, but such move eases library maintenance and is one of several moves towards module package. Address Usage docs to actualize your pipeline if needed.

This change is one of several braking changes regarding distribution and package usage.

Sorry for any inconvenience.

v20.1.0

02 Jan 09:46
Compare
Choose a tag to compare

20.1.0 (2023-01-02)

Features

v20.0.3

20 Dec 05:55
Compare
Choose a tag to compare

20.0.3 (2022-12-20)

Bug Fixes

  • useEventListener: change the way listener added and removed (#1050) (f2936a5)

v20.0.2

18 Dec 17:07
Compare
Choose a tag to compare

20.0.2 (2022-12-18)

Bug Fixes

  • docs: update link to GHA actions badge (348cba7)

v20.0.1

07 Dec 19:00
Compare
Choose a tag to compare

20.0.1 (2022-12-07)

Bug Fixes

  • useMediaQuery: On misconfiguration, cause hydration error instead of SSR crash (#1042) (46e5bcc), closes #1000 #1000

v20.0.0

02 Dec 17:16
Compare
Choose a tag to compare

20.0.0 (2022-12-02)

Bug Fixes

  • useMediaQuery: add option to match media query on first render (#1020) (087b2b1), closes #1000

BREAKING CHANGES

  • useMediaQuery: useMediaQuery and useScreenOrientation now returns matched media query state
    on first render by default, SSR users can change that behaviour via hook options.

v19.2.0

20 Nov 15:30
Compare
Choose a tag to compare

19.2.0 (2022-11-20)

Features

v19.1.0

12 Nov 16:37
Compare
Choose a tag to compare

19.1.0 (2022-11-12)

Features

  • useStorageValue: add custom parse and stringify functions to options (#913) (095d371)

v19.0.0

12 Nov 16:27
Compare
Choose a tag to compare

19.0.0 (2022-11-12)

Bug Fixes

  • useMeasure: only expose with and height properties (#954) (161c18d), closes #951

BREAKING CHANGES

  • useMeasure: Only width and height are now exposed from the element instead of the whole DOMRect