Skip to content

feat(ddd): add mapper abstraction + base mapper#55

Merged
pourdaavar merged 2 commits into
mainfrom
feature/base-mapper
Apr 28, 2026
Merged

feat(ddd): add mapper abstraction + base mapper#55
pourdaavar merged 2 commits into
mainfrom
feature/base-mapper

Conversation

@pourdaavar
Copy link
Copy Markdown
Contributor

Introduces DomainMapper contract and BaseMapper implementation.

  • Adds DomainMapper interface for domain ↔ persistence/DTO mapping
  • Adds type helpers (ExtractId, ExtractProps)
  • Adds BaseMapper abstract class with list helpers (toDomainList, toDTOList, toPersistenceList)
  • Re-exports mapper types from domain index
  • Exposes BaseMapper via package entrypoint

- Introduced BaseMapper class for mapping domain entities to persistence models and vice versa.
- Added DomainMapper interface and mapper type definitions for improved type safety.
- Updated index exports to include new mapper functionalities.
@pourdaavar pourdaavar self-assigned this Apr 28, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 28, 2026

🦋 Changeset detected

Latest commit: 93c1258

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@rineex/ddd Minor
@rineex/auth-core Patch
@rineex/authentication-method-otp Patch
@rineex/authentication-method-passwordless Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pourdaavar pourdaavar merged commit 0f34fab into main Apr 28, 2026
5 checks passed
@pourdaavar pourdaavar mentioned this pull request Apr 28, 2026
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