release-please
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -32,2 +32,14 @@ "use strict"; | ||
const presetFactory = require('conventional-changelog-conventionalcommits'); | ||
// Perform some post processing on the commits parsed by conventional commits: | ||
// 1. don't allow BREAKING CHANGES to have two newlines: | ||
const stream_2 = require("stream"); | ||
class PostProcessCommits extends stream_2.Transform { | ||
_transform(chunk, _encoding, done) { | ||
chunk.notes.forEach(note => { | ||
note.text = note.text.split(/\r?\n/)[0]; | ||
}); | ||
this.push(JSON.stringify(chunk, null, 4) + '\n'); | ||
done(); | ||
} | ||
} | ||
class ConventionalCommits { | ||
@@ -86,2 +98,3 @@ constructor(options) { | ||
.pipe(conventionalCommitsParser(preset.parserOpts)) | ||
.pipe(new PostProcessCommits({ objectMode: true })) | ||
.pipe(conventionalChangelogWriter(context, preset.writerOpts)); | ||
@@ -88,0 +101,0 @@ stream.on('error', (err) => { |
@@ -7,2 +7,9 @@ # Changelog | ||
### [4.1.1](https://www.github.com/googleapis/release-please/compare/v4.1.0...v4.1.1) (2020-04-10) | ||
### Bug Fixes | ||
* stop parsing BREAKING CHANGE message after two newlines ([#404](https://www.github.com/googleapis/release-please/issues/404)) ([32d07cb](https://www.github.com/googleapis/release-please/commit/32d07cb00f455f50e877cc4050521be934d59718)) | ||
## [4.1.0](https://www.github.com/googleapis/release-please/compare/v4.0.3...v4.1.0) (2020-04-08) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "release-please", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "generate release PRs based on the conventionalcommits.org spec", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
194031
3591