Skip to content

Tags: react-hookz/web

Tags

v26.1.0

Toggle v26.1.0's commit message
feat(useMeasure): forward the box model to the observer

`borderBoxMeasurer` read border box sizes while the hook still observed
content box changes, so a padding-only change left the returned measures
stale. The third argument picks the observed box.

v26.0.0

Toggle v26.0.0's commit message
chore(deps): take @ver0/oxlint-config 2.0.2 for its declarations

2.0.2 ships a `.d.ts` beside every preset, so the presets type themselves
and the local ambient module declaration can go.

The `OxlintConfig` annotation on the override block stays: without it the
inline rule values widen to `string` and `plugins` to `string[]`, neither
of which satisfies the config type.

v25.3.0

Toggle v25.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(useMeasure): accept custom measurer

Measures came from the content box only, so consumers laying out in
border-box read sizes without paddings and borders. A second parameter
takes a measurer deriving `Measures` from the observer entry:
`contentBoxMeasurer` stays the default, `borderBoxMeasurer` ships next
to it for opt-in border-box sizing.

Re-measurement still rides on the shared observer's default box, so a
padding-only change that leaves the content box intact emits no new
measurement.

Closes: #1548

v25.2.2

Toggle v25.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(package): export package.json subpath

The `./*` catch-all mapped `@react-hookz/web/package.json` to
`./dist/package.json`, which the build never emits, so tooling that
reads dependency manifests could not resolve it -- Storybook probing
for the `storybook` field warned `unable to find package.json for
@react-hookz/web`.

Verify: from a dependent package,
`node -e "require('@react-hookz/web/package.json')"` resolves the
published manifest.

Closes: #1670
Co-Authored-By: Clement Prevot <clement.prevot@gmail.com>

v25.2.1

Toggle v25.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs(contributor): contrib-readme-action has updated readme

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
⌂ Proxy