nest_core 0.1.1
nest_core: ^0.1.1 copied to clipboard
Core dependency injection and module system for Nest Dart - a NestJS-inspired framework for building modular Dart applications.
Changelog #
All notable changes to the nest_core package will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2025-08-02 #
0.1.0 - 2025-08-02 #
Added #
- Core dependency injection system with ApplicationContainer
- Module-based architecture with import/export mechanism
- Service registration support for singletons, factories, and lazy singletons
- Lifecycle hooks with onModuleInit and onModuleDestroy
- Access control with service export restrictions
- Error handling with ServiceNotExportedException
- Circular dependency detection during module registration
- Type-safe service resolution with compile-time checks
- Named instance support for service registration
- Service disposal with cleanup functions
- Module context for debugging and testing
- Container monitoring with readiness checks and service availability
Features #
- ApplicationContainer for centralized service management
- Abstract Module base class for organizing services
- Locator interface for type-safe dependency injection
- ModuleContext for tracking module relationships
- Scoped service access with export validation
- Automatic dependency resolution with proper initialization order
Documentation #
- Complete API documentation
- Getting started guide with examples
- Module lifecycle documentation
- Service registration patterns
- Testing guidelines and examples
This is the initial release of nest_core, providing the foundation for building modular Dart applications with dependency injection.