Skip to content

v0.41.1

Latest

Choose a tag to compare

@nnabeyang nnabeyang released this 03 Jul 08:22
0.41.1

What's Changed

New Features

  • DID document utilities: Add DID/Handle helpers for working with resolved DID documents.
    • DID.KnownMethod extensible tag and knownMethod accessor for exhaustive switch dispatch over known DID methods.
    • Handle.invalid sentinel for representing the AT Protocol invalid-handle marker.
    • DIDDocument.pdsUrl and unverifiedHandle accessors, plus DIDDocument.Verified and a DIDHandleResolver protocol for round-trip handle verification (sync and async).
    • Public memberwise initializers on DIDDocument, DocService, and DocVerificationMethod. (#101)
  • Lenient Language parsing: Align the language string format with the strict/lenient two-tier model already used by at-uri and datetime. Lenient mode only relaxes RFC 5646 §4.1 duplicate-variant / extension-singleton checks; grammar, length cap, and ASCII charset still gate both modes. (#102)

Breaking Changes

  • DIDDocument typing: DIDDocument.did is now typed as FormatString<DID> instead of a plain String. Callers that read the raw string need to project through the format-string API. (#101)

Improvements

  • PDS validation: Hardened DID document PDS endpoint validation. (#101)