Skip to content

feat: add typed message tags - #28

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

feat: add typed message tags#28
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 exported MessageTag interface.
  • Reuse MessageTag in single-send, batch-send, message, and webhook types.
  • Keep the existing tag() and tags() methods.
  • Preserve the current object input format.

Validation

  • Enforce the documented name and value formats.
  • Reject reserved __lettermint names without regard to case.
  • Reject duplicate case-sensitive names.
  • Allow 20 total tags, including the legacy single tag.

Documentation

  • Add structured tag usage and compatibility notes to the README.

Verification

  • npm test -- --runInBand
  • npm run build
  • npm run lint

@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 a4294d1 into main Sep 10, 2026
7 checks passed
@bjarn
bjarn deleted the eng-577-typed-message-tags branch September 10, 2026 17:58
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