From 8a0e3a3b287f7172fbfc3e4f4c20f37e92e970b8 Mon Sep 17 00:00:00 2001 From: Espen Volden Date: Wed, 9 Mar 2016 17:09:10 +0100 Subject: [PATCH] v0.2.0 --- CHANGELOG.md | 5 +++++ api.md | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc7f07f..22e77e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [0.2.0] - 2016-03-09 +### Added +- `flushTimeout` option what will flush records in the queue after + given time interval if highWaterMark hasn't been reached + ## [0.1.2] - 2015-11-16 ### Fixed - Log right amount of records. The records count that was logged was diff --git a/api.md b/api.md index c4b772f..9a93a23 100644 --- a/api.md +++ b/api.md @@ -9,5 +9,6 @@ A simple wrapper around Elasticsearch for bulk writing items | client | Elasticsearch.Client | | Elasticsearch client | | options | Object | | Options | | [options.highWaterMark] | number | 16 | Number of items to buffer before writing. Also the size of the underlying stream buffer. | +| [options.flushTimeout] | number | | Number of ms to flush records after, if highWaterMark hasn't been reached | | [options.logger] | Object | | Instance of a logger like bunyan or winston | diff --git a/package.json b/package.json index a678d2b..91d7e40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "elasticsearch-bulk-index-stream", - "version": "0.1.2", + "version": "0.2.0", "description": "A writable stream for bulk indexing records in Elasticsearch", "main": "index.js", "scripts": {