@quanticjs/quanticjs 5.10.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,10 @@ export interface QuanticModuleOptions {
3
3
  redis?: boolean | {
4
4
  url?: string;
5
5
  };
6
- events?: boolean;
6
+ events?: boolean | {
7
+ brokers: string[];
8
+ clientId: string;
9
+ };
7
10
  metrics?: boolean;
8
11
  workflow?: boolean;
9
12
  unleash?: {
@@ -29,12 +29,13 @@ let QuanticModule = class QuanticModule {
29
29
  if (options.events) {
30
30
  try {
31
31
  // eslint-disable-next-line @typescript-eslint/no-require-imports
32
- const { QuanticEventsModule } = require('@quanticjs/events');
33
- imports.push(QuanticEventsModule.forRoot());
32
+ const { QuanticEventsKafkaModule } = require('@quanticjs/events-kafka');
33
+ const eventsConfig = options.events === true ? {} : options.events;
34
+ imports.push(QuanticEventsKafkaModule.forRoot(eventsConfig));
34
35
  }
35
36
  catch {
36
- this.logger.warn('events option provided but @quanticjs/events is not installed. ' +
37
- 'Run: npm install @quanticjs/events');
37
+ this.logger.warn('events option provided but @quanticjs/events-kafka is not installed. ' +
38
+ 'Run: npm install @quanticjs/events-kafka @quanticjs/events-core');
38
39
  }
39
40
  }
40
41
  if (options.metrics) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quanticjs/quanticjs",
3
- "version": "5.10.0",
3
+ "version": "6.0.0",
4
4
  "description": "Umbrella package — re-exports @quanticjs/core with opt-in module loading via QuanticModule.forRoot()",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,22 +18,26 @@
18
18
  "clean": "rm -rf dist"
19
19
  },
20
20
  "dependencies": {
21
- "@quanticjs/core": "^5.10.0"
21
+ "@quanticjs/core": "^6.0.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@nestjs/common": "^11.0.0",
25
25
  "@nestjs/cqrs": "^11.0.3",
26
- "@quanticjs/events": "^5.10.0",
27
- "@quanticjs/feature-flags": "^5.10.0",
28
- "@quanticjs/health": "^5.10.0",
29
- "@quanticjs/metrics": "^5.10.0",
30
- "@quanticjs/redis": "^5.10.0",
31
- "@quanticjs/testing": "^5.10.0",
32
- "@quanticjs/workflow": "^5.10.0",
33
- "@quanticjs/workflow-kogito": "^5.10.0"
26
+ "@quanticjs/events-core": "^6.0.0",
27
+ "@quanticjs/events-kafka": "^6.0.0",
28
+ "@quanticjs/feature-flags": "^6.0.0",
29
+ "@quanticjs/health": "^6.0.0",
30
+ "@quanticjs/metrics": "^6.0.0",
31
+ "@quanticjs/redis": "^6.0.0",
32
+ "@quanticjs/testing": "^6.0.0",
33
+ "@quanticjs/workflow": "^6.0.0",
34
+ "@quanticjs/workflow-kogito": "^6.0.0"
34
35
  },
35
36
  "peerDependenciesMeta": {
36
- "@quanticjs/events": {
37
+ "@quanticjs/events-core": {
38
+ "optional": true
39
+ },
40
+ "@quanticjs/events-kafka": {
37
41
  "optional": true
38
42
  },
39
43
  "@quanticjs/feature-flags": {