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.
Uh oh!
There was an error while loading. Please reload this page.
-
Added
ref, enabling direct access for underlyingcanvasorsvgnodes. This also resulted in much more accurate type defitions. (Pass down ref to SVG/Canvas element #202)marginSizeprop, replacing the now deprecatedincludeMargin. This enables margins of any value, not just0or4. (Add newmarginSizeprop #281)imageSettings.opacity(Add Image Opacity #292)minVersionprop to give better control over QR Code generated (Add minVersion prop to give better control over QR Code generated #323)cross-originfor embedded images viaimageSettings.crossOrigin. (Image add crossOrigin settings (#143) #324)Changed
QRCodeSVGby rendering a<title>node instead of setting atitleattribute. (Fix issue (#283) with NVDA screen reader and SVG #284)roleset on rendered SVG and Canvas. (Add role=img to rendered canvas & svg #321)ErrorCorrectionLeveltype #291)Deprecated
includeMarginprop has been deprecated in favor ofmarginSize. (Add newmarginSizeprop #281)Removed
styleprop. This still works identically as it was passed through and the type definitions are unaffected as they were improved via therefchanges (Remove explicitstyleprop #357)Fixed
hrefin place ofxlink:hreffor embedded images. (Add href attribute for QRCodeSVG #336)QRCodeSVGin server components #352)This discussion was created from the release v4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions