npm / @owf/mdoc
@owf/mdoc
What changed in @owf/mdoc 0.10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
8 breaking5 security2 new APIs and options4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@owf/mdoc 0.1019 changes
Breaking changes 8
When certificate-chain validation is disabled, verification no longer fetches the MSO status or identifier list and reports a WARNING that status was not checked; trusted verifiers must call verifyStatus separately.
Holder.verifyDeviceRequest now needs crypto in its context.
An undecompressible CWT-format status list now throws InvalidRevocationListError instead of StatusListValidationError.
MdlError now extends IdentityError instead of Error, and its name is its class name.
Status and identifier lists are read within fetchLimits, which defaults to 16 MiB per list; previously, an identifier list response was read whole.
MediaTypes is renamed to MdocMediaTypes in @owf/mdoc.
ReaderAuth.verify now needs crypto in its context and checks a protected x5t, if present, against the reader certificate using SHA-256.
JWT-format revocation lists are verified with verifyStatusListJwt; malformed x5c and out-of-range idx now throw InvalidRevocationListError.
Security 5
IssuerAuth.verify checks a protected x5t when present; it must use SHA-256 and match the issuer certificate. An x5t is not required.
Verifiers that establish issuer trust themselves must call verifyStatus afterward to check status when certificate-chain validation is disabled.
Verification APIs accept a limit on how large an mdoc status list may inflate; it defaults to 16 MiB and bounds decompressed status-list memory use.
verifyStatusListToken accepts a decompressed-size limit for a status list.
@owf/cose exports verifyX5t to check a COSE structure's protected x5t against a certificate.
New APIs and options 2
DocRequestInfo accepts extensions and reads them with getExtension, including for the euWrprc registration certificate.
Issuer.sign, IssuerSignedBuilder.sign, and IsoMdocDcApi.createRequest's readerAuth option accept includeX5t to add a SHA-256 leaf-certificate x5t to the protected header; it is off by default.
Fixes and other changes 4
JARM accepts its Content-Type in any casing.
A Key Binding JWT accepts its typ in any casing and with the application/ prefix.
A registration certificate accepts its typ in any casing and with the application/ prefix.
When mdoc status cannot be verified, the failed check reason and default IssuerAuth.verify error now identify the status or identifier list and its URI.