From c6131859f5bc1939635bb98c9df61d8e86b83ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 22 Jul 2024 14:17:54 +0200 Subject: [PATCH] refactor(core): Add deprecation notice to `InternalHooks` (no-changelog) (#10139) --- packages/cli/src/InternalHooks.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/cli/src/InternalHooks.ts b/packages/cli/src/InternalHooks.ts index 1d2a9471a7279..46a5b91e3d455 100644 --- a/packages/cli/src/InternalHooks.ts +++ b/packages/cli/src/InternalHooks.ts @@ -34,6 +34,11 @@ import { ProjectRelationRepository } from './databases/repositories/projectRelat import { SharedCredentialsRepository } from './databases/repositories/sharedCredentials.repository'; import { MessageEventBus } from './eventbus/MessageEventBus/MessageEventBus'; +/** + * @deprecated Do not add to this class. To add audit or telemetry events, use + * `EventService` to emit the event and then use the `AuditEventRelay` or + * `TelemetryEventRelay` to forward them to the event bus or telemetry. + */ @Service() export class InternalHooks { constructor(