fix: add missing exports to subpath entry points#88
Merged
productdevbook merged 1 commit intomainfrom Mar 29, 2026
Merged
Conversation
Several functions and types available from the main `etiket` entry were missing from their respective subpath exports, breaking tree-shaking imports. - etiket/barcode: add barcodeDataURI, barcodeBase64, encodeBars, Deutsche Post, PostNet/Planet, Plessey, GS1 DataBar encoders and types - etiket/qr: add encodeMicroQR, MicroQROptions - etiket/datamatrix: add gs1datamatrix, encodeGS1DataMatrix, MatrixSVGOptions - etiket/pdf417: add encodeMicroPDF417, MicroPDF417Options, MatrixSVGOptions - etiket/aztec: add MatrixSVGOptions - README: update tree-shaking examples Closes #87 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #87 —
barcodeBase64(and other functions) not importable frometiket/barcodesubpath.Audited all 6 subpath entry points and added every missing export:
etiket/barcodebarcodeDataURI,barcodeBase64,encodeBars,encodeIdentcode,encodeLeitcode,encodePOSTNET,encodePLANET,encodePlessey,encodeGS1DataBarOmni/Limited/Expanded,Code128Charset,Code128Options,BarcodeEncodingOptionsetiket/qrencodeMicroQR,MicroQROptionsetiket/datamatrixgs1datamatrix,encodeGS1DataMatrix,MatrixSVGOptionsetiket/pdf417encodeMicroPDF417,MicroPDF417Options,MatrixSVGOptionsetiket/aztecMatrixSVGOptionsetiket/pngREADME tree-shaking section updated to reflect the full set of available subpath imports.
Test plan
pnpm typecheckpassespnpm buildsucceeds — new exports visible in bundle outputpnpm vitest run— 905 tests passpnpm lint— no new warnings🤖 Generated with Claude Code