Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kafka-node

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kafka-node - npm Package Compare versions

Comparing version 0.2.26 to 0.2.27

4

CHANGELOG.md
# kafka-node CHANGELOG
## 2015-05-11, Version 0.2.27
- Deps: upgrade snappy to 3.2.0
- Zookeeper#listConsumers: ignore error when there is no such node in zookeeper
## 2015-04-23, Version 0.2.26

@@ -4,0 +8,0 @@ - Fix: add callback to consumer.autoCommit method [#198](https://github.com/SOHU-Co/kafka-node/pull/198)

2

lib/client.js

@@ -89,3 +89,3 @@ 'use strict';

this.closeBrokers(this.longpollingBrokers);
this.zk.client.close();
this.zk.close();
cb && cb();

@@ -92,0 +92,0 @@ };

@@ -253,3 +253,5 @@ 'use strict';

function () {
that.listConsumers(groupId);
if (!that.closed) {
that.listConsumers(groupId);
}
},

@@ -259,3 +261,6 @@ function (error, children) {

debug(error);
that.emit('error', error);
// Ignore NO_NODE error here #157
if (error.name !== 'NO_NODE') {
that.emit('error', error);
}
} else {

@@ -403,2 +408,7 @@ that.emit('consumersChanged');

Zookeeper.prototype.close = function () {
this.closed = true;
this.client.close();
};
var ZookeeperConsumerMappings = function () {

@@ -405,0 +415,0 @@ this.consumerTopicMap = {};

{
"name": "kafka-node",
"description": "node client for Apache kafka, only support kafka 0.8 and above",
"version": "0.2.26",
"version": "0.2.27",
"main": "kafka.js",

@@ -16,3 +16,3 @@ "dependencies": {

"retry": "~0.6.1",
"snappy": "~3.0.8"
"snappy": "^3.2.0"
},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -41,2 +41,7 @@ Kafka-node

### Events
- `ready`: this event is emitted when producer is ready to send messages.
- `error`: this is the error event propagates from internal client, producer should always listen it.
### send(payloads, cb)

@@ -120,2 +125,7 @@ * `payloads`: **Array**,array of `ProduceRequest`, `ProduceRequest` is a JSON object like:

### Events
- `ready`: this event is emitted when producer is ready to send messages.
- `error`: this is the error event propagates from internal client, producer should always listen it.
### send(payloads, cb)

@@ -352,2 +362,3 @@ * `payloads`: **Array**,array of `ProduceRequest`, `ProduceRequest` is a JSON object like:

// Auto commit config
autoCommit: true,
autoCommitIntervalMs: 5000,

@@ -354,0 +365,0 @@ // The 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc