Skip to content

feat(ddd-kit): phase i.1, kit combinators and test helpers - #74

Merged
axelhamil merged 6 commits into
devfrom
refactor/phase-i-1-kit
Oct 29, 2026
Merged

axelhamil merged 6 commits into
devfrom
refactor/phase-i-1-kit

Conversation

@axelhamil

Copy link
Copy Markdown
Owner
  • Result: map, flatMap, mapError, match, unwrapOr, typed Result.all, combine with a generic error
  • Option: toResult (value or lazy error), tryMap, equals with an optional comparator
  • UUID.parse returns a typed id; uuidv7 is strictly monotonic within a process, clock going backwards included
  • Domain events carry an optional eventId, reused as the outbox row id; value objects compare by key-order insensitive JSON (sameJson, honours toJSON)
  • BaseRepository and ScopedRepository take an error type parameter, defaulting to string
  • mockPort (@packages/test/bun) and mockInstrumentation for typed port doubles
  • Purely additive: no existing caller touched; pre-push chain green (ddd-kit 311 tests, api 927)

@axelhamil
axelhamil merged commit 34fe9f5 into dev Oct 29, 2026
1 check passed
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