Merged
Conversation
…oller implementation
…oDriver integration
… tsyringe for dependency injection
…ainer and decorators for dependency injection
… and metadata handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to update dependencies, refactor code, and improve the overall structure of the project. The most important changes include updating the Node.js version, refactoring the dependency injection container, and enhancing the server setup and routing mechanism.
Dependency Updates:
.github/workflows/debug.ymland.github/workflows/release.yml: Updated Node.js version from 20 to 22. [1] [2].nvmrc: Addednvm use 22.package.json: Updated Node.js engine requirement to>=22and modified various scripts and dependencies. [1] [2]Refactoring:
src/di/Container.ts: Replaced the oldDIContainerclass with a newContainerclass that supports singleton and transient lifetimes and detects circular dependencies.src/core/Server.ts: Introduced a newServerclass to handle controller registration and routing.Code Enhancements:
src/decorators/Controller.ts,src/decorators/HttpMethods.ts,src/decorators/Inject.ts: Updated decorators to use the new metadata utilities and container registration. [1] [2] [3]src/index.ts: Simplified the main export file and introduced acreateServerfunction for server initialization.README.md: Added instructions for settingemitDecoratorMetadataandexperimentalDecoratorsintsconfig.json.Removed Unused Code:
src/constants.ts,src/core/DIContainer.ts: Removed old constants and deprecated DIContainer class. [1] [2]These changes collectively improve the maintainability, performance, and clarity of the project.