Skip to content

feat: add typed message tags - #2

Merged
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags
Sep 11, 2026
Merged

feat: add typed message tags#2
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags

Conversation

@bjarn

@bjarn bjarn commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the Lettermint.MessageTag struct and new!/2 constructor.
  • Add typed EmailBuilder.tags/2 support.
  • Continue to accept atom-key and string-key maps.
  • Keep EmailBuilder.tag/2 for the legacy single tag.

Validation

  • Validate names and values without trimming or normalization.
  • Reject reserved names and duplicate case-sensitive names.
  • Allow 20 total tags, including the legacy single tag.

Documentation

  • Update direct-send and pipe-operator README examples.

Verification

  • mix format --check-formatted
  • mix test
  • Generated source check
  • GitHub test matrix for supported Elixir and OTP versions

@bjarn bjarn changed the title feat: add typed message tags (ENG-577) feat: add typed message tags Sep 10, 2026
@bjarn
bjarn requested a review from Bjornftw September 10, 2026 17:55
@bjarn
bjarn merged commit 5bdd84e into main Sep 11, 2026
3 checks passed
@bjarn
bjarn deleted the eng-577-typed-message-tags branch September 11, 2026 06:07
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.

2 participants