Skip to main content
This release is 2 versions behind 1.6.2 — the latest version of @utility/version. Jump to latest

@utility/version@1.5.0-pre.1

A simple semantic versioning tool.

Works with
This package works with Deno
JSR Score
100%
Published
3 weeks ago
deno add @utility/version
import * as mod from "@utility/version";

Version

A simple semantic versioning tool.

  • Creates and manages a file called version.json (storing the current version)
  • Also updates version on deno.json or package.json or jsr.json if available on project root.
  • Shells out to git to create commits and tags for version bumps

Installation

$  deno install -g -f -n version -r -A jsr:@utility/version

Note: If you don't use -A, --allow-read and --allow-write are needed for managing the VERSION file and --allow-run for Git actions.

Usage

Create a version.json file (defaults to 0.1.0 if not specified)

$ version init
$ version init 0.5.0

Increment a version

$ version
? Pick release type
> pre
  patch
  minor
  major
  prepatch
  preminor
  premajor
  prerelease

or

$ version <release>
$ version get

If you prefer not to install the CLI locally, just substitute $ version [whatever] with:

$ deno run -A jsr:@utility/version [whatever]

Code commit convention

https://www.conventionalcommits.org/

License

MIT


Special mention to @dylanpyle/version. This tool is based out of it and with improvements.

Built and signed on
GitHub Actions
View transparency log