Skip to content

v4.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 01:39
· 55 commits to main since this release
97335d3

Minor update: useImage now reports the loaded image’s intrinsic size.

  • useImage returns a new naturalSize field with { width, height } read from the image’s naturalWidth/naturalHeight once it loads.
  • naturalSize is null while loading, after an error, or for an empty src.
  • When src, retry options, or retry() trigger a reload, naturalSize resets in the same render as loading, ensuring a previous image’s size is never reported for the next one.
  • No new option is added, and all existing return values remain unchanged.

What's Changed

  • ci: drop gitmoji from bot-generated commits and PR titles by @pjb0811 in #206
  • ci: cap the changeset draft bot at a minor bump by @pjb0811 in #208
  • docs: point the AGENTS.md hook example at an existing file by @pjb0811 in #209
  • feat(hooks): report the loaded image's natural size from useImage by @pjb0811 in #211
  • chore: version packages by @github-actions[bot] in #212

Full Changelog: v4.1.0...v4.2.0