Skip to content

Releases: zpao/qrcode.react

v4.1.0

22 Oct 06:27
5d9ec58
Compare
Choose a tag to compare

Added

  • Added support for new boostLevel prop, allowing the disabling of the underlying encoder's default of automatically boosting the ECL. (#374)
  • Added support for accepting an array of strings for value, which enables encoding of each part into independent segments. (#374)

v3.2.0

01 Sep 05:03
fe52faa
Compare
Choose a tag to compare

Fixed

  • Improved support for dual publishing of ESM/CJS modules for better compatibility with tools. (#301, #368)
  • Mitigated warnings when using QRCodeSVG in server components (#352)

Changed

  • Added @deprecated JSDoc to default export for additional visibility in editors to TypeScript users.

v4.0.1

29 Aug 02:57
6ed04d6
Compare
Choose a tag to compare

Fixed

  • Corrected issue with loading types in Typescript when configured with "moduleResolution": "Bundler" or "module": "ESNext". (#368)

v4.0.0

28 Aug 03:08
fe9b709
Compare
Choose a tag to compare

Added

  • Added proper support for ref, enabling direct access for underlying canvas or svg nodes. This also resulted in much more accurate type defitions. (#202)
  • Added support for marginSize prop, replacing the now deprecated includeMargin. This enables margins of any value, not just 0 or 4. (#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 via imageSettings.crossOrigin. (#324)

Changed

  • Improved accessibility for QRCodeSVG by rendering a <title> node instead of setting a title 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 of marginSize. (#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 the ref 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 of xlink:href for embedded images. (#336)
  • Mitigated warnings when using QRCodeSVG in server components (#352)

v3.1.0

25 Jun 22:05
Compare
Choose a tag to compare

Fixed

  • Made optional props optional, removing use of defaultProps. This may be a slight behavior change with TypeScript if previously passing null.
  • Fixed used of shapeRendering="crispEdges" in SVG component.

v3.0.2

15 May 22:01
Compare
Choose a tag to compare

Fixed

  • Fixed TypeScript types to reflect pass through of DOM props.

Changed

v3.0.1

30 Mar 18:34
Compare
Choose a tag to compare

Added

  • Added React v18 to allowed peer dependencies.

v3.0.0

26 Mar 22:31
Compare
Choose a tag to compare

Added

  • Added support for named exports for QRCodeSVG and QRCodeCanvas.
  • Added support for ES Modules.
  • Added embedded type definitions.

Changed

Deprecated

  • Deprecated support for default export. This will be removed in v4.

Removed

  • Removed support for React < 16.8.

v2.0.0

22 Mar 16:39
Compare
Choose a tag to compare

Fixed

  • Switched to using unsafe_* lifecycle methods, eliminating a warning from non-production environments.

Removed

  • Removed support for React < 16.3.

v1.0.1

22 Mar 16:38
Compare
Choose a tag to compare

Added

  • Added React v17 to allowed peer dependencies.

Fixed

  • Handle mounting server rendered content properly.
  • Handle updates to embedded image properly.