conventional-changelog-writer 3.0.7 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,86 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- <a name="3.0.7"></a>
6
+ ## [4.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@4.0.1...conventional-changelog-writer@4.0.2) (2018-11-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bad release of conventional-changelog-writer ([b5da9af](https://github.com/conventional-changelog/conventional-changelog/commit/b5da9af))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@4.0.0...conventional-changelog-writer@4.0.1) (2018-11-01)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Upgrade to Lerna 3, fix Node.js v11 error ([#385](https://github.com/conventional-changelog/conventional-changelog/issues/385)) ([cdef282](https://github.com/conventional-changelog/conventional-changelog/commit/cdef282))
23
+
24
+
25
+
26
+
27
+
28
+ <a name="4.0.0"></a>
29
+ # [4.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@3.0.9...conventional-changelog-writer@4.0.0) (2018-05-29)
30
+
31
+
32
+ ### Chores
33
+
34
+ * **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0))
35
+
36
+
37
+ ### Code Refactoring
38
+
39
+ * remove anchor from header templates ([#301](https://github.com/conventional-changelog/conventional-changelog/issues/301)) ([346f24f](https://github.com/conventional-changelog/conventional-changelog/commit/346f24f)), closes [#186](https://github.com/conventional-changelog/conventional-changelog/issues/186)
40
+
41
+
42
+ ### BREAKING CHANGES
43
+
44
+ * **package:** Set the package's minimum required Node version to be the oldest LTS
45
+ currently supported by the Node Release working group. At this time,
46
+ that is Node 6 (which is in its Maintenance LTS phase).
47
+ * Anchor tags are removed from the changelog header templates. The
48
+ rendered Markdown will no longer contain anchor tags proceeding the
49
+ version number header that constitutes the changelog header. This means
50
+ that consumers of rendered markdown will not be able to use a URL that
51
+ has been constructed to contain a version number anchor tag reference,
52
+ since the anchor tag won't exist in the rendered markdown.
53
+
54
+ It's stronly recomended consumers use the full URL path to the release
55
+ page for a given version, as that URL is a permalink to that verison,
56
+ contains all relavent release information, and does not, otherwise, rely
57
+ on the anchor tag being excessible from the current page view.
58
+
59
+ As an example, for version `2.0.0` of a GitHub project, the following
60
+ URL should be used:
61
+ - https://github.com/conventional-changelog/releaser-tools/releases/tag/v2.0.0
62
+
63
+
64
+
65
+
66
+ <a name="3.0.9"></a>
67
+ ## [3.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@3.0.8...conventional-changelog-writer@3.0.9) (2018-03-28)
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * revert previous change ([2f4530f](https://github.com/conventional-changelog/conventional-changelog/commit/2f4530f))
73
+
74
+
75
+
76
+
77
+ <a name="3.0.8"></a>
78
+ ## [3.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@3.0.7...conventional-changelog-writer@3.0.8) (2018-03-27)
79
+
80
+
81
+
82
+
83
+ **Note:** Version bump only for package conventional-changelog-writer
84
+
85
+ <a name="3.0.7"></a>
7
86
  ## [3.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@3.0.6...conventional-changelog-writer@3.0.7) (2018-03-27)
8
87
 
9
88
 
@@ -11,7 +90,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
90
 
12
91
  **Note:** Version bump only for package conventional-changelog-writer
13
92
 
14
- <a name="3.0.6"></a>
93
+ <a name="3.0.6"></a>
15
94
  ## [3.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-writer@3.0.5...conventional-changelog-writer@3.0.6) (2018-03-27)
16
95
 
17
96
 
package/README.md CHANGED
@@ -9,7 +9,6 @@
9
9
  $ npm install --save conventional-changelog-writer
10
10
  ```
11
11
 
12
-
13
12
  ## Usage
14
13
 
15
14
  ```js
package/lib/util.js CHANGED
@@ -54,14 +54,19 @@ function getCommitGroups (groupBy, commits, groupsSort, commitsSort) {
54
54
  title = false
55
55
  }
56
56
 
57
- commits.sort(commitsSort)
57
+ if (commitsSort) {
58
+ commits.sort(commitsSort)
59
+ }
60
+
58
61
  commitGroups.push({
59
62
  title: title,
60
63
  commits: commits
61
64
  })
62
65
  })
63
66
 
64
- commitGroups.sort(groupsSort)
67
+ if (groupsSort) {
68
+ commitGroups.sort(groupsSort)
69
+ }
65
70
 
66
71
  return commitGroups
67
72
  }
@@ -89,10 +94,15 @@ function getNoteGroups (notes, noteGroupsSort, notesSort) {
89
94
  }
90
95
  })
91
96
 
92
- retGroups.sort(noteGroupsSort)
93
- _.forEach(retGroups, function (group) {
94
- group.notes.sort(notesSort)
95
- })
97
+ if (noteGroupsSort) {
98
+ retGroups.sort(noteGroupsSort)
99
+ }
100
+
101
+ if (notesSort) {
102
+ _.forEach(retGroups, function (group) {
103
+ group.notes.sort(notesSort)
104
+ })
105
+ }
96
106
 
97
107
  return retGroups
98
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-changelog-writer",
3
- "version": "3.0.7",
3
+ "version": "4.0.2",
4
4
  "description": "Write logs based on conventional commits and templates",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
@@ -16,6 +16,9 @@
16
16
  "url": "https://github.com/conventional-changelog/conventional-changelog.git"
17
17
  },
18
18
  "license": "MIT",
19
+ "engines": {
20
+ "node": ">=6.9.0"
21
+ },
19
22
  "files": [
20
23
  "index.js",
21
24
  "cli.js",
@@ -34,7 +37,7 @@
34
37
  ],
35
38
  "dependencies": {
36
39
  "compare-func": "^1.3.1",
37
- "conventional-commits-filter": "^1.1.6",
40
+ "conventional-commits-filter": "^2.0.1",
38
41
  "dateformat": "^3.0.0",
39
42
  "handlebars": "^4.0.2",
40
43
  "json-stringify-safe": "^5.0.1",
@@ -44,15 +47,11 @@
44
47
  "split": "^1.0.0",
45
48
  "through2": "^2.0.0"
46
49
  },
47
- "devDependencies": {
48
- "concat-stream": "^1.6.0"
49
- },
50
50
  "scripts": {
51
- "lint": "eslint --fix .",
52
- "test": "npm run lint && mocha --timeout 30000",
53
51
  "test-windows": "echo 'make work on windows'"
54
52
  },
55
53
  "bin": {
56
54
  "conventional-changelog-writer": "cli.js"
57
- }
55
+ },
56
+ "gitHead": "bfd7593c4ce82c5835a9fa8f45796dfd6d697409"
58
57
  }