Skip to content

Dependency Updates#9

Merged
hasib-devs merged 12 commits intomainfrom
next
Mar 8, 2025
Merged

Dependency Updates#9
hasib-devs merged 12 commits intomainfrom
next

Conversation

@hasib-devs
Copy link
Copy Markdown
Owner

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.yml and .github/workflows/release.yml: Updated Node.js version from 20 to 22. [1] [2]
  • .nvmrc: Added nvm use 22.
  • package.json: Updated Node.js engine requirement to >=22 and modified various scripts and dependencies. [1] [2]

Refactoring:

  • src/di/Container.ts: Replaced the old DIContainer class with a new Container class that supports singleton and transient lifetimes and detects circular dependencies.
  • src/core/Server.ts: Introduced a new Server class 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 a createServer function for server initialization.
  • README.md: Added instructions for setting emitDecoratorMetadata and experimentalDecorators in tsconfig.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.

@hasib-devs hasib-devs self-assigned this Mar 8, 2025
@hasib-devs hasib-devs merged commit 8762108 into main Mar 8, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant