Skip to content

Tags: react-hookz/web

Tags

v25.2.0

Toggle v25.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: migrate tests to new testing library and react 19 (#1661)

v25.1.1

Toggle v25.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: migrate to @ver0/deep-equal (#1646)

v25.1.0

Toggle v25.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add typing support for react 19 (#1627)

Change adapts to types changes of React19. Otherwise no changes done.
Deprecated `MutableRefObject` remained to ensure backwards
compatibility.

v25.0.1

Toggle v25.0.1's commit message
fix: cleanup badges

v25.0.0

Toggle v25.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: migration towards vitest (#1574)

Improve `resolveHookState` function - it has better typings overall 
and passes previous state to state updater only in case it is being 
passed to `resolveHookState` function.

BREAKING CHANGE: resolve hook state does not pass `undefined` to
`nextState` function when while being called without `previousState`
anymore

v24.0.4

Toggle v24.0.4's commit message
chore(release): 24.0.4 [skip ci]

## [24.0.4](v24.0.3...v24.0.4) (2024-02-04)

### Bug Fixes

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

v24.0.3

Toggle v24.0.3's commit message
chore(release): 24.0.3 [skip ci]

## [24.0.3](v24.0.2...v24.0.3) (2024-02-03)

### Bug Fixes

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

v24.0.2

Toggle v24.0.2's commit message
chore(release): 24.0.2 [skip ci]

## [24.0.2](v24.0.1...v24.0.2) (2023-12-21)

### Bug Fixes

* lower engines requirements to ease usage for consumers ([8bd29f7](8bd29f7))

v24.0.1

Toggle v24.0.1's commit message
chore(release): 24.0.1 [skip ci]

## [24.0.1](v24.0.0...v24.0.1) (2023-12-20)

### Bug Fixes

* change build so development and distributed imports match ([6383cdd](6383cdd))

v24.0.0

Toggle v24.0.0's commit message
chore(release): 24.0.0 [skip ci]

# [24.0.0](v23.1.0...v24.0.0) (2023-12-20)

### Features

* switch package to module type ([#1472](#1472)) ([50921ef](50921ef))

### 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.