Skip to content

Releases

v1.11.0

Choose a tag to compare

@ojasvajain ojasvajain released this 07 Oct 18:56
c38afb3

Enhancements

  1. References librdkafka 2.16.0. Refer to the librdkafka 2.16.0 release notes for more information.
  2. Support generating a JSON Schema title from a JSON payload (#505)
  3. Add support for saving Azure key version with DEK (#507)
  4. Pass context when clients make KEK calls to DEK Registry (#508)
  5. Add support for inline validation rules (#522)
  6. Add Variant, Decimal, and Timestamp CEL functions (#524)
  7. Add prebuilt binaries for linux-s390x (IBM Z), for both glibc and musl (#527)
  8. Integrate the Schema Registry serdes with the promisified Kafka clients (#543). The serde integration and clusterId() are added on an experimental basis and may change or be removed in a future release.
    • Add clusterId to the producer, consumer and admin clients to fetch the id of the cluster the client is connected to. It is available on both the node-rdkafka API and the promisified API.
    • Add the js.key.serializer.builder / js.value.serializer.builder producer properties and the js.key.deserializer.builder / js.value.deserializer.builder consumer properties, taking the new kafka{Avro,Json,Protobuf}{Serializer,Deserializer}Builder() builders. The client builds the serdes while connecting, applies them to every key and value, and closes them when it disconnects. A builder can either create a Schema Registry client from a ClientConfig (owned and closed together with the serde) or be given one with setSchemaRegistryClient (never closed by the serde). build(config, isKey) is handed a copy of the full client configuration and returns the serde together with the configuration it did not consume; the client is created with the properties every builder left in place, so a property consumed by any builder never reaches librdkafka.
    • The ASSOCIATED subject name strategy (the default of the builders) resolves the Kafka cluster id lazily, on the first subject lookup, through a resolver the client hands the serde once connected (setClusterIdResolver): connecting no longer waits on it and an explicit subject.name.strategy.kafka.cluster.id still takes precedence. Concurrent resolutions share a single call into librdkafka, so however many serdes or in-flight sends need the id at once, only one native worker waits on it.
    • send() rejects an invalid topic or messages list before serializing, and reports serializer failures as KeySerializationError / ValueSerializationError (with the original error as cause). Deserializer failures are reported on the message, as deserializedKey.error / deserializedValue.error (KeyDeserializationError / ValueDeserializationError), so that the record is still delivered.
  9. The promisified (KafkaJS-compatible) producer.connect() and consumer.connect()
    now retry on transient connection errors instead of failing on the first one,
    controlled by retry.retries (default 5). Each attempt is bounded by the
    connection-setup timeout (connectionTimeout + authenticationTimeout) plus a
    small margin rather than a fixed 30s, and the wait between attempts grows
    exponentially from retry.initialRetryTime up to retry.maxRetryTime (with
    jitter), as in KafkaJS. retry.initialRetryTime/retry.maxRetryTime now also
    map to reconnect.backoff.ms/reconnect.backoff.max.ms, so the reconnection
    attempts librdkafka makes within each connect attempt follow the same backoff.
    Note: this changes the default behavior of connect() — against a
    persistently-unreachable broker it now makes up to retries + 1 attempts before
    rejecting, instead of rejecting after a single attempt. Set retry: { retries: 0 }
    to restore the single-attempt behavior. Only transient connection errors are
    retried (transport failures, all brokers down, name resolution failures and
    timeouts); any other error, such as an authentication or configuration error,
    fails fast. Concurrent connect() calls on the same client now share a single
    in-flight connection attempt rather than the second call throwing.

v1.11.0-rc1

v1.11.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@ojasvajain ojasvajain released this 07 Oct 16:39
b106e5a

Enhancements

  1. References librdkafka 2.16.0. Refer to the librdkafka 2.16.0 release notes for more information.
  2. Support generating a JSON Schema title from a JSON payload (#505)
  3. Add support for saving Azure key version with DEK (#507)
  4. Pass context when clients make KEK calls to DEK Registry (#508)
  5. Add support for inline validation rules (#522)
  6. Add Variant, Decimal, and Timestamp CEL functions (#524)
  7. Add prebuilt binaries for linux-s390x (IBM Z), for both glibc and musl (#527)
  8. Integrate the Schema Registry serdes with the promisified Kafka clients (#543). The serde integration and clusterId() are added on an experimental basis and may change or be removed in a future release.
    • Add clusterId to the producer, consumer and admin clients to fetch the id of the cluster the client is connected to. It is available on both the node-rdkafka API and the promisified API.
    • Add the js.key.serializer.builder / js.value.serializer.builder producer properties and the js.key.deserializer.builder / js.value.deserializer.builder consumer properties, taking the new kafka{Avro,Json,Protobuf}{Serializer,Deserializer}Builder() builders. The client builds the serdes while connecting, applies them to every key and value, and closes them when it disconnects. A builder can either create a Schema Registry client from a ClientConfig (owned and closed together with the serde) or be given one with setSchemaRegistryClient (never closed by the serde). build(config, isKey) is handed a copy of the full client configuration and returns the serde together with the configuration it did not consume; the client is created with the properties every builder left in place, so a property consumed by any builder never reaches librdkafka.
    • The ASSOCIATED subject name strategy (the default of the builders) resolves the Kafka cluster id lazily, on the first subject lookup, through a resolver the client hands the serde once connected (setClusterIdResolver): connecting no longer waits on it and an explicit subject.name.strategy.kafka.cluster.id still takes precedence. Concurrent resolutions share a single call into librdkafka, so however many serdes or in-flight sends need the id at once, only one native worker waits on it.
    • send() rejects an invalid topic or messages list before serializing, and reports serializer failures as KeySerializationError / ValueSerializationError (with the original error as cause). Deserializer failures are reported on the message, as deserializedKey.error / deserializedValue.error (KeyDeserializationError / ValueDeserializationError), so that the record is still delivered.
  9. The promisified (KafkaJS-compatible) producer.connect() and consumer.connect()
    now retry on transient connection errors instead of failing on the first one,
    controlled by retry.retries (default 5). Each attempt is bounded by the
    connection-setup timeout (connectionTimeout + authenticationTimeout) plus a
    small margin rather than a fixed 30s, and the wait between attempts grows
    exponentially from retry.initialRetryTime up to retry.maxRetryTime (with
    jitter), as in KafkaJS. retry.initialRetryTime/retry.maxRetryTime now also
    map to reconnect.backoff.ms/reconnect.backoff.max.ms, so the reconnection
    attempts librdkafka makes within each connect attempt follow the same backoff.
    Note: this changes the default behavior of connect() — against a
    persistently-unreachable broker it now makes up to retries + 1 attempts before
    rejecting, instead of rejecting after a single attempt. Set retry: { retries: 0 }
    to restore the single-attempt behavior. Only transient connection errors are
    retried (transport failures, all brokers down, name resolution failures and
    timeouts); any other error, such as an authentication or configuration error,
    fails fast. Concurrent connect() calls on the same client now share a single
    in-flight connection attempt rather than the second call throwing.

v1.10.1

Choose a tag to compare

@emasab emasab released this 10 Sep 13:21
87aff63

Enhancements

  1. References librdkafka 2.15.1. Refer to the librdkafka 2.15.1 release notes for more information.

Fixes

  1. Preserve HTTP status on Schema Registry error responses (#519)
  2. Upgrade transitive dependencies in package-lock.json for security patches (#525)
  3. Store a message as last consumed offset only after processing eachMessage or resolving offsets in eachBatch, at the same time when it's stored for being committed (#525)
  4. Avoid a single message duplicate when seeking back for reprocessing a message or batch (#525)
  5. Fix a crash when an admin operation fails before its result event is received, caused by the event being uninitialized in the admin workers (#525)

v1.10.1-rc1

v1.10.1-rc1 Pre-release
Pre-release

Choose a tag to compare

@emasab emasab released this 09 Sep 21:16
0c5e934

Enhancements

  1. References librdkafka 2.15.1. Refer to the librdkafka 2.15.1 release notes for more information.

Fixes

  1. Preserve HTTP status on Schema Registry error responses (#519)
  2. Upgrade transitive dependencies in package-lock.json for security patches (#525)
  3. Store a message as last consumed offset only after processing eachMessage or resolving offsets in eachBatch, at the same time when it's stored for being committed (#525)
  4. Avoid a single message duplicate when seeking back for reprocessing a message or batch (#525)
  5. Fix a crash when an admin operation fails before its result event is received, caused by the event being uninitialized in the admin workers (#525)

v1.10.1-alpha.0

v1.10.1-alpha.0 Pre-release
Pre-release

Choose a tag to compare

@Devarsh010 Devarsh010 released this 26 Aug 08:07

v1.10.1-alpha.0 is an alpha maintenance release. It's not supported.

Enhancements

  1. Add prebuilt binaries for Linux s390x (IBM Z), both glibc and musl, across the
    supported Node.js ABIs.

v1.10.0

Choose a tag to compare

@PratRanj07 PratRanj07 released this 01 Jul 13:34
5889e9a

v1.10.0 is a feature release. It is supported for all usage.

Enhancements

  1. References librdkafka v2.15.0. Refer to the librdkafka v2.15.0 release notes for more information.
  2. Support for union-of-pools/auto-pool mapping for schema registry (#500)

Fixes

  1. Handle non-HTTP errors during retries (#499)

v1.10.0-rc1

v1.10.0-rc1 Pre-release
Pre-release

Choose a tag to compare

@PratRanj07 PratRanj07 released this 01 Jul 10:11
43257d7

v1.10.0 is a feature release candidate. It is not supported.

Enhancements

  1. References librdkafka v2.15.0. Refer to the librdkafka v2.15.0 release notes for more information.
  2. Support for union-of-pools/auto-pool mapping for schema registry (#500)

Fixes

  1. Handle non-HTTP errors during retries (#499)

v1.9.1

Choose a tag to compare

@Devarsh010 Devarsh010 released this 03 Jun 10:29
cf4cf8f

v1.9.1 is a maintenance release. It is supported for all usage.

Enhancements

  1. References librdkafka v2.14.2. Refer to the librdkafka v2.14.2 release notes for more information.

Fixes

  1. Handle anyOf/allOf in JSON transforms (#479)
  2. Preserve custom subjectNameStrategy in serde constructors (#482)
  3. Correct the TypeScript return type of admin.fetchTopicMetadata to Promise<Array<ITopicMetadata>> (#367)
  4. Correct the TypeScript MemberDescription shape returned by admin.describeGroups so assignment/targetAssignment wrap a topicPartitions array and memberAssignment/memberMetadata are nullable (#487)
  5. Correct the TypeScript FetchOffsetsPartition.error type returned by admin.fetchOffsets to LibrdKafkaError | null, matching the runtime which always populates the field. It never returnes undefined. (#489)
  6. Correct broken "types" path so TS consumers get types (#484)
  7. Resolve IHeaders import for installed clients (#492)
  8. Fix error callback passing and object to the logger instead of a string (#483)
  9. Fix security vulnerabilities in dependencies (#478)
  10. Handle missing Protobuf message index bytes in ProtobufDeserializer (#481)

v1.9.1-rc1

v1.9.1-rc1 Pre-release
Pre-release

Choose a tag to compare

@Devarsh010 Devarsh010 released this 28 May 17:05
1c06ed0

v1.9.1-rc1 is a maintenance release candidate. It is not supported.

Enhancements

  1. References librdkafka v2.14.2-RC3. Refer to the librdkafka v2.14.2-RC3 release notes for more information.

Fixes

  1. Handle anyOf/allOf in JSON transforms (#479)
  2. Preserve custom subjectNameStrategy in serde constructors (#482)
  3. Correct the TypeScript return type of admin.fetchTopicMetadata to Promise<Array<ITopicMetadata>> (#367)
  4. Correct the TypeScript MemberDescription shape returned by admin.describeGroups so assignment/targetAssignment wrap a topicPartitions array and memberAssignment/memberMetadata are nullable (#487)
  5. Correct the TypeScript FetchOffsetsPartition.error type returned by admin.fetchOffsets to LibrdKafkaError | null, matching the runtime which always populates the field. It never returns undefined. (#489)
  6. Correct broken "types" path so TS consumers get types (#484)
  7. Resolve IHeaders import for installed clients (#492)
  8. Fix error callback passing and object to the logger instead of a string (#483)
  9. Fix security vulnerabilities in dependencies (#478)
  10. Handle missing Protobuf message index bytes in ProtobufDeserializer (#481)

v1.9.0

Choose a tag to compare

@emasab emasab released this 02 Apr 10:46
28dbc5d

v1.9.0 is a feature release. It is supported for all usage.

Enhancements

  1. References librdkafka v2.14.0. Refer to the librdkafka v2.14.0 release notes for more information.
  2. Add AssociatedNameStrategy (#454).
  3. Add enableAt to RuleSet (#470).