conventional-recommended-bump 5.0.1 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/index.js +5 -6
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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
+
6
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)
7
21
 
8
22
 
package/index.js CHANGED
@@ -60,7 +60,11 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
60
60
 
61
61
  const warn = typeof parserOpts.warn === `function` ? parserOpts.warn : noop
62
62
 
63
- gitSemverTags((err, tags) => {
63
+ gitSemverTags({
64
+ lernaTags: !!options.lernaPackage,
65
+ package: options.lernaPackage,
66
+ tagPrefix: options.tagPrefix
67
+ }, (err, tags) => {
64
68
  if (err) {
65
69
  return cb(err)
66
70
  }
@@ -88,11 +92,6 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg
88
92
 
89
93
  cb(null, result)
90
94
  }))
91
- },
92
- {
93
- lernaTags: !!options.lernaPackage,
94
- package: options.lernaPackage,
95
- tagPrefix: options.tagPrefix
96
95
  })
97
96
  }).catch(err => cb(err))
98
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-recommended-bump",
3
- "version": "5.0.1",
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"
@@ -32,11 +32,11 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "concat-stream": "^2.0.0",
35
- "conventional-changelog-preset-loader": "^2.1.1",
35
+ "conventional-changelog-preset-loader": "^2.2.0",
36
36
  "conventional-commits-filter": "^2.0.2",
37
37
  "conventional-commits-parser": "^3.0.3",
38
38
  "git-raw-commits": "2.0.0",
39
- "git-semver-tags": "^2.0.3",
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": "38f5508191f8afc1a8503d1fd24e2de6d05b8738"
47
+ "gitHead": "dadbbf8b1acbe4b3a8f345633bde3f4a4ad0bea4"
48
48
  }