Skip to content

2.2.0

Latest

Choose a tag to compare

@gfazioli gfazioli released this 29 Nov 18:49

🐛 Bug Fixes

imageRadius rounds the image the way its name says (#33)

imageRadius was applied inside the SVG, where a CSS length counts in QR modules, so imageRadius="md" (8px) became 8 modules and turned most logos into circles.

The radius is now laid out as on a 64px square and scales with the image:

  • md rounds the image as it rounds a 64px box, and xl makes it a circle, whatever the QR size and payload.
  • A theme radius and --mantine-scale still apply, and a number is pixels on that square.
  • A percentage stays relative to the image side.
  • Downloads (useQRCodeDownload) match the screen.

⚠️ Visible change: every existing imageRadius now rounds less than before, at the amount its name says. If you relied on the old look to get a round logo, use imageRadius="xl" or "50%".

⚡ Improvements

  • Docs: an imageRadius demo (xs, md, lg, xl) in Image overlay, and an imageRadius control in the configurator.

🛠️ Other Changes

  • The package is now published from GitHub Actions with npm trusted publishing (OIDC). No npm token is involved, and npm attaches a provenance statement that links this version to its source commit and workflow run.

📝 Summary

A minor release: imageRadius now looks like a Mantine radius, which changes how existing logos render, and this is the first version of the package published from CI with provenance.


What's Changed

  • Fix imageRadius rounding (#33) and publish to npm from CI with trusted publishing by @gfazioli in #38

Full Changelog: 2.1.3...2.2.0