From 0a2d62771dd1e0b3fee4169357532fe36c17b58c Mon Sep 17 00:00:00 2001 From: Henry Stern Date: Sun, 21 Jun 2026 12:22:28 -0300 Subject: [PATCH] record the SubjectAs/IssSub accessors under [0.1.1] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The typed-subject accessors landed on main without a changelog entry. Move them out of [Unreleased] into a [0.1.1] section so the tag has an accurate release note: SubjectAs[T] and SET.IssSub read a SET's sub_id without the caller having to reconcile the value-vs-pointer dynamic form that distinguishes a parsed SET (pointer) from one built in Go (value). Additive, non-breaking — a patch release over v0.1.0. The link references are updated to compare v0.1.0...v0.1.1. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afd03e9..b8890cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.1.1] - 2026-06-21 + +### Added + +- `SubjectAs[T]` and `SET.IssSub` accessors that read the typed `sub_id` + Subject Identifier of a `SET` without handling a value-vs-pointer + distinction by hand. A parsed `SET` holds the pointer form of its identifier + (because [`go-subjectid`](https://github.com/hstern/go-subjectid)'s registry + constructors return pointers), whereas a `SET` built in Go holds the value + form; both accessors return the value form either way. The `SET.Subject` + field documentation now states the parsed dynamic type. + ## [0.1.0] - 2026-06-21 ### Added @@ -30,5 +42,6 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). (such as OpenID CAEP and RISC) plug in typed decoders while unknown event types stay raw. -[Unreleased]: https://github.com/hstern/go-secevent/compare/v0.1.0...HEAD +[Unreleased]: https://github.com/hstern/go-secevent/compare/v0.1.1...HEAD +[0.1.1]: https://github.com/hstern/go-secevent/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/hstern/go-secevent/releases/tag/v0.1.0