conventional-recommended-bump 4.0.3 → 5.0.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/index.js +7 -2
  3. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,72 @@
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.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@5.0.0...conventional-recommended-bump@5.0.1) (2019-05-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Recommend a patch bump for features when preMajor is enabled ([#452](https://github.com/conventional-changelog/conventional-changelog/issues/452)) ([3d0a520](https://github.com/conventional-changelog/conventional-changelog/commit/3d0a520))
12
+
13
+
14
+
15
+
16
+
17
+ # [5.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.1.1...conventional-recommended-bump@5.0.0) (2019-05-02)
18
+
19
+
20
+ ### Features
21
+
22
+ * ! without BREAKING CHANGE should be treated as major ([#443](https://github.com/conventional-changelog/conventional-changelog/issues/443)) ([cf22d70](https://github.com/conventional-changelog/conventional-changelog/commit/cf22d70))
23
+
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ * if ! is in the commit header, it now indicates a BREAKING CHANGE, and the description is used as the body.
28
+
29
+
30
+
31
+
32
+
33
+ ## [4.1.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.1.0...conventional-recommended-bump@4.1.1) (2019-04-11)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * preset load error message should handle objects ([fb4a8d1](https://github.com/conventional-changelog/conventional-changelog/commit/fb4a8d1))
39
+
40
+
41
+
42
+
43
+
44
+ # [4.1.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.0.4...conventional-recommended-bump@4.1.0) (2019-04-10)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * **deps:** update dependency concat-stream to v2 ([#401](https://github.com/conventional-changelog/conventional-changelog/issues/401)) ([4c09bfc](https://github.com/conventional-changelog/conventional-changelog/commit/4c09bfc))
50
+
51
+
52
+ ### Features
53
+
54
+ * conventionalcommits preset, preMajor config option ([#434](https://github.com/conventional-changelog/conventional-changelog/issues/434)) ([dde12fe](https://github.com/conventional-changelog/conventional-changelog/commit/dde12fe))
55
+ * **conventional-recommended-bump:** send options to whatBump ([#409](https://github.com/conventional-changelog/conventional-changelog/issues/409)) ([508d6d6](https://github.com/conventional-changelog/conventional-changelog/commit/508d6d6)), closes [/github.com/lerna/lerna/blob/a6733a2b864cf9d082d080bbd3bfedb04e59b0ab/core/conventional-commits/lib/recommend-version.js#L13-L21](https://github.com//github.com/lerna/lerna/blob/a6733a2b864cf9d082d080bbd3bfedb04e59b0ab/core/conventional-commits/lib/recommend-version.js/issues/L13-L21)
56
+
57
+
58
+
59
+
60
+
61
+ ## [4.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.0.3...conventional-recommended-bump@4.0.4) (2018-11-01)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * fix broken release of conventional-recommended-bump ([d9267e8](https://github.com/conventional-changelog/conventional-changelog/commit/d9267e8))
67
+
68
+
69
+
70
+
71
+
6
72
  ## [4.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.0.2...conventional-recommended-bump@4.0.3) (2018-11-01)
7
73
 
8
74
  **Note:** Version bump only for package conventional-recommended-bump
package/index.js CHANGED
@@ -29,7 +29,12 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
29
29
  try {
30
30
  presetPackage = conventionalChangelogPresetLoader(options.preset)
31
31
  } catch (err) {
32
- return cb(new Error(`Unable to load the "${options.preset}" preset package. Please make sure it's installed.`))
32
+ if (err.message === 'does not exist') {
33
+ const preset = typeof options.preset === 'object' ? options.preset.name : options.preset
34
+ return cb(new Error(`Unable to load the "${preset}" preset package. Please make sure it's installed.`))
35
+ } else {
36
+ return cb(err)
37
+ }
33
38
  }
34
39
  }
35
40
 
@@ -73,7 +78,7 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
73
78
  warn(`No commits since last release`)
74
79
  }
75
80
 
76
- let result = whatBump(commits)
81
+ let result = whatBump(commits, options)
77
82
 
78
83
  if (result && result.level != null) {
79
84
  result.releaseType = VERSIONS[result.level]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-recommended-bump",
3
- "version": "4.0.3",
3
+ "version": "5.0.1",
4
4
  "description": "Get a recommended version bump based on conventional commits",
5
5
  "bugs": {
6
6
  "url": "https://github.com/conventional-changelog/conventional-changelog/issues"
@@ -31,12 +31,12 @@
31
31
  "bump"
32
32
  ],
33
33
  "dependencies": {
34
- "concat-stream": "^1.6.0",
35
- "conventional-changelog-preset-loader": "^2.0.2",
36
- "conventional-commits-filter": "^2.0.1",
37
- "conventional-commits-parser": "^3.0.1",
38
- "git-raw-commits": "^2.0.1",
39
- "git-semver-tags": "^2.0.2",
34
+ "concat-stream": "^2.0.0",
35
+ "conventional-changelog-preset-loader": "^2.1.1",
36
+ "conventional-commits-filter": "^2.0.2",
37
+ "conventional-commits-parser": "^3.0.3",
38
+ "git-raw-commits": "2.0.0",
39
+ "git-semver-tags": "^2.0.3",
40
40
  "meow": "^4.0.0",
41
41
  "q": "^1.5.1"
42
42
  },
@@ -44,5 +44,5 @@
44
44
  "test-windows": "mocha --timeout 30000 ./test/preset-resolver.spec.js"
45
45
  },
46
46
  "bin": "cli.js",
47
- "gitHead": "80ee156a3d42409c7e9d0bc3ff0eed134cb1c529"
47
+ "gitHead": "38f5508191f8afc1a8503d1fd24e2de6d05b8738"
48
48
  }