Skip to content

v22.0.0

Compare
Choose a tag to compare
@xobotyi xobotyi released this 05 Jan 13:45
· 351 commits to master since this release

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"