Skip to content

docs(0.2.0): document UnmatchedReason values + fix supported versions table#3

Open
BetelGuese wants to merge 1 commit intomainfrom
docs/0.2.0-readme-types-security
Open

docs(0.2.0): document UnmatchedReason values + fix supported versions table#3
BetelGuese wants to merge 1 commit intomainfrom
docs/0.2.0-readme-types-security

Conversation

@BetelGuese
Copy link
Copy Markdown
Contributor

Summary

Documentation-only refresh. The 2026-04-26 audit flagged three doc gaps that didn't track the 0.2.0 BREAKING change to UnmatchedReason semantics: the type members had no IDE-hover JSDoc, the README's matchQuery API entry didn't mention the new specific reasons or the migration impact, and SECURITY.md "Supported Versions" still only listed 0.1.x.

Changes

  • src/types.ts — add JSDoc to the UnmatchedReason type and each union member describing what it means. The matchQuery JSDoc already covers the order-dependent "last failure" rule but the type itself was opaque in IDE hover. This change ships in dist/ (DTS rebuilt as part of this PR's verification) and is technically the only edit that would surface to npm consumers without a release. No release planned; will land at next functional minor.
  • README.md — extend the matchQuery API entry with a markdown table of UnmatchedReason values + a 0.2.0 BREAKING note for callers upgrading from 0.1.x (where every failure collapsed to 'no_credential_found').
  • SECURITY.md — Supported Versions table only listed 0.1.x. Replace with 0.2.x (current) + 0.1.x marked as superseded.

Verification

  • npm test — 116/116 passing.
  • npm run build — ESM + CJS + DTS clean. The DTS now contains the JSDoc text for hover docs.

Test plan

  • PR checks green (no functional change).
  • Render the README on github.com/openeudi/dcql and visually check the matchQuery table.

… table

Audit (2026-04-26) found three doc gaps that didn't track the 0.2.0
BREAKING change to UnmatchedReason semantics. No code changes.

- src/types.ts — add JSDoc to UnmatchedReason and each union member
  describing what it means. The matchQuery JSDoc already covers the
  order-dependent "last failure" rule but the type itself was opaque
  in IDE hover.

- README.md — extend the matchQuery API entry with a table of
  UnmatchedReason values + a 0.2.0 BREAKING note for callers
  upgrading from 0.1.x (where every failure collapsed to
  'no_credential_found').

- SECURITY.md — Supported Versions table only listed 0.1.x. Replace
  with 0.2.x (current) + 0.1.x marked as superseded.

Tests: 116/116 passing. dist/ DTS rebuilds with the new JSDoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant