From 4d6d5619e6e314e756d4435bae9ba704ecd3a7d7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 08:50:09 +0000 Subject: [PATCH] chore(release): new version Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/array-index-withheld-elements.md | 5 ----- .changeset/initial-release.md | 5 ----- .changeset/mdoc-path-length.md | 5 ----- .changeset/next-path-on-filter-failure.md | 5 ----- .changeset/selectively-disclosable-w3c.md | 5 ----- .changeset/strict-credential-paths.md | 5 ----- presentation-exchange/CHANGELOG.md | 15 +++++++++++++++ presentation-exchange/package.json | 2 +- 8 files changed, 16 insertions(+), 31 deletions(-) delete mode 100644 .changeset/array-index-withheld-elements.md delete mode 100644 .changeset/initial-release.md delete mode 100644 .changeset/mdoc-path-length.md delete mode 100644 .changeset/next-path-on-filter-failure.md delete mode 100644 .changeset/selectively-disclosable-w3c.md delete mode 100644 .changeset/strict-credential-paths.md create mode 100644 presentation-exchange/CHANGELOG.md diff --git a/.changeset/array-index-withheld-elements.md b/.changeset/array-index-withheld-elements.md deleted file mode 100644 index bd9db4f..0000000 --- a/.changeset/array-index-withheld-elements.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': patch ---- - -When checking a presentation, an array index in a field path only matches any element for a credential that can withhold array elements: an SD-JWT VC, or a W3C credential that declares `selectively_disclosable`. For a JWT VC, a Linked Data credential or an mdoc, which present an array in full, the index is matched as it is. Before, `$.nationalities[0]` with `const: 'NL'` accepted a JWT VC with `nationalities: ['DE', 'NL']`. The new `canWithholdArrayElements` tells which credentials can. diff --git a/.changeset/initial-release.md b/.changeset/initial-release.md deleted file mode 100644 index c2b309e..0000000 --- a/.changeset/initial-release.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': minor ---- - -Initial release of `presentation-exchange`, a TypeScript implementation of DIF Presentation Exchange v1 and v2. diff --git a/.changeset/mdoc-path-length.md b/.changeset/mdoc-path-length.md deleted file mode 100644 index c49fea3..0000000 --- a/.changeset/mdoc-path-length.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': patch ---- - -mdoc input descriptors follow ISO 18013-7. An mdoc only matches an input descriptor whose `format`, or the definition's, names `mso_mdoc`. In such an input descriptor every field path names one data element, `$['']['']`, and a definition with any other path is rejected. Before, a path that named a namespace requested every element in it, and a path into an element's value requested the whole element. diff --git a/.changeset/next-path-on-filter-failure.md b/.changeset/next-path-on-filter-failure.md deleted file mode 100644 index 24c5913..0000000 --- a/.changeset/next-path-on-filter-failure.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': patch ---- - -A field now tries its next path when a path resolves only to values that fail the filter, as DIF Presentation Exchange v2 prescribes. Before, the first path that resolved decided the field. diff --git a/.changeset/selectively-disclosable-w3c.md b/.changeset/selectively-disclosable-w3c.md deleted file mode 100644 index 840b45d..0000000 --- a/.changeset/selectively-disclosable-w3c.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': patch ---- - -`selectively_disclosable` is now only on W3C credentials, where it defaults to `false`. An SD-JWT VC or an mdoc always discloses selectively. diff --git a/.changeset/strict-credential-paths.md b/.changeset/strict-credential-paths.md deleted file mode 100644 index 79c2f26..0000000 --- a/.changeset/strict-credential-paths.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'presentation-exchange': patch ---- - -A descriptor path now only selects a credential through `verifiableCredential[n]` or `vp.verifiableCredential[n]`. Before, any key followed by an index was accepted, so `$.fakeCred[0]` resolved to credential 0 although the path names nothing in the presentation. diff --git a/presentation-exchange/CHANGELOG.md b/presentation-exchange/CHANGELOG.md new file mode 100644 index 0000000..a6c7694 --- /dev/null +++ b/presentation-exchange/CHANGELOG.md @@ -0,0 +1,15 @@ +# presentation-exchange + +## 0.1.0 + +### Minor Changes + +- fbc5fca: Initial release of `presentation-exchange`, a TypeScript implementation of DIF Presentation Exchange v1 and v2. + +### Patch Changes + +- de5cfc1: When checking a presentation, an array index in a field path only matches any element for a credential that can withhold array elements: an SD-JWT VC, or a W3C credential that declares `selectively_disclosable`. For a JWT VC, a Linked Data credential or an mdoc, which present an array in full, the index is matched as it is. Before, `$.nationalities[0]` with `const: 'NL'` accepted a JWT VC with `nationalities: ['DE', 'NL']`. The new `canWithholdArrayElements` tells which credentials can. +- de5cfc1: mdoc input descriptors follow ISO 18013-7. An mdoc only matches an input descriptor whose `format`, or the definition's, names `mso_mdoc`. In such an input descriptor every field path names one data element, `$['']['']`, and a definition with any other path is rejected. Before, a path that named a namespace requested every element in it, and a path into an element's value requested the whole element. +- 30dc76d: A field now tries its next path when a path resolves only to values that fail the filter, as DIF Presentation Exchange v2 prescribes. Before, the first path that resolved decided the field. +- de5cfc1: `selectively_disclosable` is now only on W3C credentials, where it defaults to `false`. An SD-JWT VC or an mdoc always discloses selectively. +- 5111aa8: A descriptor path now only selects a credential through `verifiableCredential[n]` or `vp.verifiableCredential[n]`. Before, any key followed by an index was accepted, so `$.fakeCred[0]` resolved to credential 0 although the path names nothing in the presentation. diff --git a/presentation-exchange/package.json b/presentation-exchange/package.json index 2aba5fe..17fdc84 100644 --- a/presentation-exchange/package.json +++ b/presentation-exchange/package.json @@ -1,6 +1,6 @@ { "name": "presentation-exchange", - "version": "0.0.0", + "version": "0.1.0", "description": "A lean TypeScript implementation of the DIF Presentation Exchange v1 and v2 specification", "license": "Apache-2.0", "repository": {