intentjs / intent

The Intent Framework
https://tryintent.com
MIT License
357 stars 13 forks source link

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

Closed vinayak25 closed 2 months ago

vinayak25 commented 2 months ago

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.