Official compatibility package for @swoft/core-architecture ā @swoft/core/architecture
npm install @swoft/core-architectureš Official compatibility package for domains migrating from @swoft/core-architecture to the new unified @swoft/core package.
This package provides seamless backward compatibility during the platform refactoring. It re-exports all functionality from @swoft/core/architecture using the old package name.
``typescript`
import { AggregateRoot, Entity, DomainEvent } from '@swoft/core-architecture';
`typescript`
import { AggregateRoot, Entity, DomainEvent } from '@swoft/core/architecture';
All DDD architecture patterns:
- AggregateRoot - Domain aggregate base classEntity
- - Domain entity base classEntityId
- - Strongly-typed entity identifiersDomainEvent
- - Domain event base classValueObject
- - Value object base classBusinessAction
- - Business action patterns
- And more...
- ā
Phase 1: Compatibility package available (no changes needed)
- š Phase 2: Gradual migration to @swoft/core/architecture`
- šļø Phase 3: Deprecation warnings (6+ months notice)
- šļø Phase 4: Package removal (major version bump)
Current: ā
Production Ready
Deprecation: Not before v3.0.0
Support: Full compatibility maintained
---
Part of the Swoft Platform compatibility layer.