toss / nestjs-aop

A way to gracefully apply AOP to nestjs
MIT License
213 stars 24 forks source link

chore: Release v2.0.0 #14

Closed WhiteKiwi closed 1 year ago

WhiteKiwi commented 1 year ago

Changes from v1 to v2

  1. Instead of using SetMetadata, you should now use createDecorator.
  2. Multiple AopDecorators can be applied to a single method.
  3. AopDecorators now behave the same way as TypeScript decorators with regards to order.
  4. AopDecorators can now be applied to controllers as well.
icecreamparlor commented 1 year ago

AopDecorators can now be applied to controllers as well.

Controller 에서도 사용할 수 있다는 뜻은, Swagger 가 정상적으로 동작한다는 뜻일까요 ? 기존에는 Controller 가 지원되지 않았던 히스토리가 있을까요 ?

WhiteKiwi commented 1 year ago

Controller 에서도 사용할 수 있다는 뜻은, Swagger 가 정상적으로 동작한다는 뜻일까요 ?

onModuleInit 보다 컨트롤러에서 메서드를 가져가는 시점이 먼저였어서 기존에는 aop가 동작하지 않았습니다. 이제는 먼저 wrapping을 진행하고 가져간 후에 꽂아넣는 식으로 변경하여 controller에서도 동작 가능합니다