Skip to content

fix: add missing exports to subpath entry points#88

Merged
productdevbook merged 1 commit intomainfrom
fix/subpath-exports
Mar 29, 2026
Merged

fix: add missing exports to subpath entry points#88
productdevbook merged 1 commit intomainfrom
fix/subpath-exports

Conversation

@productdevbook
Copy link
Copy Markdown
Owner

Summary

Fixes #87barcodeBase64 (and other functions) not importable from etiket/barcode subpath.

Audited all 6 subpath entry points and added every missing export:

Subpath Added
etiket/barcode barcodeDataURI, barcodeBase64, encodeBars, encodeIdentcode, encodeLeitcode, encodePOSTNET, encodePLANET, encodePlessey, encodeGS1DataBarOmni/Limited/Expanded, Code128Charset, Code128Options, BarcodeEncodingOptions
etiket/qr encodeMicroQR, MicroQROptions
etiket/datamatrix gs1datamatrix, encodeGS1DataMatrix, MatrixSVGOptions
etiket/pdf417 encodeMicroPDF417, MicroPDF417Options, MatrixSVGOptions
etiket/aztec MatrixSVGOptions
etiket/png Already complete ✓

README tree-shaking section updated to reflect the full set of available subpath imports.

Test plan

  • pnpm typecheck passes
  • pnpm build succeeds — new exports visible in bundle output
  • pnpm vitest run — 905 tests pass
  • pnpm lint — no new warnings

🤖 Generated with Claude Code

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>
@productdevbook productdevbook merged commit 1c2ed31 into main Mar 29, 2026
1 check passed
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.

barcodeBase64 is not exported from etiket/barcode

1 participant