Added
- Added proper support for
ref
, enabling direct access for underlyingcanvas
orsvg
nodes. This also resulted in much more accurate type defitions. (#202) - Added support for
marginSize
prop, replacing the now deprecatedincludeMargin
. This enables margins of any value, not just0
or4
. (#281) - Added Support for Setting Image Opacity via
imageSettings.opacity
(#292) - Added
minVersion
prop to give better control over QR Code generated (#323) - Added support for specifying
cross-origin
for embedded images viaimageSettings.crossOrigin
. (#324)
Changed
- Improved accessibility for
QRCodeSVG
by rendering a<title>
node instead of setting atitle
attribute. (#284) - Improved accessibility with explicit
role
set on rendered SVG and Canvas. (#321) - Improved documentation (###)
- Used better types in TypeScript for ErrorCorrectionLevel, resulting in better developer experience. (#291)
Deprecated
- The
includeMargin
prop has been deprecated in favor ofmarginSize
. (#281)
Removed
- Removed default export which was deprecated in v3. (#208)
- Remove explicit
style
prop. This still works identically as it was passed through and the type definitions are unaffected as they were improved via theref
changes (#357)
Fixed
- Improved support for dual publishing of ESM/CJS modules for better compatibility with tools. (#301)
- Set explicit display names for improved debugging experience. (#304)
- Improved SVG compatibility by using
href
in place ofxlink:href
for embedded images. (#336) - Mitigated warnings when using QRCodeSVG in server components (#352)