nest_core 0.1.1 copy "nest_core: ^0.1.1" to clipboard
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 #

Added #

  • Async providers support - The providers method now supports async/await for services requiring async initialization (e.g., SharedPreferences)

Fixed #

  • Module registration - Fixed async provider registration to properly await service initialization

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.

2
likes
140
points
12
downloads

Publisher

verified publisherkhode.io

Weekly Downloads

Core dependency injection and module system for Nest Dart - a NestJS-inspired framework for building modular Dart applications.

Documentation

API reference

License

MIT (license)

Dependencies

get_it, logger

More

Packages that depend on nest_core