changelog.js in angularjs-rails-resource-1.0.0.pre.3 vs changelog.js in angularjs-rails-resource-1.0.0.pre.4
- old
+ new
@@ -140,11 +140,11 @@
var writeChangelog = function(stream, commits, version) {
var sections = {
fix: {},
feat: {},
perf: {},
- deprecate: {},
+ deprecates: {},
breaks: {}
};
sections.breaks[EMPTY_COMPONENT] = [];
@@ -153,9 +153,18 @@
var component = commit.component || EMPTY_COMPONENT;
if (section) {
section[component] = section[component] || [];
section[component].push(commit);
+ }
+
+ if (commit.deprecates) {
+ sections.deprecates[component] = sections.deprecates[component] || [];
+ commit.deprecates.forEach(function (deprecation) {
+ sections.deprecates[component].push({
+ subject: deprecation
+ });
+ });
}
if (commit.breaking) {
sections.breaks[component] = sections.breaks[component] || [];
sections.breaks[component].push({
\ No newline at end of file