All notable changes will be documented in this file.
version-bump-prompt adheres to Semantic Versioning.
v6.1.0 (2020-08-29)
- Merged PR #40, which adds an
--ignore-scriptsargument. Just like the same argument in NPM, it skips running thepreversion,version, andpostversionscripts in your package.json
v6.0.0 (2020-01-28)
- Dropped support for Node 8. Now requires Node 10+
- The "version-bump-prompt" package is now just a wrapper around the scoped "@jsdevtools/version-bump-prompt" package
v5.0.0 (2019-03-10)
-
Completely rewritten CLI with new argument syntax. See the docs for details.
-
Arguments like
--majorand--minorhave been replaced with a positional argument. Sobump --majorbecomesbump major. -
The
--promptargument is no longer needed. It's now the default. If you want, you can explicitly specify it as a positional argument (e.g.bump prompt) -
The
--lockargument is no longer needed. Thepackage-lock.jsonfile is now updated by default. -
The
--grepargument is no longer needed. Just provide a list of file names and/or globs for version-bump-prompt to update. Sobump --grep ReadMe.mdbecomesbump ReadMe.md. -
Previously, version-bump-prompt always updated
package.json,bower.json, andcomponent.jsonif they existed. Now it updatespackage.jsonandpackage-lock.jsonby default if they exist. You can override the default by explicitly specifying the files (e.g.bump bower.json package.json ReadMe.md)
-
Completely rewritten in TypeScript
-
Version-Bump-Prompt now includes a Node.js API, so you can use it programmatically instead of just as a CLI
-
You now have full control over the git commit message and tag name. The
--commitand--tagarguments accept an optional string with%splaceholders, which will be replaced with the version number. This matches the behavior of the npm version command.
v4.2.0 (2018-09-30)
- Output of npm version scripts is now shown. Thanks to @didoo for the PR!
v4.1.0 (2017-11-15)
- Added
--lockoption to update thepackage-json.lockfile in addition to manifest files. See issue #20 for details. Thanks to @browniebroke for the PR!
v4.0.0 (2017-11-15)
- Dropped support for Node v4.x since it's no longer supported by
inquirer. As a result, Version-Bump-Prompt now only supports Node v6+. You can continue using Version-Bump-Prompt v3.x on Node 4.
v3.0.0 (2016-12-25)
Two big changes in this version:
- Dropped support for Node v0.x
- The
--promptoption now allows you to manually enter a version, rather than only selecting from the listed options - Added support for npm version scripts. (big thanks to szarouski for his PR)
The scripts are run the same order as thenpm versioncommand:- The
preversionscript runs before the version is updated (and before the version prompt is shown) - The
versionscript runs after the version is updated, but beforegit commitandgit tag - The
postversionscript runs aftergit commitandgit tag, but beforegit push
- The
v2.0.0 (2016-11-29)
A couple of changes to make version-bump-prompt behave more like the npm version command:
-
The
--tagoption now creates an annotated git tag rather than a lightweight tag. -
The
--tagoption now follows the same naming convention as thenpm versioncommand. The tag name isvX.X.X(same as before), and the commit message isX.X.X(no "v" prefix).