conventional-recommended-bump 6.0.12 → 6.1.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,13 @@
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.1.0](https://www.github.com/conventional-changelog/conventional-changelog/compare/v6.0.12...v6.1.0) (2020-12-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * **conventional-recommended-bump:** support for '--skip-unstable' ([#698](https://www.github.com/conventional-changelog/conventional-changelog/issues/698)) ([3a5b41e](https://www.github.com/conventional-changelog/conventional-changelog/commit/3a5b41e0ccdcdfb81f1b75f295975b0ab0f48683))
12
+
6
13
  ### [6.0.12](https://www.github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@6.0.11...v6.0.12) (2020-12-30)
7
14
 
8
15
 
package/README.md CHANGED
@@ -18,6 +18,7 @@ Got the idea from https://github.com/conventional-changelog/conventional-changel
18
18
  - [config](#config)
19
19
  - [whatBump](#whatbump)
20
20
  - [tagPrefix](#tagprefix)
21
+ - [skipUnstable](#skipunstable)
21
22
  - [lernaPackage](#lernapackage)
22
23
  - [path](#path)
23
24
  - [parserOpts](#parseropts)
@@ -112,6 +113,12 @@ Specify a prefix for the git tag that will be taken into account during the comp
112
113
 
113
114
  For instance if your version tag is prefixed by `version/` instead of `v` you would specifying `--tagPrefix=version/` using the CLI, or `version/` as the value of the `tagPrefix` option.
114
115
 
116
+ ##### skipUnstable
117
+
118
+ **Type:** `boolean`
119
+
120
+ If true, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2
121
+
115
122
  ##### lernaPackage
116
123
 
117
124
  **Type:** `string`
package/cli.js CHANGED
@@ -26,6 +26,7 @@ const cli = meow(`
26
26
  -l, --lerna-package Recommend a bump for a specific lerna package (:pkg-name@1.0.0)
27
27
  -t, --tag-prefix Tag prefix to consider when reading the tags
28
28
  --commit-path Recommend a bump scoped to a specific directory
29
+ --skip-unstable If given, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2
29
30
  `, {
30
31
  flags: {
31
32
  preset: {
@@ -67,7 +68,8 @@ const cli = meow(`
67
68
  const options = {
68
69
  path: cli.flags.commitPath,
69
70
  lernaPackage: cli.flags.lernaPackage,
70
- tagPrefix: cli.flags.tagPrefix
71
+ tagPrefix: cli.flags.tagPrefix,
72
+ skipUnstable: cli.flags.skipUnstable
71
73
  }
72
74
  const flags = cli.flags
73
75
  const preset = flags.preset
package/index.js CHANGED
@@ -63,7 +63,8 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
63
63
  gitSemverTags({
64
64
  lernaTags: !!options.lernaPackage,
65
65
  package: options.lernaPackage,
66
- tagPrefix: options.tagPrefix
66
+ tagPrefix: options.tagPrefix,
67
+ skipUnstable: options.skipUnstable
67
68
  }, (err, tags) => {
68
69
  if (err) {
69
70
  return cb(err)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-recommended-bump",
3
- "version": "6.0.12",
3
+ "version": "6.1.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"