conventional-changelog-angular 5.0.1 → 5.0.6

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,50 @@
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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * 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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * 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)
23
+
24
+
25
+
26
+
27
+
28
+ ## [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)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **preset:angular:** scoped npm packages should not be seen as GitHub username ([#394](https://github.com/conventional-changelog/conventional-changelog/issues/394)) ([e332ef0](https://github.com/conventional-changelog/conventional-changelog/commit/e332ef0))
34
+
35
+
36
+
37
+
38
+
39
+ ## [5.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.1...conventional-changelog-angular@5.0.2) (2018-11-01)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * 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))
45
+
46
+
47
+
48
+
49
+
6
50
  <a name="5.0.1"></a>
7
51
  ## [5.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@5.0.0...conventional-changelog-angular@5.0.1) (2018-08-21)
8
52
 
@@ -6,5 +6,5 @@ const writerOpts = require(`./writer-opts`)
6
6
 
7
7
  module.exports = Q.all([parserOpts, writerOpts])
8
8
  .spread((parserOpts, writerOpts) => {
9
- return {parserOpts, writerOpts}
9
+ return { parserOpts, writerOpts }
10
10
  })
package/index.js CHANGED
@@ -7,5 +7,5 @@ const writerOpts = require(`./writer-opts`)
7
7
 
8
8
  module.exports = Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
9
9
  .spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
10
- return {conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts}
10
+ return { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts }
11
11
  })
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "conventional-changelog-angular",
3
- "version": "5.0.1",
3
+ "version": "5.0.6",
4
4
  "description": "conventional-changelog angular preset",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "lint": "eslint --fix .",
8
- "test": "mocha --timeout 30000 && npm run-script lint",
9
7
  "test-windows": "mocha --timeout 30000"
10
8
  },
11
9
  "repository": {
@@ -34,15 +32,9 @@
34
32
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
35
33
  },
36
34
  "homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular#readme",
37
- "devDependencies": {
38
- "better-than-before": "^1.0.0",
39
- "conventional-changelog-core": "^3.1.0",
40
- "git-dummy-commit": "^1.2.0",
41
- "shelljs": "^0.8.0",
42
- "through2": "^2.0.0"
43
- },
44
35
  "dependencies": {
45
36
  "compare-func": "^1.3.1",
46
37
  "q": "^1.5.1"
47
- }
38
+ },
39
+ "gitHead": "741e90744cdb58e82e71feb36018047d7baca768"
48
40
  }
package/parser-opts.js CHANGED
@@ -8,6 +8,6 @@ module.exports = {
8
8
  `subject`
9
9
  ],
10
10
  noteKeywords: [`BREAKING CHANGE`],
11
- revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
11
+ revertPattern: /^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,
12
12
  revertCorrespondence: [`header`, `hash`]
13
13
  }
@@ -6,7 +6,7 @@
6
6
  {{~/if}}
7
7
 
8
8
  {{~!-- commit link --}} {{#if @root.linkReferences~}}
9
- ([{{hash}}](
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
- {{~hash}}
23
+ {{~shortHash}}
24
24
  {{~/if}}
25
25
 
26
26
  {{~!-- commit references --}}
package/writer-opts.js CHANGED
@@ -39,7 +39,7 @@ function getWriterOpts () {
39
39
  commit.type = `Bug Fixes`
40
40
  } else if (commit.type === `perf`) {
41
41
  commit.type = `Performance Improvements`
42
- } else if (commit.type === `revert`) {
42
+ } else if (commit.type === `revert` || commit.revert) {
43
43
  commit.type = `Reverts`
44
44
  } else if (discard) {
45
45
  return
@@ -62,7 +62,7 @@ function getWriterOpts () {
62
62
  }
63
63
 
64
64
  if (typeof commit.hash === `string`) {
65
- commit.hash = commit.hash.substring(0, 7)
65
+ commit.shortHash = commit.hash.substring(0, 7)
66
66
  }
67
67
 
68
68
  if (typeof commit.subject === `string`) {
@@ -79,7 +79,13 @@ function getWriterOpts () {
79
79
  }
80
80
  if (context.host) {
81
81
  // User URLs.
82
- commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9]){0,38})/g, `[@$1](${context.host}/$1)`)
82
+ commit.subject = commit.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g, (_, username) => {
83
+ if (username.includes('/')) {
84
+ return `@${username}`
85
+ }
86
+
87
+ return `[@${username}](${context.host}/${username})`
88
+ })
83
89
  }
84
90
  }
85
91