@itentialopensource/adapter-kafkav2 0.10.0 → 0.12.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
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.12.0 [08-03-2023]
3
+
4
+ * Add seperate sasl props for consumer and producer
5
+
6
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!10
7
+
8
+ ---
9
+
10
+ ## 0.11.0 [08-01-2023]
11
+
12
+ * Add seperate sasl props for consumer and producer
13
+
14
+ See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!10
15
+
16
+ ---
17
+
2
18
  ## 0.10.0 [07-19-2023]
3
19
 
4
20
  * Add seperate sasl props for consumer and producer
package/README.md CHANGED
@@ -97,13 +97,6 @@ This section defines **all** the properties that are available for the adapter,
97
97
  "broker:9093"
98
98
  ],
99
99
  "clientId": "my-app",
100
- "connectTimeout": 10000,
101
- "requestTimeout": 30000,
102
- "autoConnect": true,
103
- "connectRetryOptions": {},
104
- "idleConnection": 300000,
105
- "reconnectOnIdle": true,
106
- "maxAsyncRequests": 10,
107
100
  "ssl": {},
108
101
  "sasl": {}
109
102
  },
@@ -113,15 +106,7 @@ This section defines **all** the properties that are available for the adapter,
113
106
  "partitionerType": 0
114
107
  },
115
108
  "consumer": {
116
- "groupId": "kafka-node-group",
117
- "autoCommit": false,
118
- "autoCommitIntervalMs": 5000,
119
- "fetchMaxWaitMs": 100,
120
- "fetchMinBytes": 1,
121
- "fetchMaxBytes": 1048576,
122
- "fromOffset": true,
123
- "encoding": "utf8",
124
- "keyEncoding": "utf8"
109
+ "groupId": "kafka-node-group"
125
110
  }
126
111
  }
127
112
  ```
@@ -302,14 +287,7 @@ The following properties are used to define the Kafka Consumer. These properties
302
287
  | Property | Description |
303
288
  | ------- | ------- |
304
289
  | groupId | consumer group id, default `kafka-node-group`.|
305
- | autoCommit | Auto commit config.|
306
- | autoCommitIntervalMs | |
307
- | fetchMaxWaitMs | max wait time is the maximum amount of time in milliseconds to block waiting if insufficient data is available at the time the request is issued, default 100ms|
308
- | fetchMinBytes | minimum number of bytes of messages that must be available to give a response, default 1 byte.|
309
- | fetchMaxBytes | maximum bytes to include in the message set for this partition. This helps bound the size of the response.|
310
- | fromOffset | If set true, consumer will fetch message from the given offset in the payloads.|
311
- | encoding | If set to 'buffer', values will be returned as raw buffer objects..|
312
- | keyEncoding | |
290
+
313
291
 
314
292
  ## Parsing Properties
315
293
 
@@ -324,13 +302,13 @@ The `parseMessage` property allows the user to define how they want the Kafka me
324
302
  ## Send message sample payload
325
303
 
326
304
  ```json
327
- {
328
- topic: 'topic-name',
329
- messages: [
330
- { value: 'hello world' },
331
- { value: 'hey hey!' }
332
- ],
333
- }
305
+ [{
306
+ "topic": "topic-name",
307
+ "messages": [
308
+ { "value": "hello world" },
309
+ { "value": "hey hey!" }
310
+ ]
311
+ }]
334
312
  ```
335
313
  For all options of messages array please follow [kafkajs documentation](https://kafka.js.org/docs/producing#producing-messages)
336
314
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.35.0",
Binary file