conventional-changelog-angular 5.0.6 → 5.0.13

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,40 @@
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.13](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular-vconventional-changelog-angular@5.0.12...conventional-changelog-angular-v5.0.13) (2021-09-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **conventional-commits-parser:** address CVE-2021-23425 ([#841](https://www.github.com/conventional-changelog/conventional-changelog/issues/841)) ([02b3d53](https://www.github.com/conventional-changelog/conventional-changelog/commit/02b3d53a0c142f0c28ee7d190d210c76a62887c2))
12
+
13
+ ## [5.0.12](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.11...conventional-changelog-angular@5.0.12) (2020-11-05)
14
+
15
+ **Note:** Version bump only for package conventional-changelog-angular
16
+
17
+
18
+
19
+
20
+
21
+ ## [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)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **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))
27
+
28
+
29
+
30
+
31
+
32
+ ## [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)
33
+
34
+ **Note:** Version bump only for package conventional-changelog-angular
35
+
36
+
37
+
38
+
39
+
6
40
  ## [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)
7
41
 
8
42
 
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][commit-message-format].
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
@@ -101,3 +101,4 @@ A detailed explanation can be found in this [document][commit-message-format].
101
101
  [daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-angular
102
102
  [coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-angular/badge.svg
103
103
  [coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-angular
104
+ [commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
- const Q = require(`q`)
4
- const parserOpts = require(`./parser-opts`)
5
- const writerOpts = require(`./writer-opts`)
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(`./parser-opts`)
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 === `feat`) {
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(`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`)
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.6",
3
+ "version": "5.0.13",
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": ">=6.9.0"
28
+ "node": ">=10"
29
29
  },
30
30
  "license": "ISC",
31
31
  "bugs": {
@@ -33,8 +33,7 @@
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": "^1.3.1",
36
+ "compare-func": "^2.0.0",
37
37
  "q": "^1.5.1"
38
- },
39
- "gitHead": "741e90744cdb58e82e71feb36018047d7baca768"
38
+ }
40
39
  }
package/parser-opts.js CHANGED
@@ -3,11 +3,11 @@
3
3
  module.exports = {
4
4
  headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
5
5
  headerCorrespondence: [
6
- `type`,
7
- `scope`,
8
- `subject`
6
+ 'type',
7
+ 'scope',
8
+ 'subject'
9
9
  ],
10
- noteKeywords: [`BREAKING CHANGE`],
10
+ noteKeywords: ['BREAKING CHANGE'],
11
11
  revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
12
- revertCorrespondence: [`header`, `hash`]
12
+ revertCorrespondence: ['header', 'hash']
13
13
  }
package/writer-opts.js CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict'
2
2
 
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
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, `./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`)
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 = `BREAKING CHANGES`
32
+ note.title = 'BREAKING CHANGES'
33
33
  discard = false
34
34
  })
35
35
 
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`
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 === `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`
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 === `string`) {
64
+ if (typeof commit.hash === 'string') {
65
65
  commit.shortHash = commit.hash.substring(0, 7)
66
66
  }
67
67
 
68
- if (typeof commit.subject === `string`) {
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: `type`,
104
- commitGroupsSort: `title`,
105
- commitsSort: [`scope`, `subject`],
106
- noteGroupsSort: `title`,
103
+ groupBy: 'type',
104
+ commitGroupsSort: 'title',
105
+ commitsSort: ['scope', 'subject'],
106
+ noteGroupsSort: 'title',
107
107
  notesSort: compareFunc
108
108
  }
109
109
  }