Skip to content

v1.0.3 — Connection Config Foundation (Enums + DTO)

Choose a tag to compare

@Maatify Maatify released this 13 Nov 14:29
· 27 commits to main since this release

🚀 maatify/common — v1.0.3

Connection Config Foundation (Enums + DTO)

This release introduces two new core components that will serve as the
foundation for DSN-based routing and multi-profile database configuration
across the entire Maatify ecosystem.

These additions are essential for the upcoming
maatify/data-adapters Phase 10, enabling a unified and extensible
connection-definition layer.


✨ What's New

🔹 1. ConnectionTypeEnum

A standardized enum that represents all supported connection types:

  • mysql
  • mongo
  • redis

This enum guarantees consistent naming and prevents string mismatches across
resolvers, adapters, and bootstrap modules.


🔹 2. ConnectionConfigDTO

A lightweight, immutable Data Transfer Object designed to hold normalized
connection parameters.

Includes:

  • type (ConnectionTypeEnum)
  • dsn (optional)
  • host, port, user, pass, database
  • options (array)
  • profile (optional logical profile name)

This DTO will be used internally by both the bootstrap system and the
data-adapters library to guarantee clean, predictable configuration flow.


📚 Documentation

  • Updated CHANGELOG.md to reflect v1.0.3
  • New Helpers & Configuration section added to README (to be expanded in v1.1)
  • Code comments updated with full PSR-12 compliance

🧪 Testing

  • Enum serialization validated
  • DTO instantiation & immutability tested
  • No breaking changes; 100% backward compatible with v1.0.2

🔗 Part of a Bigger Roadmap

This release is the first required step for maatify/data-adapters v1.1.x,
which introduces full DSN support, string-based routing, and multi-profile
connection resolution.


© 2025 Maatify.dev — Engineered by Mohamed Abdulalim (megyptm)