Skip to content

Bars4J 0.7.0

Choose a tag to compare

@ronison ronison released this 10 Nov 19:42
· 53 commits to main since this release

Bars4J 0.7.0

Adds a complete Node.js/TypeScript port of the library, published as
@bars4j/core on npm, while keeping the Java library
and its golden fixtures in sync.

Node.js / TypeScript port (node/)

  • 1D: all 20 linear formats with byte-for-byte identical SVG output.
  • 2D: QRCode, Data Matrix, PDF417 and Aztec, including their SVG output.
  • Raster: dependency-free ARGB geometry and PNG export; the optional
    @napi-rs/canvas backend draws the
    human-readable text.
  • Demos and CLI: npm run demo / npm run demo:qrcode and a bars4j command-line tool.
  • Packaging and CI: npm metadata, Node CI (Node 22/24, npm pack check, demo smoke test) and a
    publish workflow using npm trusted publishing.
  • Verified with 96 tests against the shared Java goldens: 1D SVG goldens, 1D raster image
    fingerprints, 2D module-matrix/SVG goldens and an all-formats smoke test.
  • New fixtures under src/test/resources/golden/matrix (2D matrices, 2D SVGs, QR Kanji case),
    generated from the unmodified Java implementation.

Notes

  • The Node package requires Node.js 22.18+ and needs no build step (native TypeScript type stripping).
  • The Java sources are unchanged.