Version Bump

Version Bump is a copy-paste React component that stops breaking change shipped as a minor before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/version-bump
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsBreaking change shipped as a minor

Was this component page useful?

How do I install Version Bump?

pnpm dlx shadcn@latest add @bollard/version-bump

The files land in your project. They're yours to edit.

How do I use Version Bump in React?

version-bump-usage.tsx
import { VersionBump } from "@/components/ui/version-bump"

<VersionBump
  current="1.4.2"
  defaultValue="minor"
  changes={["feat!: drop Node 16 support", "feat(cli): add --json output", "fix: retry uploads on 429", "docs: fix typo in README"]}
/>

What input mistakes does Version Bump catch?

  • A minor or patch for breaking changes, which ^ranges would install
  • A major with no breaking changes
  • 0.x versions, where the minor slot carries breaking changes in npm ranges
  • Pre-release tags dropped on release and tags that sort backwards (beta < rc)
  • Invalid current versions

What props does Version Bump accept?

VersionBump props
PropTypeDefault
current* (required)

The version being released from.

string—
changes* (required)

Changes since `current`: Conventional Commits subjects ("feat!: drop Node 16") or classified entries.

(string | Change)[]—
value

Controlled bump.

Bump—
defaultValue

Initial bump when uncontrolled. Defaults to the smallest one the changes need.

Bump—
onValueChange

Called when the bump changes.

(bump: Bump) => void—
onVersionChange

Called with the resulting version string whenever it changes.

(version: string) => void—
defaultPreid

Pre-release tag to use. Defaults to the current one, or "beta".

string—
messages

Override any string.

Partial<typeof VERSION_BUMP_MESSAGES>—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Version Bump accessible?

  • Bump options are a roving-tabindex radiogroup with arrow keys
  • Needed bump marked with text, not colour alone
  • Readback and warnings in polite live regions; invalid input uses role=alert

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Only as good as the change list: commits without type or ! markers are missed
  • Semver says 0.y.z may change anything; the 0.x handling follows npm caret behaviour

What validation rules apply to Version Bump?

Rules last verified:

Confirmed §11 pre-release precedence (1.0.0-alpha < … < 1.0.0-rc.1 < 1.0.0) and that 0.y.z is for initial development. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Version Bump stop?

Breaking change shipped as a minor

Also known as

semver · version bump · release · changelog · conventional commits · npm publish · changesets · major minor patch

Field type

What dependencies does Version Bump require?

Version Bump facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameVersion Bump
Registry identifier@bollard/version-bump
Install commandnpx shadcn@latest add @bollard/version-bump
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Version Bump

What form validation mistake does Version Bump catch?

Version Bump prevents breaking change shipped as a minor. Suggests the semver bump a set of changes needs and warns when the pick is too small, so breaking changes don't ship as minor or patch. Catches: A minor or patch for breaking changes, which ^ranges would install, A major with no breaking changes, 0.x versions, where the minor slot carries breaking changes in npm ranges, Pre-release tags dropped on release and tags that sort backwards (beta < rc), Invalid current versions. Limitation: validate version-bump schemas on backend.

How do I install version-bump with shadcn?

Run `npx shadcn@latest add @bollard/version-bump`. Sources added: registry/default/version-bump/semver.ts, registry/default/version-bump/version-bump.tsx. Package requirements: lucide-react.

What props customize Version Bump?

Version Bump accepts `current`, `changes`, `value`, `defaultValue`, `onValueChange`. Configures semver, version bump, release behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of version-bump?

Only as good as the change list: commits without type or ! markers are missed. Semver says 0.y.z may change anything; the 0.x handling follows npm caret behaviour Server requirement: backend verification for version-bump.

How does Version Bump meet accessibility guidelines?

Bump options are a roving-tabindex radiogroup with arrow keys. Needed bump marked with text, not colour alone. Readback and warnings in polite live regions; invalid input uses role=alert. Minimizes errors: semver major minor patch, breaking change minor release.

Which components pair with Version Bump?