@fluojs/notifications
Advanced tools
+3
-3
@@ -12,3 +12,3 @@ { | ||
| ], | ||
| "version": "1.0.0-beta.1", | ||
| "version": "1.0.0-beta.2", | ||
| "private": false, | ||
@@ -41,4 +41,4 @@ "license": "MIT", | ||
| "@fluojs/core": "^1.0.0-beta.1", | ||
| "@fluojs/di": "^1.0.0-beta.1", | ||
| "@fluojs/runtime": "^1.0.0-beta.1" | ||
| "@fluojs/di": "^1.0.0-beta.2", | ||
| "@fluojs/runtime": "^1.0.0-beta.2" | ||
| }, | ||
@@ -45,0 +45,0 @@ "devDependencies": { |
+4
-1
@@ -74,4 +74,5 @@ # @fluojs/notifications | ||
| @Inject(NotificationsService) | ||
| export class WelcomeService { | ||
| constructor(@Inject(NotificationsService) private readonly notifications: NotificationsService) {} | ||
| constructor(private readonly notifications: NotificationsService) {} | ||
@@ -92,2 +93,4 @@ async sendWelcomeEmail(userId: string, email: string) { | ||
| `NotificationsModule.forRoot(...)`는 `NotificationsService`, `NOTIFICATIONS`, `NOTIFICATION_CHANNELS`를 global provider로 export합니다. 애플리케이션 서비스는 fluo의 class-level `@Inject(...)` decorator로 의존성을 선언해야 standard-decorator DI container가 legacy parameter decorator 없이 서비스를 resolve할 수 있습니다. | ||
| ## 일반적인 패턴 | ||
@@ -94,0 +97,0 @@ |
+4
-1
@@ -74,4 +74,5 @@ # @fluojs/notifications | ||
| @Inject(NotificationsService) | ||
| export class WelcomeService { | ||
| constructor(@Inject(NotificationsService) private readonly notifications: NotificationsService) {} | ||
| constructor(private readonly notifications: NotificationsService) {} | ||
@@ -92,2 +93,4 @@ async sendWelcomeEmail(userId: string, email: string) { | ||
| `NotificationsModule.forRoot(...)` exports `NotificationsService`, `NOTIFICATIONS`, and `NOTIFICATION_CHANNELS` as global providers. Application services should declare dependencies with fluo's class-level `@Inject(...)` decorator so the standard-decorator DI container can resolve the service without legacy parameter decorators. | ||
| ## Common Patterns | ||
@@ -94,0 +97,0 @@ |
62452
1.12%196
1.55%Updated