conventional-changelog-writer
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -0,1 +1,11 @@ | ||
<a name="0.5.1"></a> | ||
## [0.5.1](https://github.com/stevemao/conventional-changelog-writer/compare/v0.5.0...v0.5.1) (2016-02-03) | ||
### Bug Fixes | ||
* **context.version:** only valid a semver can decide `context.isPatch` ([59ed325](https://github.com/stevemao/conventional-changelog-writer/commit/59ed325)) | ||
<a name="0.5.0"></a> | ||
@@ -2,0 +12,0 @@ # [0.5.0](https://github.com/stevemao/conventional-changelog-writer/compare/v0.4.2...v0.5.0) (2016-02-02) |
@@ -171,3 +171,3 @@ 'use strict'; | ||
if (context.version) { | ||
if (context.version && semver.valid(context.version)) { | ||
context.isPatch = context.isPatch || semver.patch(context.version) !== 0; | ||
@@ -174,0 +174,0 @@ } |
{ | ||
"name": "conventional-changelog-writer", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Write logs based on conventional commits and templates", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/conventional-changelog-writer", |
@@ -259,2 +259,8 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url] | ||
##### doFlush | ||
Type: `boolean` Default: `true` | ||
If `true`, the stream will flush out the last bit of changelog even it doesn't satisfy `generateOn`. | ||
##### mainTemplate | ||
@@ -261,0 +267,0 @@ |
@@ -655,2 +655,17 @@ 'use strict'; | ||
it('should not error if version is not semver', function(done) { | ||
getStream() | ||
.pipe(conventionalChangelogWriter({ | ||
version: 'a.b.c' | ||
})) | ||
.on('error', function(err) { | ||
done(err); | ||
}) | ||
.pipe(through(function(chunk) { | ||
expect(chunk.toString()).to.include('a.b.c'); | ||
done(); | ||
})); | ||
}); | ||
it('should callback with error on transform', function(done) { | ||
@@ -657,0 +672,0 @@ getStream() |
84246
2121
359