conventional-changelog-angular 4.0.1 → 5.0.0

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,29 @@
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
+ <a name="5.0.0"></a>
7
+ # [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)
8
+
9
+
10
+ ### Features
11
+
12
+ * 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)
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * Re-use parser options object between components of a preset. For some
18
+ presets this may change the behavior of `conventional-recommended-bump`
19
+ as the parser options object for the `conventional-recommended-bump` options
20
+ within a preset were different than the parser options object for the
21
+ `conventional-changelog` options within a preset.
22
+
23
+ If you are not using `conventional-recommended-bump`, then this is
24
+ **not** a breaking change for you.
25
+
26
+
27
+
28
+
6
29
  <a name="4.0.1"></a>
7
30
  ## [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
31
 
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-changelog-angular",
3
- "version": "4.0.1",
3
+ "version": "5.0.0",
4
4
  "description": "conventional-changelog angular preset",
5
5
  "main": "index.js",
6
6
  "scripts": {