Skip to content

Releases: react-hookz/web

v25.2.0

Choose a tag to compare

@xobotyi xobotyi released this 02 Nov 12:25
daff743

25.2.0 (2025-11-02)

Features

  • migrate tests to new testing library and react 19 (#1661) (daff743)

v25.1.1

Choose a tag to compare

@xobotyi xobotyi released this 09 Apr 18:54
e640550

25.1.1 (2025-04-09)

Bug Fixes

v25.1.0

Choose a tag to compare

@xobotyi xobotyi released this 07 Mar 07:51
e60fa65

25.1.0 (2025-03-07)

Features

v25.0.1

Choose a tag to compare

@xobotyi xobotyi released this 24 Dec 08:12

25.0.1 (2024-12-24)

Bug Fixes

v25.0.0

Choose a tag to compare

@xobotyi xobotyi released this 23 Dec 23:06
f5bdf3d

25.0.0 (2024-12-23)

Features

BREAKING CHANGES

  • resolveHookState does not pass undefined to nextState function when called without previousState anymore.

Chore

  • All documentation being stripped from sourcecodes, in prior to preparation of the new documentation site.
  • ESLint migrated toward version 9, along with ditching prettier in favor of eslint rules (looking with hope towards oxc formatter and linter).

v24.0.4

Choose a tag to compare

@xobotyi xobotyi released this 04 Feb 08:19

24.0.4 (2024-02-04)

Bug Fixes

  • useDebouncedCallback: make invoked function to be updated with deps (#1510) (12658ee), closes #1357

v24.0.3

Choose a tag to compare

@xobotyi xobotyi released this 03 Feb 20:54

24.0.3 (2024-02-03)

Bug Fixes

  • get rid of import alias as it still breaks everything around (#1509) (90e4f9d)

v24.0.2

Choose a tag to compare

@xobotyi xobotyi released this 21 Dec 11:29

24.0.2 (2023-12-21)

Bug Fixes

  • lower engines requirements to ease usage for consumers (8bd29f7)

v24.0.1

Choose a tag to compare

@xobotyi xobotyi released this 20 Dec 23:13

24.0.1 (2023-12-20)

Bug Fixes

  • change build so development and distributed imports match (6383cdd)

v24.0.0

Choose a tag to compare

@xobotyi xobotyi released this 20 Dec 16:42

24.0.0 (2023-12-20)

Features

BREAKING CHANGES

  • Hooks are now distrubutes as JS built form TS with target ESNext and ESM module resolution. There is no more sense to distribute CJS version as package is ESM-only.

Consequent of above - no more esm and cjs subfolders - hooks are importable from index.js or its own directory which don't have a prefix anymore, thanks to exports directive. All of below examples will lead to same result, choose any on your taste:

import { useFirstMountState } from '@react-hookz/web';
import { useFirstMountState } from '@react-hookz/web/';
import { useFirstMountState } from '@react-hookz/web/useFirstMountState/';
import { useFirstMountState } from '@react-hookz/web/useFirstMountState/index.js';
Thought is seems not to have subfolder, it is only due to exports directive, in real it is
@react-hookz/web/dist/useFirstMountState/index.js.

Pakage uses imports directive to define path alias #root - it stays so even in distributed code, thus, some may be affected in case their bundler configured to somehow handle such alias. Those developer shoud configure import rewriter not to handle node_modules or @react-hookz/web package exclusively.

Side-effect for current PR - documentation is broken, as storybook 6 is not working within ESM packages and I'm planning to switch to another domenting engine anyway.