@opena2a/atx-verify 0.4.0
Diagnostics, packaging, and type-precision release for the shared offline ATX verifier. No verdict-path changes: the 20-fixture conformance replay pins the accept/reject set unchanged from 0.3.0.
Changed
- Staged anchor-fault diagnostics — an empty eligible-key set previously rejected with the generic
Ed25519 signature ... did not verify, which reads as bad signature bytes when the fault is verifier configuration. Three staged reasons now distinguish: no Ed25519 anchors configured / all configured keys excluded by key-to-issuer binding (the cross-issuer case) / configured key hex failed to parse. SamerejectCategory(SIGNATURE_INVALID) everywhere — reason refinement only. A missingatcVersionnow rejects withatcVersion is missing (supported: "1.0", "1.1")instead of interpolatingundefined. exportsmap — the package now exposes only the root entry and./package.json; deepdist/*imports (never documented) fail withERR_PACKAGE_PATH_NOT_EXPORTED. README states the ESM-only consumption patterns (nativerequire()on Node >= 22,await import()on 18/20) and the@types/noderequirement forskipLibCheck: falseconsumers.Atx.atcVersionis now required (type-level change) — absence always rejectedUNSUPPORTED_VERSIONat runtime, so the optional marker only misled object-literal constructors. Flag for consumers: a TS consumer constructingAtxliterals withoutatcVersionwill now get a compile error; set it to"1.0"or"1.1". Both known in-org consumers already set it.- New exports —
topLevelMemberSpan/ValueSpan, the tokenizer-offset raw-member extractor, for consumers that need credential-only strict-parse scoping of a larger envelope. - README — new
Building a test credentialwalkthrough (verified verbatim against the published artifact) and anAdditional exportsreference.
Provenance
Published via npm Trusted Publishing (GitHub Actions OIDC, no long-lived tokens) with SLSA v1 provenance. Verify:
npm view @opena2a/atx-verify dist.attestations --json
npm audit signatures # in a project that installs it
Full Changelog: atx-verify-v0.3.0...atx-verify-v0.4.0