conventional-changelog-writer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,11 @@ | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/stevemao/conventional-changelog-writer/compare/v1.0.2...v1.0.3) (2016-02-06) | ||
### Bug Fixes | ||
* **firstRelease:** correct logic ([43552a2](https://github.com/stevemao/conventional-changelog-writer/commit/43552a2)) | ||
<a name="1.0.2"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.2](https://github.com/stevemao/conventional-changelog-writer/compare/v1.0.1...v1.0.2) (2016-02-06) |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var commits = []; | ||
var firstGeneration = true; | ||
var firstRelease = true; | ||
var neverGenerated = true; | ||
@@ -116,5 +116,3 @@ | ||
if (!firstGeneration || options.doFlush) { | ||
firstGeneration = false; | ||
if (!firstRelease || options.doFlush) { | ||
if (options.includeDetails) { | ||
@@ -130,2 +128,3 @@ this.push({ | ||
firstRelease = false; | ||
commits = []; | ||
@@ -132,0 +131,0 @@ savedKeyCommit = keyCommit; |
{ | ||
"name": "conventional-changelog-writer", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Write logs based on conventional commits and templates", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/conventional-changelog-writer", |
@@ -555,2 +555,14 @@ 'use strict'; | ||
}); | ||
upstream.write({ | ||
header: 'feat(scope): broadcast $destroy event on scope destruction', | ||
body: null, | ||
footer: null, | ||
notes: [{ | ||
title: 'BREAKING CHANGE', | ||
text: 'No backward compatibility.' | ||
}], | ||
references: [], | ||
committerDate: '2015-04-07 14:17:05 +1000', | ||
version: 'v0.1.4' | ||
}); | ||
upstream.end(); | ||
@@ -567,4 +579,8 @@ | ||
expect(chunk).to.contain('1.0.0'); | ||
expect(chunk).not.to.contain('2.0.0'); | ||
if (i === 0) { | ||
expect(chunk).to.contain('1.0.0'); | ||
expect(chunk).not.to.contain('2.0.0'); | ||
} else { | ||
expect(chunk).to.contain('0.1.4'); | ||
} | ||
@@ -574,3 +590,3 @@ i++; | ||
}, function() { | ||
expect(i).to.equal(1); | ||
expect(i).to.equal(2); | ||
done(); | ||
@@ -763,2 +779,14 @@ })); | ||
}); | ||
upstream.write({ | ||
header: 'feat(scope): broadcast $destroy event on scope destruction', | ||
body: null, | ||
footer: null, | ||
notes: [{ | ||
title: 'BREAKING CHANGE', | ||
text: 'No backward compatibility.' | ||
}], | ||
references: [], | ||
committerDate: '2015-04-07 14:17:05 +1000', | ||
version: 'v2.0.290' | ||
}); | ||
upstream.end(); | ||
@@ -776,4 +804,8 @@ | ||
expect(chunk).to.contain('1.0.0'); | ||
expect(chunk).not.to.contain('2.0.0'); | ||
if (i === 0) { | ||
expect(chunk).to.contain('1.0.0'); | ||
expect(chunk).not.to.contain('2.0.0'); | ||
} else { | ||
expect(chunk).to.contain('2.0.290'); | ||
} | ||
@@ -783,3 +815,3 @@ i++; | ||
}, function() { | ||
expect(i).to.equal(1); | ||
expect(i).to.equal(2); | ||
done(); | ||
@@ -786,0 +818,0 @@ })); |
92967
2342