Releases: zpao/qrcode.react
Releases · zpao/qrcode.react
v4.2.0
v4.1.0
v3.2.0
v4.0.1
v4.0.0
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)
v3.1.0
v3.0.2
Fixed
- Fixed TypeScript types to reflect pass through of DOM props.
Changed
- Updated qr-code-generator to nayuki/QR-Code-generator@d524de6
v3.0.1
v3.0.0
Added
- Added support for named exports for
QRCodeSVG
andQRCodeCanvas
. - Added support for ES Modules.
- Added embedded type definitions.
Changed
- Swapped out
qr.js
dependency for vendored version of https://www.nayuki.io/page/qr-code-generator-library. - Rewrote using hooks.
Deprecated
- Deprecated support for default export. This will be removed in v4.
Removed
- Removed support for React < 16.8.