Skip to content

Add Service Provider, Service Provider Containers, IntentMiddleware, IntentGuard, and many more stuff.#19

Merged
vinayak25 merged 6 commits intomainfrom
feature/service-provider-containers
Sep 15, 2024
Merged

Add Service Provider, Service Provider Containers, IntentMiddleware, IntentGuard, and many more stuff.#19
vinayak25 merged 6 commits intomainfrom
feature/service-provider-containers

Conversation

@vinayak25
Copy link
Member

In this PR, I am adding following stuff:

  1. Service Providers - Now, Unlike NestJS we can now define service providers instead of defining everything in the decorators. They have two methods register and boot.
  2. Service Provider Containers - Container for multiple service providers
  3. IntentMiddleware - An abstract class which passes Intent's self Request, Response object instead of the complete execution context.
  4. IntentGuard - An abstract class for defining guards
  5. Kernel - Instead of decorators, we can now define Global Middlewares, Global Guards, and Route Specific Guards
  6. Intent will now be self exporting some essential decorators from NestJS
  7. A new @Body decorator which utilises the req.all() method
  8. Bug fixing in Request class
  9. Fixed and refactored import orders.

This PR is still in progress. Once done, I will be updating the documentation.

intentjs will now export nestjs essential decorators
@vinayak25 vinayak25 added the do-not-merge Do not Merge label Sep 8, 2024
@vinayak25 vinayak25 self-assigned this Sep 8, 2024
renamed service containers to application containers
removed request class and introduced new request mixin extending express request object
@vinayak25 vinayak25 marked this pull request as ready for review September 15, 2024 14:05
@vinayak25 vinayak25 merged commit bac06f2 into main Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Do not Merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant