@rsdk/kafka.common 3.0.1-next.0 → 3.1.0-next.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.1.0-next.0](https://github.com/R-Vision/rsdk/compare/v3.0.2...v3.1.0-next.0) (2023-08-08)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **kafka:** added option to consume by topic name ([#93](https://github.com/R-Vision/rsdk/issues/93)) ([09b4c1b](https://github.com/R-Vision/rsdk/commit/09b4c1bd515c1c2c3ccda17851fbe79e64ea8ac5))
|
|
11
|
+
|
|
12
|
+
## [3.0.2](https://github.com/R-Vision/rsdk/compare/v3.0.1...v3.0.2) (2023-08-07)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rsdk/kafka.common
|
|
15
|
+
|
|
16
|
+
## [3.0.1](https://github.com/R-Vision/rsdk/compare/v3.0.0...v3.0.1) (2023-08-07)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **deps:** correctly peerDependencies ([349628f](https://github.com/R-Vision/rsdk/commit/349628f10da46a30d6c8b9f9387e010869318212))
|
|
21
|
+
|
|
6
22
|
## [3.0.1-next.0](https://github.com/R-Vision/rsdk/compare/v3.0.0...v3.0.1-next.0) (2023-08-07)
|
|
7
23
|
|
|
8
24
|
### Bug Fixes
|
|
@@ -3,11 +3,16 @@ export declare enum KafkaTopicType {
|
|
|
3
3
|
Consume = 0,
|
|
4
4
|
Produce = 1
|
|
5
5
|
}
|
|
6
|
-
export type
|
|
6
|
+
export type KafkaTopicMetadataByTopic = {
|
|
7
|
+
type: KafkaTopicType;
|
|
8
|
+
topicName: string;
|
|
9
|
+
};
|
|
10
|
+
export type KafkaTopicMetadataByEventType = {
|
|
7
11
|
type: KafkaTopicType;
|
|
8
12
|
topicName: string;
|
|
9
13
|
group: string;
|
|
10
14
|
partitionKeyField: string | null;
|
|
11
15
|
eventType?: Pick<EventType, '$type' | '$group' | '$partitionKeyField'>;
|
|
12
16
|
};
|
|
17
|
+
export type KafkaTopicMetadata = KafkaTopicMetadataByEventType | KafkaTopicMetadataByTopic;
|
|
13
18
|
export declare const KAFKA_TOPIC_RSDK_METADATA_SCOPE = "kafka-topic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafka.metadata.js","sourceRoot":"","sources":["../../src/metadata/kafka.metadata.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,yDAAO,CAAA;AACT,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;
|
|
1
|
+
{"version":3,"file":"kafka.metadata.js","sourceRoot":"","sources":["../../src/metadata/kafka.metadata.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,yDAAO,CAAA;AACT,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAiBY,QAAA,+BAA+B,GAAG,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/kafka.common",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0-next.0",
|
|
4
4
|
"description": "Common functionality for kafka consumers and producers",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@nestjs/common": "^10.1.3",
|
|
15
15
|
"@nestjs/microservices": "^10.1.3",
|
|
16
|
-
"@rsdk/common": "^3.0.0",
|
|
17
|
-
"@rsdk/core": "^3.0
|
|
18
|
-
"@rsdk/logging": "^3.0.0",
|
|
19
|
-
"@rsdk/metadata": "^3.0.0",
|
|
16
|
+
"@rsdk/common": "^3.1.0-next.0",
|
|
17
|
+
"@rsdk/core": "^3.1.0-next.0",
|
|
18
|
+
"@rsdk/logging": "^3.1.0-next.0",
|
|
19
|
+
"@rsdk/metadata": "^3.1.0-next.0",
|
|
20
20
|
"kafkajs": "^2.2.4",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"rxjs": "^7.0.0"
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"protobufjs": "^7.2.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "55598931db264fb6d5b5c4787c48298ed86bbc0d"
|
|
28
28
|
}
|
|
@@ -5,12 +5,19 @@ export enum KafkaTopicType {
|
|
|
5
5
|
Produce,
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type KafkaTopicMetadataByTopic = {
|
|
9
|
+
type: KafkaTopicType;
|
|
10
|
+
topicName: string;
|
|
11
|
+
};
|
|
12
|
+
export type KafkaTopicMetadataByEventType = {
|
|
9
13
|
type: KafkaTopicType;
|
|
10
14
|
topicName: string;
|
|
11
15
|
group: string;
|
|
12
16
|
partitionKeyField: string | null;
|
|
13
17
|
eventType?: Pick<EventType, '$type' | '$group' | '$partitionKeyField'>;
|
|
14
18
|
};
|
|
19
|
+
export type KafkaTopicMetadata =
|
|
20
|
+
| KafkaTopicMetadataByEventType
|
|
21
|
+
| KafkaTopicMetadataByTopic;
|
|
15
22
|
|
|
16
23
|
export const KAFKA_TOPIC_RSDK_METADATA_SCOPE = 'kafka-topic';
|