conventional-changelog-writer 4.0.0 → 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,6 +3,28 @@
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
+ ## [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
+
6
28
  <a name="4.0.0"></a>
7
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)
8
30
 
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": "4.0.0",
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"
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "compare-func": "^1.3.1",
40
- "conventional-commits-filter": "^2.0.0",
40
+ "conventional-commits-filter": "^2.0.1",
41
41
  "dateformat": "^3.0.0",
42
42
  "handlebars": "^4.0.2",
43
43
  "json-stringify-safe": "^5.0.1",
@@ -47,15 +47,11 @@
47
47
  "split": "^1.0.0",
48
48
  "through2": "^2.0.0"
49
49
  },
50
- "devDependencies": {
51
- "concat-stream": "^1.6.0"
52
- },
53
50
  "scripts": {
54
- "lint": "eslint --fix .",
55
- "test": "npm run lint && mocha --timeout 30000",
56
51
  "test-windows": "echo 'make work on windows'"
57
52
  },
58
53
  "bin": {
59
54
  "conventional-changelog-writer": "cli.js"
60
- }
55
+ },
56
+ "gitHead": "bfd7593c4ce82c5835a9fa8f45796dfd6d697409"
61
57
  }