Skip to content

Commit 272246b

Browse files
authored
feat: update librdkafka (#1)
requires higher librdkafka
1 parent 6426300 commit 272246b

7 files changed

Lines changed: 31 additions & 19 deletions

File tree

.semaphore/semaphore.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ agent:
88
global_job_config:
99
prologue:
1010
commands:
11-
- sem-version node 16
12-
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
11+
- sem-version node 18
12+
- curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=7.25.1 sh -
13+
- source /home/semaphore/.bashrc
1314
- pnpm config set store-dir=~/.pnpm-store
1415
- checkout
1516
- git submodule init

ci/semantic-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ if git log --oneline -n 1 | grep -v "chore(release)" > /dev/null; then
66
touch .env
77
env UID=${UID} PNPM_STORE=$(pnpm config get store-dir) docker-compose --profile tests up -d
88
docker-compose exec tester pnpm i
9+
docker-compose exec tester pnpm binary:build
910
docker-compose exec tester pnpm test
1011
docker-compose exec tester pnpm test:e2e
1112
pnpm semantic-release

config.d.ts

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ====== Generated from librdkafka 1.9.2 file CONFIGURATION.md ======
1+
// ====== Generated from librdkafka 2.0.2 file CONFIGURATION.md ======
22
// Code that generated this is a derivative work of the code from Nam Nguyen
33
// https://gist.github.com/ntgn81/066c2c8ec5b4238f85d1e9168a04e3fb
44

@@ -306,6 +306,11 @@ export interface GlobalConfig {
306306
*/
307307
"open_cb"?: any;
308308

309+
/**
310+
* Address resolution callback (set with rd_kafka_conf_set_resolve_cb()).
311+
*/
312+
"resolve_cb"?: any;
313+
309314
/**
310315
* Application opaque (set with rd_kafka_conf_set_opaque())
311316
*/
@@ -351,6 +356,13 @@ export interface GlobalConfig {
351356
*/
352357
"broker.version.fallback"?: string;
353358

359+
/**
360+
* Allow automatic topic creation on the broker when subscribing to or assigning non-existent topics. The broker must also be configured with `auto.create.topics.enable=true` for this configuration to take effect. Note: the default value (true) for the producer is different from the default value (false) for the consumer. Further, the consumer default value is different from the Java consumer (true), and this property is not supported by the Java producer. Requires broker version >= 0.11.0.0, for older broker versions only the broker configuration applies.
361+
*
362+
* @default false
363+
*/
364+
"allow.auto.create.topics"?: boolean;
365+
354366
/**
355367
* Protocol used to communicate with brokers.
356368
*
@@ -446,7 +458,12 @@ export interface GlobalConfig {
446458
"ssl.keystore.password"?: string;
447459

448460
/**
449-
* Path to OpenSSL engine library. OpenSSL >= 1.1.0 required.
461+
* Comma-separated list of OpenSSL 3.0.x implementation providers. E.g., "default,legacy".
462+
*/
463+
"ssl.providers"?: string;
464+
465+
/**
466+
* **DEPRECATED** Path to OpenSSL engine library. OpenSSL >= 1.1.x required. DEPRECATED: OpenSSL engine support is deprecated and should be replaced by OpenSSL 3 providers.
450467
*/
451468
"ssl.engine.location"?: string;
452469

@@ -472,7 +489,7 @@ export interface GlobalConfig {
472489
/**
473490
* Endpoint identification algorithm to validate broker hostname using broker certificate. https - Server (broker) hostname verification as specified in RFC2818. none - No endpoint verification. OpenSSL >= 1.0.2 required.
474491
*
475-
* @default none
492+
* @default https
476493
*/
477494
"ssl.endpoint.identification.algorithm"?: 'none' | 'https';
478495

@@ -638,7 +655,7 @@ export interface ProducerGlobalConfig extends GlobalConfig {
638655
"enable.gapless.guarantee"?: boolean;
639656

640657
/**
641-
* Maximum number of messages allowed on the producer queue. This queue is shared by all topics and partitions.
658+
* Maximum number of messages allowed on the producer queue. This queue is shared by all topics and partitions. A value of 0 disables this limit.
642659
*
643660
* @default 100000
644661
*/
@@ -918,13 +935,6 @@ export interface ConsumerGlobalConfig extends GlobalConfig {
918935
* @default false
919936
*/
920937
"check.crcs"?: boolean;
921-
922-
/**
923-
* Allow automatic topic creation on the broker when subscribing to or assigning non-existent topics. The broker must also be configured with `auto.create.topics.enable=true` for this configuraiton to take effect. Note: The default value (false) is different from the Java consumer (true). Requires broker version >= 0.11.0.0, for older broker versions only the broker configuration applies.
924-
*
925-
* @default false
926-
*/
927-
"allow.auto.create.topics"?: boolean;
928938
}
929939

930940
export interface TopicConfig {
@@ -1079,4 +1089,4 @@ export interface ConsumerTopicConfig extends TopicConfig {
10791089
* @default 0
10801090
*/
10811091
"consume.callback.max.messages"?: number;
1082-
}
1092+
}

deps/librdkafka

errors.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ====== Generated from librdkafka 1.9.2 file src-cpp/rdkafkacpp.h ======
1+
// ====== Generated from librdkafka 2.0.2 file src-cpp/rdkafkacpp.h ======
22
export const CODES: { ERRORS: {
33
/* Internal errors to rdkafka: */
44
/** Begin internal error codes (**-200**) */
@@ -342,4 +342,4 @@ export const CODES: { ERRORS: {
342342
ERR_FEATURE_UPDATE_FAILED: number,
343343
/** Request principal deserialization failed during forwarding (**97**) */
344344
ERR_PRINCIPAL_DESERIALIZATION_FAILURE: number,
345-
}}
345+
}}

lib/error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LibrdKafkaError.wrap = errorWrap;
2727
* @enum {number}
2828
* @constant
2929
*/
30-
// ====== Generated from librdkafka 1.9.2 file src-cpp/rdkafkacpp.h ======
30+
// ====== Generated from librdkafka 2.0.2 file src-cpp/rdkafkacpp.h ======
3131
LibrdKafkaError.codes = {
3232

3333
/* Internal errors to rdkafka: */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@makeomatic/node-rdkafka",
33
"version": "2.14.2",
44
"description": "Node.js bindings for librdkafka",
5-
"librdkafka": "1.9.2",
5+
"librdkafka": "2.0.2",
66
"main": "lib/index.js",
77
"publishConfig": {
88
"access": "public"

0 commit comments

Comments
 (0)