Releases: react-hookz/web
Releases Β· react-hookz/web
v22.0.0
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
21.0.0 (2023-01-04)
Features
BREAKING CHANGES
CJS ES5
andESM ES5
versions are removed from distribution, leaving onlyESM 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
v20.0.3
v20.0.2
v20.0.1
v20.0.0
20.0.0 (2022-12-02)
Bug Fixes
BREAKING CHANGES
- useMediaQuery:
useMediaQuery
anduseScreenOrientation
now returns matched media query state
on first render by default, SSR users can change that behaviour via hook options.