conventional-changelog-angular 4.0.1 → 5.0.3

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,59 @@
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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
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="5.0.1"></a>
29
+ ## [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)
30
+
31
+
32
+
33
+
34
+ **Note:** Version bump only for package conventional-changelog-angular
35
+
36
+ <a name="5.0.0"></a>
37
+ # [5.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@4.0.1...conventional-changelog-angular@5.0.0) (2018-06-06)
38
+
39
+
40
+ ### Features
41
+
42
+ * re-use parser options within each preset ([#335](https://github.com/conventional-changelog/conventional-changelog/issues/335)) ([d3eaacf](https://github.com/conventional-changelog/conventional-changelog/commit/d3eaacf)), closes [#241](https://github.com/conventional-changelog/conventional-changelog/issues/241)
43
+
44
+
45
+ ### BREAKING CHANGES
46
+
47
+ * Re-use parser options object between components of a preset. For some
48
+ presets this may change the behavior of `conventional-recommended-bump`
49
+ as the parser options object for the `conventional-recommended-bump` options
50
+ within a preset were different than the parser options object for the
51
+ `conventional-changelog` options within a preset.
52
+
53
+ If you are not using `conventional-recommended-bump`, then this is
54
+ **not** a breaking change for you.
55
+
56
+
57
+
58
+
6
59
  <a name="4.0.1"></a>
7
60
  ## [4.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-angular@4.0.0...conventional-changelog-angular@4.0.1) (2018-06-02)
8
61
 
@@ -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
  })
@@ -1,6 +1,10 @@
1
1
  'use strict'
2
2
 
3
+ const parserOpts = require(`./parser-opts`)
4
+
3
5
  module.exports = {
6
+ parserOpts,
7
+
4
8
  whatBump: (commits) => {
5
9
  let level = 2
6
10
  let breakings = 0
@@ -24,17 +28,5 @@ module.exports = {
24
28
  ? `There is ${breakings} BREAKING CHANGE and ${features} features`
25
29
  : `There are ${breakings} BREAKING CHANGES and ${features} features`
26
30
  }
27
- },
28
-
29
- parserOpts: {
30
- headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
31
- headerCorrespondence: [
32
- `type`,
33
- `scope`,
34
- `subject`
35
- ],
36
- noteKeywords: `BREAKING CHANGE`,
37
- revertPattern: /^revert:\s([\s\S]*?)\s*This reverts commit (\w*)\./,
38
- revertCorrespondence: [`header`, `hash`]
39
31
  }
40
32
  }
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": "4.0.1",
3
+ "version": "5.0.3",
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.0.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": "97ad96fe893bd5b40ec52e24fe46f4f9cd357a1a"
48
40
  }
package/writer-opts.js CHANGED
@@ -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