v4.0.0 #366
Replies: 2 comments 1 reply
-
@zpao might be nice to mention in the release notes how to upgrade with the removal of the default export. It saves some time for the library users by not having to look into the PR details. If I interpreted the PR that's mentioned correctly, it comes down to: The default import can be replaced with importing |
Beta Was this translation helpful? Give feedback.
-
4.0 and error :| Why? Attempted import error: 'qrcode.react' does not contain a default export (imported as 'QRCode'). |
Beta Was this translation helpful? Give feedback.
-
Added
ref
, enabling direct access for underlyingcanvas
orsvg
nodes. This also resulted in much more accurate type defitions. (Pass down ref to SVG/Canvas element #202)marginSize
prop, replacing the now deprecatedincludeMargin
. This enables margins of any value, not just0
or4
. (Add newmarginSize
prop #281)imageSettings.opacity
(Add Image Opacity #292)minVersion
prop to give better control over QR Code generated (Add minVersion prop to give better control over QR Code generated #323)cross-origin
for embedded images viaimageSettings.crossOrigin
. (Image add crossOrigin settings (#143) #324)Changed
QRCodeSVG
by rendering a<title>
node instead of setting atitle
attribute. (Fix issue (#283) with NVDA screen reader and SVG #284)role
set on rendered SVG and Canvas. (Add role=img to rendered canvas & svg #321)ErrorCorrectionLevel
type #291)Deprecated
includeMargin
prop has been deprecated in favor ofmarginSize
. (Add newmarginSize
prop #281)Removed
style
prop. This still works identically as it was passed through and the type definitions are unaffected as they were improved via theref
changes (Remove explicitstyle
prop #357)Fixed
href
in place ofxlink:href
for embedded images. (Add href attribute for QRCodeSVG #336)QRCodeSVG
in server components #352)This discussion was created from the release v4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions