@swoft/core-architecture
v1.0.0
Published
Official compatibility package for @swoft/core-architecture → @swoft/core/architecture
Downloads
8
Maintainers
Readme
@swoft/core-architecture (Compatibility Package)
🔄 Official compatibility package for domains migrating from @swoft/core-architecture to the new unified @swoft/core package.
Purpose
This package provides seamless backward compatibility during the platform refactoring. It re-exports all functionality from @swoft/core/architecture using the old package name.
Migration Path
Old Way (still works)
import { AggregateRoot, Entity, DomainEvent } from '@swoft/core-architecture';New Way (recommended)
import { AggregateRoot, Entity, DomainEvent } from '@swoft/core/architecture';What's Included
All DDD architecture patterns:
AggregateRoot<T>- Domain aggregate base classEntity<T>- Domain entity base classEntityId- Strongly-typed entity identifiersDomainEvent- Domain event base classValueObject- Value object base classBusinessAction- Business action patterns- And more...
Timeline
- ✅ 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)
Status
Current: ✅ Production Ready
Deprecation: Not before v3.0.0
Support: Full compatibility maintained
Part of the Swoft Platform compatibility layer.
