-
bad66a9: Initial release of the QR/barcode package family.
@playwright-labs/qrcode-core— QR encode/decode primitives:QRCodeEncoder— 8 output formats: data URL (default), raw base64, SVG, UTF-8 text art, terminal, PNGBuffer, file, streamSegmentArray+ fluent segment API (addStringSegment/addNumericSegment/addAlphanumericSegment/addByteSegment) for smaller mixed-mode codesQRCodeDecoder— decodes fromBuffer/Uint8Array,Readable, data URL / raw base64 strings, raw RGBA pixels, or a file configured via constructor options
@playwright-labs/barcode-core— 1D barcode encode/decode primitives:BarcodeEncoder(jsbarcode, no canvas required) — SVG string (default), file, stream, raw RGBAimagedata, and SVG bytes asbuffer/uint8array/uint8clampedarray; invalid values (e.g. wrong EAN-13 checksum) reject withTypeErrorBarcodeDecoder(javascript-barcode-reader) — same input shapes asQRCodeDecoder, barcode type per call (ean-13,code-128, ...)
@playwright-labs/fixture-qrcode— Playwright integration:useQRCodeDecode(locator, screenshotOptions?)fixturetoHaveQRCode(expected?, screenshotOptions?)matcher (string / RegExp / any,.notsupported)
@playwright-labs/fixture-barcode— Playwright integration:useBarcodeDecode(locator, barcode, screenshotOptions?)fixturetoHaveBarcode(barcode, expected?, screenshotOptions?)matcher