Skip to content

fixes Bunlong/next-qrcode#40 Deprecated old interfaces. Introduced 3 …#41

Open
ckelwin wants to merge 1 commit intoBunlong:masterfrom
ckelwin:40-separate-interface
Open

fixes Bunlong/next-qrcode#40 Deprecated old interfaces. Introduced 3 …#41
ckelwin wants to merge 1 commit intoBunlong:masterfrom
ckelwin:40-separate-interface

Conversation

@ckelwin
Copy link

@ckelwin ckelwin commented Sep 29, 2023

Fixes #40

Done:

  • Deprecated old interfaces.
  • Introduced 3 sets of interface for each of the qr types, i.e. Canvas, SVG and Image.
  • Added inline comment for better developer experience. (Copied from the readme)
  • Added 'alt' to the <img>

image

Note:
This may introduce breaking change, i.e. when someone uses <Canvas but provided an option prop of type. The fix should be simple, delete that prop. Screenshot below shows the error caused by this breaking change, where it was possible to provide a type prop to a Canvas in the past, but it is not relevant.

image

…rface for each of the qr types, i.e. Canvas, SVG and Image. Added inline comment for better developer experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible to provide options that are not relevant for the component type

1 participant