Skip to content

Upgrading release-it 2 to 3

Breaking2.9.0 โ†’ 3.2.0Breaking14New8Changed23Fixed13Other44

BreakingUpgrade verdict

14 breaking changes.

  • Publishing to npm now happens by default, so you may need to disable it explicitly.
  • The forcePublishSourceRepo option is gone; use the publish options instead.
  • The local config file has a new name, so rename it to keep your settings.
  • The --message command line shortcut no longer exists; set the commit message in config.
Top 3 of 14 that need code or config changes

Adds async-retry 1.1.3, babel-plugin-transform-async-to-generator 6.24.1, babel-plugin-transform-es2015-modules-commonjs 6.26.0, babel-plugin-transform-runtime 6.23.0, babel-preset-env 1.6.1, babel-register 6.26.0, babel-runtime 6.26.0, bump-file 1.0.0, cpy 6.0.0, debug 3.1.0, globby 6.1.0, ora 1.3.0, supports-color 4.4.0, tmp-promise 1.0.3, yargs-parser 8.0.0.

Drops glob, graceful-fs, minimist, mkdirp, p-retry, when.

Installs 250 packages in all (was 142).

Breaking14
npm.publish now defaults to true.
npm.publish
Removes npm.forcePublishSourceRepo; set npm.publish and dist.npm.publish to true as needed.
npm.forcePublishSourceReponpm.publishdist.npm.publish
Renames local configuration file .release.json to .release-it.json.
.release.json.release-it.json
Removes the --message shortcut; use src.commitMessage instead.
--messagesrc.commitMessage
Renames the prereleaseId option to preReleaseId.
prereleaseIdpreReleaseId
Removes src.beforeStageCommand; dist.beforeStageCommand remains.
src.beforeStageCommanddist.beforeStageCommandbuildCommand
Removes implicit verbose output; use --verbose as needed.
--verbose
Removes babel-preset-stage-0.
babel-preset-stage-0
Removes @std/esm.
@std/esm
Moves former githubAssets to github.assets and dist.github.assets.
githubAssetsgithub.assetsdist.github.assets
Requires setting github.release and/or dist.github.release to true as needed.
github.releasedist.github.release
release-it --debug is now accompanied by DEBUG=release-it:* release-it.
--debugDEBUG
Changes the local config path to .release-it.json.
.release-it.json
Replaces release-it --debug with DEBUG=release-it:* release-it.
--debugDEBUG