All versions since 0.0.3
0.0.3
Patch Changes
- Added subpath entrypoints for direct runtime imports without a bundler:
@qrcodesdk/core/matrix,@qrcodesdk/core/svg,@qrcodesdk/core/text, and@qrcodesdk/core/erroras well as@qrcodesdk/browser/canvas,@qrcodesdk/browser/image, and@qrcodesdk/browser/svg.@qrcodesdk/core/drawingnow also exportscreateQRCodeStyler. The root entrypoints keep exporting the same APIs and the runtime bundles are smaller. - The canvas renderer throws
INVALID_IMAGE_SOURCEwhencenterImageis configured without an image source. The image renderer throwsRENDER_FAILEDwith a descriptive message when the canvas is tainted by a cross-origin center image. - Updated dependencies
- Updated dependencies
- Updated dependencies
- @qrcodesdk/core@0.0.3
0.0.4
Patch Changes
- Refreshed the package READMEs with clearer option examples and consolidated links to the documentation guides.
- Fixed the
extra-roundedfinder styling. The finder ring now keeps straight edges and a consistent one-module thickness around its corners in SVG, canvas, image, and PNG output. - Updated dependencies
- Updated dependencies
- Updated dependencies
- @qrcodesdk/core@0.0.4
0.0.5 Latest
Patch Changes
-
2fd183e: Update Canvas, Image, and download renderers for the flat role-aware matrix and composable styles from
@qrcodesdk/core/style. Reuse prepared paths and group drawing by color to reduce repeated rendering work.Create Canvas and Image center images with
canvasCenterImage(source, layout)and pass the result ascenterImage, replacing inline source and layout objects. ReplaceQRCodeCanvasCenterImageOptionswithQRCodeCanvasCenterImage.Keep SVG download URLs alive for 40 seconds so browsers can start asynchronous downloads. Snapshot download options when creating the renderer, trim filenames, and use
qrcodewhen the filename is empty or whitespace.Rely on declared option types instead of rejecting unknown keys and incorrectly typed accessibility values at runtime.
-
21107ab: Create Canvas contexts with
willReadFrequentlyso they are software-backed. Canvas output and the PNG, WebP, GIF, and JPEG images read back from it now have the same pixels with or without GPU acceleration. -
21107ab: Add
QRCodeWebPImageRenderer,QRCodeGIFImageRenderer, andQRCodeJPEGImageRenderer, which render an image element backed by a lossless WebP, single-frame GIF, or baseline JPEG data URL. Each renderer is also available from its own@qrcodesdk/browser/webp,@qrcodesdk/browser/gif, and@qrcodesdk/browser/jpegentry point.GIF output supports 256 colors and binary transparency. Pixels with an alpha value below
transparency.threshold(default128) become transparent. JPEG output takes aqualityfrom 1 to 100 (default92) and blends transparent pixels ontotransparency.matte(default#ffffff).Rename
QRCodeImageRenderertoQRCodePNGImageRendererandQRCodeImageOptionstoQRCodePNGImageOptions, and add the@qrcodesdk/browser/pngentry point.QRCodeDownloadImageRenderernow downloads the output of any image renderer and picks the.png,.webp,.gif, or.jpgextension from the image’s data URL. -
Updated dependencies [15fe5c3]
-
Updated dependencies [2fd183e]
-
Updated dependencies [21107ab]
- @qrcodesdk/core@0.0.5
Support QRCodeSDK
If you find QRCodeSDK useful, please consider sponsoring the project!