Comparing version 1.4.7 to 1.4.8
@@ -8,2 +8,10 @@ # Changelog | ||
## [1.4.8] - 2019-02-18 | ||
### Fixed | ||
- Handle undefined message key when producing with 0.11 #247 | ||
- Fix consumer restart on find coordinator errors #253 | ||
- Crash consumer on codec not implemented error #256 | ||
- Fix error message on invalid username or password #270 | ||
## [1.4.7] - 2019-01-17 | ||
@@ -10,0 +18,0 @@ |
{ | ||
"name": "kafkajs", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"description": "A modern Apache Kafka client for node.js", | ||
@@ -56,3 +56,4 @@ "author": "Tulio Ornelas <ornelas.tulio@gmail.com>", | ||
"ip": "^1.1.5", | ||
"jest": "^23.5.0", | ||
"jest": "^24.0.0", | ||
"jest-extended": "^0.11.0", | ||
"jest-junit": "^5.1.0", | ||
@@ -59,0 +60,0 @@ "lint-staged": "^6.0.0", |
@@ -132,3 +132,3 @@ const crypto = require('crypto') | ||
if (sasl.username == null || sasl.password == null) { | ||
throw new KafkaJSSASLAuthenticationError('SASL Plain: Invalid username or password') | ||
throw new KafkaJSSASLAuthenticationError(`${this.PREFIX}: Invalid username or password`) | ||
} | ||
@@ -135,0 +135,0 @@ |
@@ -239,2 +239,9 @@ const BrokerPool = require('./brokerPool') | ||
if (e.code === 'ECONNREFUSED') { | ||
// During maintenance the current coordinator can go down; findBroker will | ||
// refresh metadata and re-throw the error. findGroupCoordinator has to re-throw | ||
// the error to go through the retry cycle. | ||
throw e | ||
} | ||
bail(e) | ||
@@ -241,0 +248,0 @@ } |
@@ -310,2 +310,6 @@ const createRetry = require('../retry') | ||
if (e.name === 'KafkaJSNotImplemented') { | ||
return bail(e) | ||
} | ||
this.logger.debug('Error while fetching data, trying again...', { | ||
@@ -312,0 +316,0 @@ groupId: this.consumerGroup.groupId, |
@@ -48,3 +48,3 @@ const Long = require('long') | ||
static sizeOfVarIntBytes(value) { | ||
const size = value === null ? -1 : Buffer.byteLength(value) | ||
const size = value == null ? -1 : Buffer.byteLength(value) | ||
@@ -51,0 +51,0 @@ if (size < 0) { |
@@ -53,2 +53,4 @@ const Decoder = require('../../../decoder') | ||
} | ||
throw e | ||
} | ||
@@ -55,0 +57,0 @@ } |
Sorry, the diff of this file is not supported yet
507493
9132
19