conventional-changelog-angular 5.0.3 → 5.0.11
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 +41 -0
- package/README.md +2 -2
- package/conventional-changelog.js +3 -3
- package/conventional-recommended-bump.js +2 -2
- package/index.js +5 -5
- package/package.json +4 -4
- package/parser-opts.js +6 -6
- package/templates/commit.hbs +2 -2
- package/writer-opts.js +38 -38
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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
|
+
## [5.0.11](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.10...conventional-changelog-angular@5.0.11) (2020-06-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency compare-func to v2 ([#647](https://github.com/conventional-changelog/conventional-changelog/issues/647)) ([de4f630](https://github.com/conventional-changelog/conventional-changelog/commit/de4f6309403ca0d46b7c6235052f4dca61ea15bc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [5.0.10](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.6...conventional-changelog-angular@5.0.10) (2020-05-08)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package conventional-changelog-angular
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [5.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.5...conventional-changelog-angular@5.0.6) (2019-11-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* revertPattern match default git revert format ([#545](https://github.com/conventional-changelog/conventional-changelog/issues/545)) ([fe449f8](https://github.com/conventional-changelog/conventional-changelog/commit/fe449f899567574a36d1819b313e2caa899052ff))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [5.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.3...conventional-changelog-angular@5.0.4) (2019-10-02)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* use full commit hash in commit link ([7a60dec](https://github.com/conventional-changelog/conventional-changelog/commit/7a60dec)), closes [#476](https://github.com/conventional-changelog/conventional-changelog/issues/476)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
## [5.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.2...conventional-changelog-angular@5.0.3) (2019-02-14)
|
|
7
48
|
|
|
8
49
|
|
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. Howev
|
|
|
64
64
|
|
|
65
65
|
Other prefixes are up to your discretion. Suggested prefixes are `build`, `ci`, `docs` ,`style`, `refactor`, and `test` for non-changelog related tasks.
|
|
66
66
|
|
|
67
|
-
Details regarding these types can be found in the official [Angular Contributing Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type)
|
|
67
|
+
Details regarding these types can be found in the official [Angular Contributing Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type).
|
|
68
68
|
|
|
69
69
|
### Scope
|
|
70
70
|
|
|
@@ -91,7 +91,7 @@ reference GitHub issues that this commit **Closes**.
|
|
|
91
91
|
|
|
92
92
|
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
|
|
93
93
|
|
|
94
|
-
A detailed explanation can be found in this [document]
|
|
94
|
+
A detailed explanation can be found in this [document](#commit-message-format).
|
|
95
95
|
|
|
96
96
|
[npm-image]: https://badge.fury.io/js/conventional-changelog-angular.svg
|
|
97
97
|
[npm-url]: https://npmjs.org/package/conventional-changelog-angular
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const Q = require(
|
|
4
|
-
const parserOpts = require(
|
|
5
|
-
const writerOpts = require(
|
|
3
|
+
const Q = require('q')
|
|
4
|
+
const parserOpts = require('./parser-opts')
|
|
5
|
+
const writerOpts = require('./writer-opts')
|
|
6
6
|
|
|
7
7
|
module.exports = Q.all([parserOpts, writerOpts])
|
|
8
8
|
.spread((parserOpts, writerOpts) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const parserOpts = require(
|
|
3
|
+
const parserOpts = require('./parser-opts')
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
parserOpts,
|
|
@@ -14,7 +14,7 @@ module.exports = {
|
|
|
14
14
|
if (commit.notes.length > 0) {
|
|
15
15
|
breakings += commit.notes.length
|
|
16
16
|
level = 0
|
|
17
|
-
} else if (commit.type ===
|
|
17
|
+
} else if (commit.type === 'feat') {
|
|
18
18
|
features += 1
|
|
19
19
|
if (level === 2) {
|
|
20
20
|
level = 1
|
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict'
|
|
2
|
-
const Q = require(
|
|
3
|
-
const conventionalChangelog = require(
|
|
4
|
-
const parserOpts = require(
|
|
5
|
-
const recommendedBumpOpts = require(
|
|
6
|
-
const writerOpts = require(
|
|
2
|
+
const Q = require('q')
|
|
3
|
+
const conventionalChangelog = require('./conventional-changelog')
|
|
4
|
+
const parserOpts = require('./parser-opts')
|
|
5
|
+
const recommendedBumpOpts = require('./conventional-recommended-bump')
|
|
6
|
+
const writerOpts = require('./writer-opts')
|
|
7
7
|
|
|
8
8
|
module.exports = Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
|
|
9
9
|
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conventional-changelog-angular",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
4
4
|
"description": "conventional-changelog angular preset",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"author": "Steve Mao",
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">=10"
|
|
29
29
|
},
|
|
30
30
|
"license": "ISC",
|
|
31
31
|
"bugs": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"compare-func": "^
|
|
36
|
+
"compare-func": "^2.0.0",
|
|
37
37
|
"q": "^1.5.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3dedddc397e7cbcf5a2ff971ca933992b9e4d11f"
|
|
40
40
|
}
|
package/parser-opts.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
|
|
5
5
|
headerCorrespondence: [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
'type',
|
|
7
|
+
'scope',
|
|
8
|
+
'subject'
|
|
9
9
|
],
|
|
10
|
-
noteKeywords: [
|
|
11
|
-
revertPattern: /^revert
|
|
12
|
-
revertCorrespondence: [
|
|
10
|
+
noteKeywords: ['BREAKING CHANGE'],
|
|
11
|
+
revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
|
|
12
|
+
revertCorrespondence: ['header', 'hash']
|
|
13
13
|
}
|
package/templates/commit.hbs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{{~/if}}
|
|
7
7
|
|
|
8
8
|
{{~!-- commit link --}} {{#if @root.linkReferences~}}
|
|
9
|
-
([{{
|
|
9
|
+
([{{shortHash}}](
|
|
10
10
|
{{~#if @root.repository}}
|
|
11
11
|
{{~#if @root.host}}
|
|
12
12
|
{{~@root.host}}/
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{{~/if}}/
|
|
21
21
|
{{~@root.commit}}/{{hash}}))
|
|
22
22
|
{{~else}}
|
|
23
|
-
{{~
|
|
23
|
+
{{~shortHash}}
|
|
24
24
|
{{~/if}}
|
|
25
25
|
|
|
26
26
|
{{~!-- commit references --}}
|
package/writer-opts.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const compareFunc = require(
|
|
4
|
-
const Q = require(
|
|
5
|
-
const readFile = Q.denodeify(require(
|
|
6
|
-
const resolve = require(
|
|
3
|
+
const compareFunc = require('compare-func')
|
|
4
|
+
const Q = require('q')
|
|
5
|
+
const readFile = Q.denodeify(require('fs').readFile)
|
|
6
|
+
const resolve = require('path').resolve
|
|
7
7
|
|
|
8
8
|
module.exports = Q.all([
|
|
9
|
-
readFile(resolve(__dirname,
|
|
10
|
-
readFile(resolve(__dirname,
|
|
11
|
-
readFile(resolve(__dirname,
|
|
12
|
-
readFile(resolve(__dirname,
|
|
9
|
+
readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'),
|
|
10
|
+
readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'),
|
|
11
|
+
readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8'),
|
|
12
|
+
readFile(resolve(__dirname, './templates/footer.hbs'), 'utf-8')
|
|
13
13
|
])
|
|
14
14
|
.spread((template, header, commit, footer) => {
|
|
15
15
|
const writerOpts = getWriterOpts()
|
|
@@ -29,43 +29,43 @@ function getWriterOpts () {
|
|
|
29
29
|
const issues = []
|
|
30
30
|
|
|
31
31
|
commit.notes.forEach(note => {
|
|
32
|
-
note.title =
|
|
32
|
+
note.title = 'BREAKING CHANGES'
|
|
33
33
|
discard = false
|
|
34
34
|
})
|
|
35
35
|
|
|
36
|
-
if (commit.type ===
|
|
37
|
-
commit.type =
|
|
38
|
-
} else if (commit.type ===
|
|
39
|
-
commit.type =
|
|
40
|
-
} else if (commit.type ===
|
|
41
|
-
commit.type =
|
|
42
|
-
} else if (commit.type ===
|
|
43
|
-
commit.type =
|
|
36
|
+
if (commit.type === 'feat') {
|
|
37
|
+
commit.type = 'Features'
|
|
38
|
+
} else if (commit.type === 'fix') {
|
|
39
|
+
commit.type = 'Bug Fixes'
|
|
40
|
+
} else if (commit.type === 'perf') {
|
|
41
|
+
commit.type = 'Performance Improvements'
|
|
42
|
+
} else if (commit.type === 'revert' || commit.revert) {
|
|
43
|
+
commit.type = 'Reverts'
|
|
44
44
|
} else if (discard) {
|
|
45
45
|
return
|
|
46
|
-
} else if (commit.type ===
|
|
47
|
-
commit.type =
|
|
48
|
-
} else if (commit.type ===
|
|
49
|
-
commit.type =
|
|
50
|
-
} else if (commit.type ===
|
|
51
|
-
commit.type =
|
|
52
|
-
} else if (commit.type ===
|
|
53
|
-
commit.type =
|
|
54
|
-
} else if (commit.type ===
|
|
55
|
-
commit.type =
|
|
56
|
-
} else if (commit.type ===
|
|
57
|
-
commit.type =
|
|
46
|
+
} else if (commit.type === 'docs') {
|
|
47
|
+
commit.type = 'Documentation'
|
|
48
|
+
} else if (commit.type === 'style') {
|
|
49
|
+
commit.type = 'Styles'
|
|
50
|
+
} else if (commit.type === 'refactor') {
|
|
51
|
+
commit.type = 'Code Refactoring'
|
|
52
|
+
} else if (commit.type === 'test') {
|
|
53
|
+
commit.type = 'Tests'
|
|
54
|
+
} else if (commit.type === 'build') {
|
|
55
|
+
commit.type = 'Build System'
|
|
56
|
+
} else if (commit.type === 'ci') {
|
|
57
|
+
commit.type = 'Continuous Integration'
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
if (commit.scope ===
|
|
61
|
-
commit.scope =
|
|
60
|
+
if (commit.scope === '*') {
|
|
61
|
+
commit.scope = ''
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
if (typeof commit.hash ===
|
|
65
|
-
commit.
|
|
64
|
+
if (typeof commit.hash === 'string') {
|
|
65
|
+
commit.shortHash = commit.hash.substring(0, 7)
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
if (typeof commit.subject ===
|
|
68
|
+
if (typeof commit.subject === 'string') {
|
|
69
69
|
let url = context.repository
|
|
70
70
|
? `${context.host}/${context.owner}/${context.repository}`
|
|
71
71
|
: context.repoUrl
|
|
@@ -100,10 +100,10 @@ function getWriterOpts () {
|
|
|
100
100
|
|
|
101
101
|
return commit
|
|
102
102
|
},
|
|
103
|
-
groupBy:
|
|
104
|
-
commitGroupsSort:
|
|
105
|
-
commitsSort: [
|
|
106
|
-
noteGroupsSort:
|
|
103
|
+
groupBy: 'type',
|
|
104
|
+
commitGroupsSort: 'title',
|
|
105
|
+
commitsSort: ['scope', 'subject'],
|
|
106
|
+
noteGroupsSort: 'title',
|
|
107
107
|
notesSort: compareFunc
|
|
108
108
|
}
|
|
109
109
|
}
|