Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

commit-and-tag-version

absolute-version420.7kISC12.5.0

replacement for npm version with automatic CHANGELOG generation

conventional-changelog, recommended, changelog, automatic, workflow, version, angular, standard

readme

Commit and Tag Version

commit-and-tag-version is a fork of standard-version. Because of maintainer availability, standard-version was deprecated on 15th May 2022. The previous maintainer recommends release-please as an alternative for those who are using GitHub actions. This fork exists for those who can't switch to release-please, or who would like to continue using standard-version.

Can I simply swap the library to migrate? To migrate, you can drop in commit-and-tag-version in place of standard-version. There are no changes in 9.5.0, other than to add the package.json config key commit-and-tag-version (the previous configuration key standard-version will still work). 10.x drops support for deprecated node versions, 11.x is a formatting change if you're relying on the exact markdown format in the changelog, and 12.x drops support for node 14/16.

Why was it renamed commit-and-tag-version?. I didn't want to scope the package or name it standard-version-fork, and it was a good opportunity to make the purpose of the tool clearer. I also wanted to distinguish it from the other tool in this organisation, absolute-version, which just prints version information for pre-releases.

A utility for versioning using semver and CHANGELOG generation powered by Conventional Commits.

ci NPM version codecov Conventional Commits Community slack

Having problems? Want to contribute? Join us on the node-tooling community Slack.

How It Works

  1. Follow the Conventional Commits Specification in your repository.
  2. When you're ready to release, run commit-and-tag-version.

commit-and-tag-version will then do the following:

  1. Retrieve the current version of your repository by looking at packageFiles[1], falling back to the last git tag.
  2. bump the version in bumpFiles[1] based on your commits.
  3. Generates a changelog based on your commits (uses conventional-changelog under the hood).
  4. Creates a new commit including your bumpFiles[1] and updated CHANGELOG.
  5. Creates a new tag with the new version number.

bumpFiles, packageFiles and updaters

commit-and-tag-version uses a few key concepts for handling version bumping in your project.

  • packageFiles – User-defined files where versions can be read from and be "bumped".
    • Examples: package.json, manifest.json
    • In most cases (including the default), packageFiles are a subset of bumpFiles.
  • bumpFiles – User-defined files where versions should be "bumped", but not explicitly read from.
    • Examples: package-lock.json, npm-shrinkwrap.json
  • updaters – Simple modules used for reading packageFiles and writing to bumpFiles.

By default, commit-and-tag-version assumes you're working in a NodeJS based project... because of this, for the majority of projects you might never need to interact with these options.

That said, if you find your self asking How can I use commit-and-tag-version for additional metadata files, languages or version files? – these configuration options will help!

Maven Support (Java/Kotlin)

If you are using Maven, then just point to your pom.xml file.

commit-and-tag-version --packageFiles pom.xml --bumpFiles pom.xml

Gradle Support (Java/Kotlin)

If you are using Gradle, then just point to your build.gradle file (or build.gradle.kts if using Kotlin DSL).

commit-and-tag-version --packageFiles build.gradle --bumpFiles build.gradle

.NET Support

If you are using .NET with .csproj files. This is going to read and update only the <Version> tag in the file.

commit-and-tag-version --packageFiles <YOUR-PROJECT-NAME>.csproj --bumpFiles <YOUR-PROJECT-NAME>.csproj

YAML Support

If you are using YAML files. This is going to read and update only the version: tag in the file.

commit-and-tag-version --packageFiles file.yaml --bumpFiles file.yaml

OpenAPI Support

If you are using OpenAPI, then just point to your openapi.yaml file.

commit-and-tag-version --packageFiles openapi.yaml --bumpFiles openapi.yaml

Python Support

If you are using Python with Poetry, then point to your pyproject.toml file.

commit-and-tag-version --packageFiles pyproject.toml --bumpFiles pyproject.toml

Installing commit-and-tag-version

As a local npm run script

Install and add to devDependencies:

npm i --save-dev commit-and-tag-version

Add an npm run script to your package.json:

{
  "scripts": {
    "release": "commit-and-tag-version"
  }
}

Now you can use npm run release in place of npm version.

This has the benefit of making your repo/package more portable, so that other developers can cut releases without having to globally install commit-and-tag-version on their machine.

As global bin

Install globally (add to your PATH):

npm i -g commit-and-tag-version

Now you can use commit-and-tag-version in place of npm version.

This has the benefit of allowing you to use commit-and-tag-version on any repo/package without adding a dev dependency to each one.

Using npx

As of `npm@5.2.0,npxis installed alongsidenpm. Usingnpxyou can usecommit-and-tag-versionwithout having to keep apackage.jsonfile by running:npx commit-and-tag-version`.

This method is especially useful when using commit-and-tag-version in non-JavaScript projects.

Configuration

You can configure commit-and-tag-version either by:

  1. Placing a commit-and-tag-version stanza in your package.json (assuming your project is JavaScript).

    Note for users who have migrated to commit-and-tag-version from standard-version: the previous package.json configuration key of standard-version will still work.

  2. Creating a .versionrc, .versionrc.json or .versionrc.js.

  3. If you are using a .versionrc.js your default export must be a configuration object, or a function returning a configuration object.

Any of the command line parameters accepted by commit-and-tag-version can instead be provided via configuration. Please refer to the conventional-changelog-config-spec for details on available configuration options.

Customizing CHANGELOG Generation

By default, commit-and-tag-version uses the conventionalcommits preset.

This preset adheres closely to the conventionalcommits.org specification.

Suppose you're using GitLab, rather than GitHub, you might modify the following variables:

  • commitUrlFormat: the URL format of commit SHAs detected in commit messages.
  • compareUrlFormat: the URL format used to compare two tags.
  • issueUrlFormat: the URL format used to link to issues.

Making these URLs match GitLab's format, rather than GitHub's.

Deeper customization

You can override both parser and writer options (they will be merged into the preset we just mentioned). As an example, to list commits in the order that they were committed:

{
  "commit-and-tag-version": {
    "writerOpts": {
      "commitsSort": false
    }
  }
}

CLI Usage

NOTE: To pass nested configurations to the CLI without defining them in the package.json use dot notation as the parameters e.g. --skip.changelog.

First Release

To generate your changelog for your first release, simply do:

# npm run script
npm run release -- --first-release
# global bin
commit-and-tag-version --first-release
# npx
npx commit-and-tag-version --first-release

This will tag a release without bumping the version bumpFiles1.

When you are ready, push the git tag and npm publish your first release. \o/

Cutting Releases

If you typically use npm version to cut a new release, do this instead:

# npm run script
npm run release
# or global bin
commit-and-tag-version

As long as your git commit messages are conventional and accurate, you no longer need to specify the semver type - and you get CHANGELOG generation for free! \o/

After you cut a release, you can push the new git tag and npm publish (or npm publish --tag next) when you're ready.

Release as a Pre-Release

Use the flag --prerelease to generate pre-releases:

Suppose the last version of your code is 1.0.0, and your code to be committed has patched changes. Run:

# npm run script
npm run release -- --prerelease

This will tag your version as: 1.0.1-0.

If you want to name the pre-release, you specify the name via --prerelease <name>.

For example, suppose your pre-release should contain the alpha prefix:

# npm run script
npm run release -- --prerelease alpha

This will tag the version as: 1.0.1-alpha.0

Release as a Target Type Imperatively (npm version-like)

To forgo the automated version bump use --release-as with the argument major, minor or patch.

Suppose the last version of your code is 1.0.0, you've only landed fix: commits, but you would like your next release to be a minor. Simply run the following:

# npm run script
npm run release -- --release-as minor
# Or
npm run release -- --release-as 1.1.0

You will get version 1.1.0 rather than what would be the auto-generated version 1.0.1.

NOTE: you can combine --release-as and --prerelease to generate a release. This is useful when publishing experimental feature(s).

Prevent Git Hooks

If you use git hooks, like pre-commit, to test your code before committing, you can prevent hooks from being verified during the commit step by passing the --no-verify option:

# npm run script
npm run release -- --no-verify
# or global bin
commit-and-tag-version --no-verify

Signing Commits and Tags

If you have your GPG key set up, add the --sign or -s flag to your commit-and-tag-version command.

Signed-off-by trailer

To add the "Signed-off-by" trailer to the commit message add the --signoff flag to your commit-and-tag-version command.

Lifecycle Scripts

commit-and-tag-version supports lifecycle scripts. These allow you to execute your own supplementary commands during the release. The following hooks are available and execute in the order documented:

  • prerelease: executed before anything happens. If the prerelease script returns a non-zero exit code, versioning will be aborted, but it has no other effect on the process.
  • prebump/postbump: executed before and after the version is bumped. If the prebump script returns a version #, it will be used rather than the version calculated by commit-and-tag-version.
  • prechangelog/postchangelog: executes before and after the CHANGELOG is generated.
  • precommit/postcommit: called before and after the commit step.
  • pretag/posttag: called before and after the tagging step.

Simply add the following to your package.json to configure lifecycle scripts:

{
  "commit-and-tag-version": {
    "scripts": {
      "prebump": "echo 9.9.9"
    }
  }
}

As an example to change from using GitHub to track your items to using your projects Jira use a postchangelog script to replace the url fragment containing 'https://github.com/`myproject`/issues/' with a link to your Jira - assuming you have already installed replace

{
  "commit-and-tag-version": {
    "scripts": {
      "postchangelog": "replace 'https://github.com/myproject/issues/' 'https://myjira/browse/' CHANGELOG.md"
    }
  }
}

Skipping Lifecycle Steps

You can skip any of the lifecycle steps (bump, changelog, commit, tag), by adding the following to your package.json:

{
  "commit-and-tag-version": {
    "skip": {
      "changelog": true
    }
  }
}

Committing Generated Artifacts in the Release Commit

If you want to commit generated artifacts in the release commit, you can use the --commit-all or -a flag. You will need to stage the artifacts you want to commit, so your release command could look like this:

{
  "commit-and-tag-version": {
    "scripts": {
      "prerelease": "webpack -p --bail && git add <file(s) to commit>"
    }
  }
}
{
  "scripts": {
    "release": "commit-and-tag-version -a"
  }
}

Dry Run Mode

running commit-and-tag-version with the flag --dry-run allows you to see what commands would be run, without committing to git or updating files.

# npm run script
npm run release -- --dry-run
# or global bin
commit-and-tag-version --dry-run

Prefix Tags

Tags are prefixed with v by default. If you would like to prefix your tags with something else, you can do so with the -t flag.

commit-and-tag-version -t @scope/package\@

This will prefix your tags to look something like @scope/package@2.0.0

If you do not want to have any tag prefix you can use the -t flag and provide it with an empty string as value.

Note: simply -t or --tag-prefix without any value will fallback to the default 'v'

Tag replacement

If you've already run commit-and-tag-version when creating your release, you may want to alter the release content and changelog without bumping the version, by using commit-and-tag-version --skip.bump. By default, tagging with an already existing tag make git fails. You can add the --tag-force flag to make use of -f option when calling git tag, then the existing version tag will be replaced.

Generate changelogs for old releases

Normally only the changelog for the last release will be generated and prepended to the changelog.md. If you want to generate changelogs for previous releases you can do so by setting the releaseCount option like described here.

When setting releaseCount=0 the whole changelog gets regenerated and replaced.

You can set the option either in the.versionrc file or inside package.json like below

//.versionrc
{
  "releaseCount": 0
}

//package.json

"commit-and-tag-version": {
  "releaseCount": 0
}

CLI Help

# npm run script
npm run release -- --help
# or global bin
commit-and-tag-version --help

Code Usage

const commitAndTagVersion = require("commit-and-tag-version");

// Options are the same as command line, except camelCase
// commitAndTagVersion returns a Promise
commitAndTagVersion({
  noVerify: true,
  infile: "docs/CHANGELOG.md",
  silent: true,
})
  .then(() => {
    // commit-and-tag-version is done
  })
  .catch((err) => {
    console.error(`commit-and-tag-version failed with message: ${err.message}`);
  });

TIP: Use the silent option to prevent commit-and-tag-version from printing to the console.

FAQ

How is commit-and-tag-version different from semantic-release?

semantic-release is described as:

semantic-release automates the whole package release workflow including: determining the next version number, generating the release notes and publishing the package.

While both are based on the same foundation of structured commit messages, commit-and-tag-version takes a different approach by handling versioning, changelog generation, and git tagging for you without automatic pushing (to GitHub) or publishing (to an npm registry). Use of commit-and-tag-version only affects your local git repo - it doesn't affect remote resources at all. After you run commit-and-tag-version, you can review your release state, correct mistakes and follow the release strategy that makes the most sense for your codebase.

We think they are both fantastic tools, and we encourage folks to use semantic-release instead of commit-and-tag-version if it makes sense for their use-case.

Should I always squash commits when merging PRs?

The instructions to squash commits when merging pull requests assumes that one PR equals, at most, one feature or fix.

If you have multiple features or fixes landing in a single PR and each commit uses a structured message, then you can do a standard merge when accepting the PR. This will preserve the commit history from your branch after the merge.

Although this will allow each commit to be included as separate entries in your CHANGELOG, the entries will not be able to reference the PR that pulled the changes in because the preserved commit messages do not include the PR number.

For this reason, we recommend keeping the scope of each PR to one general feature or fix. In practice, this allows you to use unstructured commit messages when committing each little change and then squash them into a single commit with a structured message (referencing the PR number) once they have been reviewed and accepted.

Can I use commit-and-tag-version for additional metadata files, languages or version files?

You can configure multiple bumpFiles and packageFiles:

  1. Specify a custom bumpFile "filename", this is the path to the file you want to "bump"
  2. Specify the bumpFile "updater", this is how the file will be bumped. a. If you're using a common type, you can use one of commit-and-tag-version's built-in updaters by specifying a type. b. If your using an less-common version file, you can create your own updater.
// .versionrc
{
  "bumpFiles": [
    {
      "filename": "MY_VERSION_TRACKER.txt",
      // The `plain-text` updater assumes the file contents represents the version.
      "type": "plain-text"
    },
    {
      "filename": "a/deep/package/dot/json/file/package.json",
      // The `json` updater assumes the version is available under a `version` key in the provided JSON document.
      "type": "json"
    },
    {
      "filename": "VERSION_TRACKER.json",
      //  See "Custom `updater`s" for more details.
      "updater": "commit-and-tag-version-updater.js"
    }
  ]
}

If using .versionrc.js as your configuration file, the updater may also be set as an object, rather than a path:

// .versionrc.js
const tracker = {
  filename: "VERSION_TRACKER.json",
  updater: require("./path/to/custom-version-updater"),
};

module.exports = {
  bumpFiles: [tracker],
  packageFiles: [tracker],
};

Custom updaters

An updater is expected to be a Javascript module with atleast two methods exposed: readVersion and writeVersion.

readVersion(contents = string): string

This method is used to read the version from the provided file contents.

The return value is expected to be a semantic version string.

writeVersion(contents = string, version: string): string

This method is used to write the version to the provided contents.

The return value will be written directly (overwrite) to the provided file.


Let's assume our VERSION_TRACKER.json has the following contents:

{
  "tracker": {
    "package": {
      "version": "1.0.0"
    }
  }
}

An acceptable commit-and-tag-version-updater.js would be:

// commit-and-tag-version-updater.js
const stringifyPackage = require("stringify-package");
const detectIndent = require("detect-indent");
const detectNewline = require("detect-newline");

module.exports.readVersion = function (contents) {
  return JSON.parse(contents).tracker.package.version;
};

module.exports.writeVersion = function (contents, version) {
  const json = JSON.parse(contents);
  let indent = detectIndent(contents).indent;
  let newline = detectNewline(contents);
  json.tracker.package.version = version;
  return stringifyPackage(json, indent, newline);
};

Why do breaking changes before 1.0.0 not trigger a 1.0.0 release?

Below 1.0.0, the semver specification doesn't give any guarantees about the meaning of version numbers. However, with npm there is a community convention, and implementation-defined behaviour: If your version is between 0.1.0 and 1.0.0, npm treats an update to the minor version as a breaking change - that is ^0.1.0 will match 0.1.2 but not 0.2.0. Rust's cargo package manager also behaves the same way.

This tool (via conventional-commits) also follows that convention - breaking changes below v1.0.0 are treated as a minor version bump. Here's an example series of commits with tagged versions:

1017b00 chore: initial commit
9e2ba95 (tag: v0.0.2) chore(release): 0.0.2
3598012 fix!: Example breaking change
1a4994a (tag: v0.1.0) chore(release): 0.1.0

Semver's only guarantee is "all bets are off", but npm has made a choice about what bets to make. commit-and-tag-version follows the same convention (along with other package managers for other ecosystems).

When you are ready to release v1.0.0, add --release-as 1.0.0 to the options.

License

ISC

changelog

Changelog

All notable changes to this project will be documented in this file. See commit-and-tag-version for commit guidelines.

12.5.0 (2024-10-10)

Features

12.4.4 (2024-09-15)

Bug Fixes

  • sanitize double quotes result from stdout (#186) (8dbeb79)

12.4.3 (2024-09-09)

Bug Fixes

  • Correct issue where downstream dependency would throw options.debug is not a function (4280bcf)

12.4.2 (2024-08-25)

Bug Fixes

  • deps: update dependency conventional-changelog to v4 (#176) (8d15fc7)

12.4.1 (2024-04-28)

Bug Fixes

  • raise the 'openapi'-updater to a higher order of precedence above the 'yaml'-updater (#143) (37fe178)

12.4.0 (2024-04-19)

Features

12.3.0 (2024-04-19)

Features

Bug Fixes

  • Add debug messages for exclusions during bump lifecycle (#131) (a9191f2)

12.2.0 (2024-01-15)

Features

12.1.0 (2024-01-06)

Features

12.0.0 (2023-10-31)

⚠ BREAKING CHANGES

  • Drop support for node 14, 16. Now supports node 18 and 20.

Bug Fixes

  • Drop support for node 14, 16. Now supports node 18 and 20. (b1a58bc)
  • preserve frontmatter when updating changelog (#108) (abdcfe2)

11.3.0 (2023-10-10)

Features

  • updater: add .csproj file support (#95) (a96554c)

11.2.4 (2023-10-02)

Bug Fixes

  • allow bump task to handle versions with build metadata (33913ee)
  • handle invalid versions passed to releaseAs (33913ee)

11.2.3 (2023-08-22)

Bug Fixes

  • bump: propagate the parserOpts from args to conventionalRecommendedBump, fixing an issue with custom headerPatterns (#89) (bc685be)

11.2.2 (2023-06-18)

Bug Fixes

  • deps: update dependency conventional-changelog-conventionalcommits to v6 (285f5e7)
  • deps: update dependency conventional-changelog-conventionalcommits to v6 (#81) (ab67fa4)
  • deps: update dependency conventional-changelog-conventionalcommits to v6.1.0 (39827d3)
  • deps: update dependency conventional-changelog-conventionalcommits to v6.1.0 (#86) (a8580d5)
  • deps: update dependency conventional-recommended-bump to v7 (5978564)
  • deps: update dependency conventional-recommended-bump to v7 (#83) (1c9f82e)
  • deps: update dependency git-semver-tags to v5 (97e0237)
  • deps: update dependency git-semver-tags to v5 (#80) (46ea506)

11.2.1 (2023-04-05)

Bug Fixes

  • dep: add stringify-package to project source, removing the deprecation warning on npm install (#65) (3a959a7)

11.2.0 (2023-03-15)

Features

  • implement detect pm name (174a8bd)
  • support config npmClient (c33686a)
  • Support customizing the npm publish hint message with a new option: npmPublishHint (1f77110)

11.1.0 (2023-02-14)

Features

  • Expose release count option (40d27f8)
  • replace the changelog if releaseCount = 0 (d18af90)

Bug Fixes

  • ensure git signatures are not present (268800b)

11.0.0 (2023-01-17)

⚠ BREAKING CHANGES

  • deps: update dependency conventional-changelog-conventionalcommits to v5. This is technically a breaking change for anyone relying on the exact formatting of the changelog, as it ensures that versions are always written with H2 headers.

Bug Fixes

  • deps: update dependency conventional-changelog-conventionalcommits to v5 (b38e900)
  • deps: update dependency conventional-changelog-conventionalcommits to v5. This is technically a breaking change for anyone relying on the exact formatting of the changelog, as it ensures that versions are always written with H2 headers. (ffa799a)

10.1.0 (2022-08-11)

Features

  • options: Expose parser and writer options from conventional-commits-parser and conventional-commits-writer (185a461)
  • updater: add Gradle support (0cf439f)

Bug Fixes

  • use correct param for dryRun check (300b907)

10.0.1 (2022-05-28)

Bug Fixes

  • No longer warn inappropriately when a custom updater is provided as an object (5eb8886)

10.0.0 (2022-05-25)

⚠ BREAKING CHANGES

  • Drop support for node 10 and 12, support node 16 and 18

Bug Fixes

  • deps: update dependency yargs to v17 (d190c51)

Build System

  • Drop support for node 10 and 12, support node 16 and 18 (0f75115)

9.6.0 (2022-05-25)

Features

  • tag: add an option to force tag replacement (df5a94a)

Bug Fixes

  • Combining both release-as and prerelease now doesn't break package (5ecfa2e)
  • Fallback to git tag if no version in package file (57e7091)
  • No longer skips the commit if changelog and bump are both skipped but commitAll is set (08a0121)
  • Use relative path from .gitignore to avoid files matching inappropriately (d2491bc)
  • When a custom updater reports a version other than the new computed semver, that version is now correctly reported in log output (f2e83bf)

9.5.0 (2022-05-15)

Features

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.25 (#865) (4c938a2)
  • deps: update dependency conventional-changelog-conventionalcommits to v4.6.3 (#866) (6c75ed0)

9.4.0 (2021-12-31)

Features

Bug Fixes

  • Ensures provided packageFiles arguments are merged with bumpFiles when no bumpFiles argument is specified (default). (#534) (2785023), closes #533

9.3.2 (2021-10-17)

Bug Fixes

  • deps: update dependency conventional-changelog-conventionalcommits to v4.6.1 (#752) (bb8869d)

9.3.1 (2021-07-14)

Bug Fixes

  • updater: npm7 package lock's inner version not being updated (#713) (a316dd0)

9.3.0 (2021-05-04)

Features

  • add --lerna-package flag used to extract tags in case of lerna repo (#503) (f579ff0)

9.2.0 (2021-04-06)

Features

  • allows seperate prefixTag version sequences (#573) (3bbba02)

9.1.1 (2021-02-06)

Bug Fixes

  • deps: update dependency conventional-recommended-bump to v6.1.0 (#695) (65dd070)
  • deps: update dependency yargs to v16 (#660) (f6a7430)

9.1.0 (2020-12-01)

Features

  • support custom updater as object as well as path (#630) (55bbde8)

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.24 (#677) (cc45036)
  • deps: update dependency conventional-changelog-conventionalcommits to v4.5.0 (#678) (6317d36)
  • deps: update dependency conventional-recommended-bump to v6.0.11 (#679) (360789a)
  • deps: update dependency find-up to v5 (#651) (df8db83)

9.0.0 (2020-08-15)

⚠ BREAKING CHANGES

  • NodeJS@8 is no longer supported. (#612)

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.23 (#652) (00dd3c0)
  • deps: update dependency conventional-changelog-conventionalcommits to v4.4.0 (#650) (9f201a6)
  • deps: update dependency conventional-recommended-bump to v6.0.10 (#653) (c360d6a)

Build System

8.0.2 (2020-07-14)

Bug Fixes

  • Commit message and tag name is no longer enclosed in quotes. (#619) (ae032bf), closes #621 #620

8.0.1 (2020-07-12)

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.21 (#586) (fd456c9)
  • deps: update dependency conventional-changelog-conventionalcommits to v4.3.0 (#587) (b3b5eed)
  • deps: update dependency conventional-recommended-bump to v6.0.9 (#588) (d4d2ac2)
  • deps: update dependency git-semver-tags to v4 (#589) (a0f0e81)
  • Vulnerability Report GHSL-2020-11101 (9d978ac)

8.0.0 (2020-05-06)

⚠ BREAKING CHANGES

  • composer.json and composer.lock will no longer be read from or bumped by default. If you need to obtain a version or write a version to these files, please use bumpFiles and/or packageFiles options accordingly.

Bug Fixes

  • composer.json and composer.lock have been removed from default package and bump files. (c934f3a), closes #495 #394
  • deps: update dependency conventional-changelog to v3.1.18 (#510) (e6aeb77)
  • deps: update dependency yargs to v15.1.0 (#518) (8f36f9e)
  • deps: update dependency yargs to v15.3.1 (#559) (d98cd46)

7.1.0 (2019-12-08)

Features

  • Adds support for header (--header) configuration based on the spec. (#364) (ba80a0c)
  • custom 'bumpFiles' and 'packageFiles' support (#372) (564d948)

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.15 (#479) (492e721)
  • deps: update dependency conventional-changelog-conventionalcommits to v4.2.3 (#496) (bc606f8)
  • deps: update dependency conventional-recommended-bump to v6.0.5 (#480) (1e1e215)
  • deps: update dependency yargs to v15 (#484) (35b90c3)
  • use require.resolve for the default preset (#465) (d557372)
  • deps: update dependency detect-newline to v3.1.0 (#482) (04ab36a)
  • deps: update dependency figures to v3.1.0 (#468) (63300a9)
  • deps: update dependency git-semver-tags to v3.0.1 (#485) (9cc188c)
  • deps: update dependency yargs to v14.2.1 (#483) (dc1fa61)
  • deps: update dependency yargs to v14.2.2 (#488) (ecf26b6)

7.0.1 (2019-11-07)

Bug Fixes

  • deps: update dependency conventional-changelog to v3.1.12 (#463) (f04161a)
  • deps: update dependency conventional-changelog-config-spec to v2.1.0 (#442) (a2c5747)
  • deps: update dependency conventional-recommended-bump to v6.0.2 (#462) (84bb581)
  • deps: update dependency stringify-package to v1.0.1 (#459) (e06a835)
  • deps: update dependency yargs to v14 (#440) (fe37e73)
  • deps: update dependency yargs to v14.2.0 (#461) (fb21851)

7.0.0 (2019-07-30)

⚠ BREAKING CHANGES

  • we were accepting .version.json as a config file, rather than .versionrc.json

Bug Fixes

  • bump: transmit tag prefix argument to conventionalRecommendedBump (#393) (8205222)
  • cli: display only one, correct default for --preset flag (#377) (d17fc81)
  • commit: don't try to process and add changelog if skipped (#318) (3e4fdec)
  • deps: update dependency conventional-changelog-config-spec to v2 (#352) (f586844)
  • deps: update dependency conventional-recommended-bump to v6 (#417) (4c5cad1)
  • deps: update dependency find-up to v4 (#355) (73b35f8)
  • deps: update dependency find-up to v4.1.0 (#383) (b621a4a)
  • deps: update dependency git-semver-tags to v3 (#418) (1ce3f4a)
  • deps: update dependency semver to v6.3.0 (#366) (cd866c7)
  • deps: update dependency yargs to v13.3.0 (#401) (3d0e8c7)
  • adds support for releaseCommitMessageFormat (#351) (a7133cc)
  • stop suggesting npm publish if package.json was not updated (#319) (a5ac845)
  • Updates package.json to actual supported (tested) NodeJS versions. (#379) (15eec8a)
  • deps: update dependency yargs to v13.2.4 (#356) (00b2ce6)
  • update config file name in command based on README.md (#357) (ce44dd2)

6.0.1 (2019-05-05)

Bug Fixes

  • don't pass args to git rev-parse (1ac72f7)

6.0.0 (2019-05-05)

Bug Fixes

  • always pass version to changelog context (#327) (00e3381)
  • deps: update dependency detect-indent to v6 (#341) (234d9dd)
  • deps: update dependency detect-newline to v3 (#342) (02a6093)
  • deps: update dependency figures to v3 (#343) (7208ded)
  • deps: update dependency semver to v6 (#344) (c40487a)
  • deps: update dependency yargs to v13 (#345) (b2c8e59)
  • prevent duplicate headers from being added (#305) (#307) (db2c6e5)

Build System

Features

  • adds configurable conventionalcommits preset (#323) (4fcd4a7)
  • allow a user to provide a custom changelog header (#335) (1c51064)
  • bump minor rather than major, if release is < 1.0.0 (#347) (5d972cf)
  • suggest branch name other than master (#331) (304b49a)
  • update commit msg for when using commitAll (#320) (74a040a)

Tests

  • disable gpg signing in temporary test repositories. (#311) (bd0fcdf)
  • use const based on new eslint rules (#329) (b6d3d13)

BREAKING CHANGES

  • we now bump the minor rather than major if version < 1.0.0; --release-as can be used to bump to 1.0.0.
  • tests are no longer run for Node 6
  • we now use the conventionalcommits preset by default, which directly tracks conventionalcommits.org.

5.0.2 (2019-03-16)

5.0.1 (2019-02-28)

Bug Fixes

  • make pattern for finding CHANGELOG sections work for non anchors (#292) (b684c78)

5.0.0 (2019-02-14)

Bug Fixes

chore

Features

  • adds support for bumping for composer versions (#262) (fee872f)
  • cli application accept path/preset option (#279) (69c62cf)
  • fallback to tags if no meta-information file found (#275) (844cde6)
  • preserve formatting when writing to package.json (#282) (96216da)

BREAKING CHANGES

  • if no package.json, bower.json, etc., is found, we now fallback to git tags
  • removed Node 4/5 from testing matrix

4.4.0 (2018-05-21)

Bug Fixes

  • show full tag name in checkpoint (#241) (b4ed4f9)
  • use tagPrefix in CHANGELOG lifecycle step (#243) (a56c7ac)

Features

4.3.0 (2018-01-03)

Bug Fixes

  • recommend --tag prerelease for npm publish of prereleases (#196) (709dae1), closes #183
  • use the skip default value for skip cli arg (#211) (3fdd7fa)

Features

  • format-commit-message: support multiple %s in the message (45fcad5)
  • do not update/commit files in .gitignore (#230) (4fd3bc2)
  • publish only if commit+push succeed (#229) (c5e1ee2)

4.2.0 (2017-06-12)

Features

4.1.0 (2017-06-06)

Features

  • cli: print error and don't run with node <4, closes #124 (d0d71a5)
  • add dry-run mode (#187) (d073353)
  • add prebump, postbump, precommit, lifecycle scripts (#186) (dfd1d12)
  • add support for npm-shrinkwrap.json (#185) (86af7fc)
  • add support for skipping lifecycle steps, polish lifecycle work (#188) (d31dcdb)
  • allow a version # to be provided for release-as, rather than just major, minor, patch. (13eb9cd)

4.0.0 (2016-12-02)

Bug Fixes

  • include merge commits in the changelog (#139) (b6e1562)
  • should print message before we bump version (2894bbc)
  • support a wording change made to git status in git v2.9.1 (#140) (80004ec)

Features

  • add support for bumping version # in bower.json (#148) (b788c5f)
  • make tag prefix configurable (#143) (70b20c8)
  • support releasing a custom version, including pre-releases (#129) (068008d)

BREAKING CHANGES

  • merge commits are now included in the CHANGELOG.

3.0.0 (2016-10-06)

Bug Fixes

  • check the private field in package.json(#102) (#103) (2ce4160)
  • err: don't fail on stderr output, but print the output to stderr (#110) (f7a4915), closes #91

Chores

  • package.json engines field >=4.0, drop Node 0.10 and 0.12 (28ff65a)

Features

  • options: add --silent flag and option for squelching output (2a3fa61)
  • added support for commitAll option in CLI (#121) (a903f4d)
  • separate cli and defaults from base functionality (34a6a4e)

BREAKING CHANGES

  • drop support for Node < 4.0 to enable usage of new tools and packages.

2.4.0 (2016-07-13)

Bug Fixes

  • index.js: use blue figures.info for last checkpoint (#64) (e600b42)

Features

  • changelogStream: use more default opts (#67) (3e0aa84)

2.3.1 (2016-06-15)

Bug Fixes

  • commit: fix windows by separating add and commit exec (#55) (f361c46), closes #55 #49

2.3.0 (2016-06-02)

Bug Fixes

  • append line feed to end of package.json (#42)(178e001)

Features

  • index.js: add checkpoint for publish script after tag successfully (#47)(e414ed7)
  • add a --no-verify option to prevent git hooks from being verified (#44)(026d844)

2.2.1 (2016-05-02)

Bug Fixes

  • upgrade to version of nyc that works with new shelljs(c7ac6e2)

2.2.0 (2016-05-01)

Bug Fixes

  • format the annotated tag message (#28)(8f02736)
  • upgraded dependencies, switched back to angular format (fixes #27), pinned shelljs to version that works with nyc (#30)(3f51e94)

Features

  • add --sign flag to sign git commit and tag (#29)(de758bc)

2.1.2 (2016-04-11)

Bug Fixes

2.1.1 (2016-04-10)

Bug Fixes

  • docs: had a bad URL in package.json, which was breaking all of our links (caa6359)

2.1.0 (2016-04-10)

Features

2.0.0 (2016-04-09)

  • feat(conventional-changelog-standard): Move to conventional-changelog-standard style. This style lifts the character limit on commit messages, and puts us in a position to make more opinionated decisions in the future. (c7ccadb)

BREAKING CHANGES

  • we no longer accept the preset configuration option.

1.1.0 (2016-04-08)

Features

  • cli: use conventional default commit message with version (9fadc5f)
  • rebrand: rebrand recommended-workflow to standard-version (#9) (1f673c0)
  • tests: adds test suite, fixed several Node 0.10 issues along the way (03bd86c)

1.0.0 (2016-04-04)

Features

  • initial-release: adds flag for generating CHANGELOG.md on the first release. (b812b44)