Releases: tulios/kafkajs
Releases · tulios/kafkajs
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.0
[2.1.0] - 2022-06-28
Added
- Add
pause
function toeachMessage
/eachBatch
to pause the current topic-partition #1364 - The
KafkaMessage
type is now a union between the pre-Kafka 0.10 message format and the current #1401
Fixed
- Fix 100% CPU utilization when all brokers are unavailable #1402
- Fix persistent error when trying to produce after a topic authorization error #1385
- Fix error when aborting or committing an empty transaction #1388
- Don't re-process messages from a paused partition after breaking the consumption flow #1382
v2.0.2
v2.0.1
v2.0.0
[2.0.0] - 2022-05-06
⚠️ This is the first major version released in 4 years, and contains a few important breaking changes. A migration guide has been prepared to help with the migration process. Be sure to read it before upgrading from older versions of KafkaJS.
Big thanks to @priitkaard for contributing some amazing performance improvements included in this release! Expect to see higher throughput and more efficient resource utilization compared to previous versions, especially in scenarios where you have an uneven distribution of messages across partitions.
Added
- Validate configEntries when creating topics #1309
- New
topics
argument forconsumer.subscribe
to subscribe to multiple topics #1313 - Support duplicate header keys #1132
Removed
- BREAKING: Drop support for Node 10 and 12 #1333
- BREAKING: Remove deprecated enum
ResourceTypes
#1334 - BREAKING: Remove deprecated argument
topic
fromadmin.fetchOffsets
#1335 - BREAKING: Remove deprecated method
getTopicMetadata
from admin client #1336 - BREAKING: Remove typo type
TopicPartitionOffsetAndMedata
#1338 - BREAKING: Remove deprecated error property originalError. Replaced by
cause
#1341
Changed
- BREAKING: Change default partitioner to Java compatible #1339
- Improve consumer performance #1258
- BREAKING: Enforce request timeout by default #1337
- Honor default replication factor and partition count when creating topics #1305
- Increase default authentication timeout to 10 seconds #1340
Fixed
v1.16.0
[1.16.0] - 2022-02-09
Added
- Allow manual heartbeating from inside
eachMessage
handler #1255 - Add
rebalancing
consumer event #1067 #1079 - Add overload typings for all event types #1202
- Return
configSource
inadmin.decribeConfigs
#1023 - Add
topics
property toadmin.fetchOffsets
to fetch offsets for multiple topics #992 #998 - Improve error output from
admin.createTopic
#1104 - Export Error classes #1254
- Validate
brokers
list contains strings #1284 - Throw error when failing to stop or disconnect consumer #960
Changed
- Don't commit offsets from
consumer.seek
whenautoCommit
isfalse
#1012 - Do not restart the consumer on non-retriable errors #1274
- Downgrade consumer rebalance error log to
warn
#1279 - Make default round-robin partitioner topic-aware #1112
Fixed
- Fix
offset
type ofconsumer.seek
#981 - Fix crash when used in Electron app built with electron-builder #984
- Improve performance of Fetch requests #985
- Fix crash when using topics with name of built-in Javascript functions #995
- Fix type of consumer constructor to require config object #1002
- Fix message type to allow
null
key #1037 - Respect
heartbeatInterval
when invokingheartbeat
concurrently #1026 - Fix type of
timestamp
ofLoggerEntryContent
to be string #1082 - Fix return type of
admin.describeAcls
#1118 - Fix consumer getting stuck in
DISCONNECTING
state if in-flight requests time out during disconnect #1208 - Fix failed serialization of BigInts when logging #1234
- Fix crash when committing offsets for a topic before consumer initialization #1235
- Reauthenticate to all brokers on demand #1241
- Remove unnecessary warn log when calling
admin.deleteTopicRecords
with offset-1
#1265 - Handle empty control batches #1256
- Send empty topic array as null when fetching metadata #1184