Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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