Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:29

Added

  • Web footer and README point to BezahlBrudi by XenGi
    (https://bezahlbrudi.jetzt/), a befriended project with the same idea,
    for anyone looking for an alternative.
  • web-smoke.mjs pins the Content-Security-Policy directives of
    web/index.html, parsed the way a browser reads the policy: comments
    stripped, the first mention of a directive wins, names case-insensitive,
    values compared as a set. Deleting the meta tag, commenting it out,
    widening connect-src or prepending a permissive duplicate fail the gate;
    before this nothing read the policy at all. README gains a "Privacy"
    section separating what the gates hold up from what sharing, copying and
    downloading set off, and SECURITY.md puts the web version's data flow in
    scope.
  • Web version at https://bmmmm.github.io/epcii/: the CLI pipeline compiled
    to WebAssembly (cmd/epcii-wasm, internal/webapi) behind a static page
    (web/) deployed by pages.yml. No server, no storage, no external
    resources; share links carry the fields only in the URL fragment. SVG and
    PNG downloads are byte-identical to the CLI, enforced by
    scripts/web-smoke.mjs in CI. See README "Web".
  • Web form: name, IBAN, amount and remittance text up front; reference,
    BIC, purpose code and the note to the payer fold under "More fields"
    (IBAN-only is the SEPA norm). Typed letters never land in the amount
    field; pasted ones still reach the validator. A share link from a newer
    format version is refused instead of guessed. web-smoke.mjs now also
    greps the page sources for storage APIs, address-bar writes and external
    resources.

Changed

  • Web: the "More fields" summary no longer spells the four field names out
    in a parenthesis. They stay in the summary as a quieter list
    (reference · BIC · purpose code · note), which is visible even while
    the section is folded, so looking for "BIC" still finds it. The
    hierarchy comes from the label's weight, not from dimming the names:
    at opacity: 0.7 they measured 3.85:1 against the dark background and
    would have failed WCAG AA; they now sit at 6.66:1 (dark) and 5.74:1
    (light).
  • Every field refuses invisible characters, not only line breaks: a control
    character (ESC, NUL, TAB, DEL, the C1 range) or a format character (bidi
    overrides such as U+202E, zero-width space and joiner, BOM) is rejected
    with exit 2 and an error naming the field and codepoint, e.g.
    beneficiary name contains a control character U+001B. Before, such a
    value was encoded as given, and --details printed it raw — an ESC
    sequence in --text could rewrite the iban: line on the terminal while
    the QR carried the real IBAN. Names with emoji joined by U+200D are
    affected; a no-break space is not.
  • --details shows any character without a visible form as its \uXXXX
    escape instead of the raw byte, so the verification view can never drive
    the terminal it is printed on.
  • --iban, --bic, --purpose and an RF creditor reference in --ref
    name a non-ASCII character instead of case-folding it: ſNPAFRPP
    (U+017F, long s) was silently turned into the BIC SNPAFRPP,
    GB82WEſT… into a valid GB82WEST…, and RF35ſ12345 into the
    checksum-valid RF35S12345. All are now refused with contains a non-ASCII character U+017F ('ſ'). Plain ASCII lower case still folds as
    before, and a reference that is not an RF claim keeps passing through
    verbatim, non-ASCII included.
  • Web: the QR is inserted as a parsed SVG node instead of an HTML string,
    and web-smoke.mjs now fails on any HTML string sink in the page sources.
    Nothing visible changes; an SVG the page cannot parse shows an error
    instead of a stale code.
  • --png names its scratch file with a random suffix instead of the
    process id. A file planted under the old predictable name
    (.out.png.<pid>.tmp) made the write fail with "file exists"; now it is
    left alone and the PNG is written regardless. Permissions are unchanged:
    new files get what os.Create would, replaced files keep their mode.
  • The PNG scale (8 px per module) is one constant, render.DefaultPNGScale,
    shared by --png and the web download; behaviour is unchanged.

Fixed

  • Web: the download filename is taken from the encoded payload, not from the
    IBAN field. Rendering is debounced by 150 ms, so a click inside that window
    could save epc-<new IBAN>.svg containing the previous IBAN's code.
    web-smoke.mjs gates it.
  • Web: the share link is built from the encoded result as well, not from the
    form. Within the same debounce window "Share" could hand over a link
    describing one IBAN next to an SVG encoding the previous one.
    web-smoke.mjs gates shareParams() the way it gates fileStem(), and
    gates the snapshot in render() that both of them read.
  • Web: the privacy note no longer says browsers "never send" the #fragment
    "to any server". They do not send it in requests, but the link lands in
    the browser history like any URL and travels with history sync and
    address-bar suggestions. The footer (EN/DE) and README "Web" say so.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Sep 00:12

Changed

  • --ref only normalizes a reference that presents itself as ISO 11649, that
    is RF followed by two digits. Every other reference belongs to an issuer's
    own scheme and now reaches the payload verbatim after trimming surrounding
    whitespace: inv-2026-abc stays lower case instead of becoming
    INV-2026-ABC, and rfid-77 is no longer rejected as a broken creditor
    reference.
  • --iban rejects an IBAN whose country is not a SEPA scheme participant. An
    EPC QR code initiates a SEPA credit transfer, so such an IBAN cannot be a
    valid target; previously it passed on the mod-97 check alone. The country
    table also replaces the generic 15-34 character length check.
  • --amount refuses a lone 1.234 as ambiguous and offers both unambiguous
    spellings, instead of reporting "more than two decimal places" — a message a
    German reader cannot act on. 0.125, .123 and space-grouped input keep the
    plain decimals message.
  • --amount accepts whole amounts with two or more separator groups as
    thousands grouping: 1.234.567 and 1,234,567 now parse instead of being
    refused.
  • --png writes atomically. The encoder renders into a scratch file next to
    the target and renames it over the target, so a failure mid-write no longer
    leaves a truncated PNG behind or destroys the previous rendering. The result
    carries the permissions os.Create would have given it (0666 minus umask);
    an existing file keeps its own mode and a symlink is still written through.
  • A field-limit or 331-byte error names combining marks as the cause when the
    input carries them. Text pasted from macOS often arrives decomposed, where a
    40-letter name is counted as 138 characters with no hint why.
  • --bic enforces the ISO 9362 shape: four letters for the institution, two
    for the country, then alphanumerics for location and optional branch.

Added

  • Prebuilt binaries for Linux, macOS and Windows on amd64 and arm64, published
    with a SHA256SUMS file whenever a v* tag is pushed. They are static
    (CGO_ENABLED=0), reproducible in path (-trimpath) and stamped, so
    --version reports the tag.
  • TestMatrixFingerprints pins the QR matrix — version and every module —
    against fingerprints generated from upstream piglig/go-qr for every payload
    length 0 to 331. The round-trip decoder forgives ECC-repairable damage and
    stayed green with mask selection disabled or the dark module missing; this
    gate does not.

Fixed

  • The ISO 11649 check enforces the standard's 25-character limit, and each
    failure names the rule that actually fired instead of blaming mod-97.
    RF255390075470345390075470345 carries a valid mod-97 remainder and was
    accepted before; it is now refused as too long.
  • Only RF followed by two digits is treated as an ISO 11649 claim. A
    reference like RFAA14, RFQ2026001 or a bare RF is no longer forced
    through that validation and passes through as an issuer's own value — it is
    accepted, but epcii no longer represents it as a checked creditor reference.
    RF12, a claim without a body, stays rejected.
  • --ref " " combined with --text no longer trips the mutual-exclusion
    check: it is trimmed to empty first.
  • --bic 00000000 is rejected instead of being accepted as a placeholder.