conventional-recommended-bump 2.0.8 → 4.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,63 @@
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="4.0.1"></a>
7
+ ## [4.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@4.0.0...conventional-recommended-bump@4.0.1) (2018-08-21)
8
+
9
+
10
+
11
+
12
+ **Note:** Version bump only for package conventional-recommended-bump
13
+
14
+ <a name="4.0.0"></a>
15
+ # [4.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@3.0.0...conventional-recommended-bump@4.0.0) (2018-06-06)
16
+
17
+
18
+ ### Features
19
+
20
+ * 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)
21
+
22
+
23
+ ### BREAKING CHANGES
24
+
25
+ * Re-use parser options object between components of a preset. For some
26
+ presets this may change the behavior of `conventional-recommended-bump`
27
+ as the parser options object for the `conventional-recommended-bump` options
28
+ within a preset were different than the parser options object for the
29
+ `conventional-changelog` options within a preset.
30
+
31
+ If you are not using `conventional-recommended-bump`, then this is
32
+ **not** a breaking change for you.
33
+
34
+
35
+
36
+
37
+ <a name="3.0.0"></a>
38
+ # [3.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@2.0.9...conventional-recommended-bump@3.0.0) (2018-05-29)
39
+
40
+
41
+ ### Chores
42
+
43
+ * **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0))
44
+
45
+
46
+ ### BREAKING CHANGES
47
+
48
+ * **package:** Set the package's minimum required Node version to be the oldest LTS
49
+ currently supported by the Node Release working group. At this time,
50
+ that is Node 6 (which is in its Maintenance LTS phase).
51
+
52
+
53
+
54
+
55
+ <a name="2.0.9"></a>
56
+ ## [2.0.9](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@2.0.8...conventional-recommended-bump@2.0.9) (2018-04-16)
57
+
58
+
59
+
60
+
61
+ **Note:** Version bump only for package conventional-recommended-bump
62
+
6
63
  <a name="2.0.8"></a>
7
64
  ## [2.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-recommended-bump@2.0.7...conventional-recommended-bump@2.0.8) (2018-03-27)
8
65
 
package/README.md CHANGED
@@ -1,9 +1,30 @@
1
- # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverall-image]][coverall-url]
1
+ # conventional-recommended-bump
2
2
 
3
3
  > Get a recommended version bump based on conventional commits.
4
4
 
5
5
  Got the idea from https://github.com/conventional-changelog/conventional-changelog/pull/29
6
6
 
7
+ ## Table of Contents
8
+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
9
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
10
+
11
+
12
+ - [Install](#install)
13
+ - [Usage](#usage)
14
+ - [API](#api)
15
+ - [options](#options)
16
+ - [ignoreReverted](#ignorereverted)
17
+ - [preset](#preset)
18
+ - [config](#config)
19
+ - [whatBump](#whatbump)
20
+ - [tagPrefix](#tagprefix)
21
+ - [lernaPackage](#lernapackage)
22
+ - [parserOpts](#parseropts)
23
+ - [callback](#callback)
24
+ - [License](#license)
25
+
26
+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
27
+
7
28
  ## Install
8
29
 
9
30
  ```bash
@@ -18,7 +39,7 @@ const conventionalRecommendedBump = require(`conventional-recommended-bump`);
18
39
  conventionalRecommendedBump({
19
40
  preset: `angular`
20
41
  }, (error, recommendation) => {
21
- console.log(result.releaseType); // 'major'
42
+ console.log(recommendation.releaseType); // 'major'
22
43
  });
23
44
  ```
24
45
 
@@ -116,15 +137,41 @@ callback(error, recommendation) {};
116
137
 
117
138
  `releaseType` is a `string`: Possible values: `major`, `minor` and `patch`, or `undefined` if `whatBump` does not return sa valid `level` property, or the `level` property is not set by `whatBump`.
118
139
 
140
+ ## Debugging
141
+
142
+ To assist users of `conventional-recommended-bump` with debugging the behavior of this module we use the [debug](https://www.npmjs.com/package/debug) utility package to print information about the release process to the console. To enable debug message printing, the environment variable `DEBUG`, which is the variable used by the `debug` package, must be set to a value configured by the package containing the debug messages to be printed.
143
+
144
+ To print debug messages on a unix system set the environment variable `DEBUG` with the name of this package prior to executing `conventional-recommended-bump`:
145
+
146
+ ```bash
147
+ DEBUG=conventional-recommended-bump conventional-recommended-bump
148
+ ```
149
+
150
+ On the Windows command line you may do:
151
+
152
+ ```bash
153
+ set DEBUG=conventional-recommended-bump
154
+ conventional-recommended-bump
155
+ ```
156
+
157
+ ## Node Support Policy
158
+
159
+ We only support [Long-Term Support](https://github.com/nodejs/Release) versions of Node.
160
+
161
+ We specifically limit our support to LTS versions of Node, not because this package won't work on other versions, but because we have a limited amount of time, and supporting LTS offers the greatest return on that investment.
162
+
163
+ It's possible this package will work correctly on newer versions of Node. It may even be possible to use this package on older versions of Node, though that's more unlikely as we'll make every effort to take advantage of features available in the oldest LTS version we support.
164
+
165
+ As each Node LTS version reaches its end-of-life we will remove that version from the `node` `engines` property of our package's `package.json` file. Removing a Node version is considered a breaking change and will entail the publishing of a new major version of this package. We will not accept any requests to support an end-of-life version of Node. Any merge requests or issues supporting an end-of-life version of Node will be closed.
166
+
167
+ We will accept code that allows this package to run on newer, non-LTS, versions of Node. Furthermore, we will attempt to ensure our own changes work on the latest version of Node. To help in that commitment, our continuous integration setup runs against all LTS versions of Node in addition the most recent Node release; called _current_.
168
+
169
+ JavaScript package managers should allow you to install this package with any version of Node, with, at most, a warning if your version of Node does not fall within the range specified by our `node` `engines` property. If you encounter issues installing this package, please report the issue to your package manager.
170
+
171
+ ## Contributing
172
+
173
+ Please read our [contributing guide](https://github.com/conventional-changelog/conventional-changelog/blob/master/CONTRIBUTING.md) to see how you may contribute to this project.
174
+
119
175
  ## License
120
176
 
121
177
  MIT © [Steve Mao](https://github.com/stevemao)
122
-
123
- [npm-image]: https://badge.fury.io/js/conventional-recommended-bump.svg
124
- [npm-url]: https://npmjs.org/package/conventional-recommended-bump
125
- [travis-image]: https://travis-ci.org/conventional-changelog/conventional-recommended-bump.svg?branch=master
126
- [travis-url]: https://travis-ci.org/conventional-changelog/conventional-recommended-bump
127
- [daviddm-image]: https://david-dm.org/conventional-changelog/conventional-recommended-bump.svg?theme=shields.io
128
- [daviddm-url]: https://david-dm.org/conventional-changelog/conventional-recommended-bump
129
- [coverall-image]: https://coveralls.io/repos/conventional-changelog/conventional-recommended-bump/badge.svg
130
- [coverall-url]: https://coveralls.io/r/conventional-changelog/conventional-recommended-bump
package/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conventional-recommended-bump",
3
- "version": "2.0.8",
3
+ "version": "4.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"
@@ -16,6 +16,9 @@
16
16
  "url": "https://github.com/conventional-changelog/conventional-changelog.git"
17
17
  },
18
18
  "license": "MIT",
19
+ "engines": {
20
+ "node": ">=6.9.0"
21
+ },
19
22
  "files": [
20
23
  "index.js",
21
24
  "cli.js",
@@ -29,11 +32,11 @@
29
32
  ],
30
33
  "dependencies": {
31
34
  "concat-stream": "^1.6.0",
32
- "conventional-changelog-preset-loader": "^1.1.8",
33
- "conventional-commits-filter": "^1.1.6",
34
- "conventional-commits-parser": "^2.1.7",
35
- "git-raw-commits": "^1.3.6",
36
- "git-semver-tags": "^1.3.6",
35
+ "conventional-changelog-preset-loader": "^2.0.1",
36
+ "conventional-commits-filter": "^2.0.0",
37
+ "conventional-commits-parser": "^3.0.0",
38
+ "git-raw-commits": "^2.0.0",
39
+ "git-semver-tags": "^2.0.0",
37
40
  "meow": "^4.0.0",
38
41
  "q": "^1.5.1"
39
42
  },