- Add re-exports for classes, types, interfaces, decorators, and helpers.
- Remove unused `export.ts` file to streamline module structure.
Signed-off-by: Max P. <Mail@MPassarello.de>
- Consolidate import paths into scoped modules for better structure.
- Refactor decorators (`Inject`, `Register`) for improved type safety.
- Add `clear` method to the DI container for easier test cleanup.
- Introduce lazy initialization for registered instances.
- Add comprehensive unit tests for decorators and DI container.
- Standardize error handling and naming conventions for exceptions.
Signed-off-by: Max P. <Mail@MPassarello.de>
- Delete all project configuration files, including ESLint, Prettier, and TypeScript settings.
- Remove GitHub workflows for CI/CD and documentation deployment.
- Delete source files, tests, and scripts related to the project.
- Clean up package.json and associated scripts.
Signed-off-by: Max P. <Mail@MPassarello.de>
BREAKING CHANGE: Consumers must use ESM-compatible environments.
All import paths now include .js extensions.
CommonJS (require) is no longer supported.
* refactor: consolidate registration decorators
- Introduced `Register` decorator to handle class and instance registration in the DI container.
- Deprecated `RegisterInstance` in favor of `Register`, which now internally handles instance registration.
- Added support for marking dependencies as deprecated with a warning logged upon first resolution.
- Updated documentation with examples and notes on deprecation.
* tests: add mode parameter to RegisterInstanceDecorator
- Introduced a `mode` parameter to the `test_RegisterInstanceDecorator` function allowing 'instance' or 'standalone' modes.
- Updated test cases to utilize the new `mode` parameter when registering an instance.
- Disabled specific ESLint rule in `Decorators.test.ts` for deprecation warnings.
- Added an additional test call to `test_RegisterInstanceDecorator` with 'instance' mode.
* docs: Reflect changes to changelog
* refactor: add region tags for overloads in Register.ts
* docs: Reflect changes to changelog
* refactor: consolidate registration decorators
- Introduced `Register` decorator to handle class and instance registration in the DI container.
- Deprecated `RegisterInstance` in favor of `Register`, which now internally handles instance registration.
- Added support for marking dependencies as deprecated with a warning logged upon first resolution.
- Updated documentation with examples and notes on deprecation.
* tests: add mode parameter to RegisterInstanceDecorator
- Introduced a `mode` parameter to the `test_RegisterInstanceDecorator` function allowing 'instance' or 'standalone' modes.
- Updated test cases to utilize the new `mode` parameter when registering an instance.
- Disabled specific ESLint rule in `Decorators.test.ts` for deprecation warnings.
- Added an additional test call to `test_RegisterInstanceDecorator` with 'instance' mode.
* docs: Reflect changes to changelog
* refactor: add region tags for overloads in Register.ts
* docs: Reflect changes to changelog
* docs: Reflect changes to changelog und push version