conventional-recommended-bump 4.0.4 → 6.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 +69 -0
- package/index.js +12 -8
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,75 @@
|
|
|
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
|
+
# [6.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@5.0.1...conventional-recommended-bump@6.0.0) (2019-07-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* refactor!: modify gitSemverTags to take options first (#390) ([dc8aeda](https://github.com/conventional-changelog/conventional-changelog/commit/dc8aeda)), closes [#390](https://github.com/conventional-changelog/conventional-changelog/issues/390)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* gitSemverTags now takes options followed by callback.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [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)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* 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))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [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)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* ! 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))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### BREAKING CHANGES
|
|
40
|
+
|
|
41
|
+
* if ! is in the commit header, it now indicates a BREAKING CHANGE, and the description is used as the body.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [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)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* preset load error message should handle objects ([fb4a8d1](https://github.com/conventional-changelog/conventional-changelog/commit/fb4a8d1))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# [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)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* **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))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
* 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))
|
|
69
|
+
* **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)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
6
75
|
## [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)
|
|
7
76
|
|
|
8
77
|
|
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
|
-
|
|
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
|
|
|
@@ -55,7 +60,11 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
|
|
|
55
60
|
|
|
56
61
|
const warn = typeof parserOpts.warn === `function` ? parserOpts.warn : noop
|
|
57
62
|
|
|
58
|
-
gitSemverTags(
|
|
63
|
+
gitSemverTags({
|
|
64
|
+
lernaTags: !!options.lernaPackage,
|
|
65
|
+
package: options.lernaPackage,
|
|
66
|
+
tagPrefix: options.tagPrefix
|
|
67
|
+
}, (err, tags) => {
|
|
59
68
|
if (err) {
|
|
60
69
|
return cb(err)
|
|
61
70
|
}
|
|
@@ -73,7 +82,7 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
|
|
|
73
82
|
warn(`No commits since last release`)
|
|
74
83
|
}
|
|
75
84
|
|
|
76
|
-
let result = whatBump(commits)
|
|
85
|
+
let result = whatBump(commits, options)
|
|
77
86
|
|
|
78
87
|
if (result && result.level != null) {
|
|
79
88
|
result.releaseType = VERSIONS[result.level]
|
|
@@ -83,11 +92,6 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
|
|
|
83
92
|
|
|
84
93
|
cb(null, result)
|
|
85
94
|
}))
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
lernaTags: !!options.lernaPackage,
|
|
89
|
-
package: options.lernaPackage,
|
|
90
|
-
tagPrefix: options.tagPrefix
|
|
91
95
|
})
|
|
92
96
|
}).catch(err => cb(err))
|
|
93
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conventional-recommended-bump",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
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": "^
|
|
35
|
-
"conventional-changelog-preset-loader": "^2.0
|
|
36
|
-
"conventional-commits-filter": "^2.0.
|
|
37
|
-
"conventional-commits-parser": "^3.0.
|
|
34
|
+
"concat-stream": "^2.0.0",
|
|
35
|
+
"conventional-changelog-preset-loader": "^2.2.0",
|
|
36
|
+
"conventional-commits-filter": "^2.0.2",
|
|
37
|
+
"conventional-commits-parser": "^3.0.3",
|
|
38
38
|
"git-raw-commits": "2.0.0",
|
|
39
|
-
"git-semver-tags": "^
|
|
39
|
+
"git-semver-tags": "^3.0.0",
|
|
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": "
|
|
47
|
+
"gitHead": "dadbbf8b1acbe4b3a8f345633bde3f4a4ad0bea4"
|
|
48
48
|
}
|