npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bumped-version

v0.1.3

Published

Compute the next publish version for a package from its current `package.json` version and conventional commit subjects since the last release tag.

Readme

bumped-version

Compute the next publish version for a package from its current package.json version and conventional commit subjects since the last release tag.

Use it when you want a small, synchronous version calculator for release scripts that already use git tags and conventional commit subjects. It is especially useful for repositories where only commits touching the package directory should affect that package's next version.

Do not use it if you need changelog generation, tag creation, prerelease channels, custom commit type rules, workspace graph analysis, or package-manager-aware publishing. bumped-version only answers: "what version should this package publish next?"

Requirements

  • Node.js with ESM support.
  • A publishable package.json with an x.y.z version. private: true packages are rejected.
  • Git history and release tags. Single-package repositories use the bare version tag, such as 1.2.3; monorepo package directories use <unscoped-name>@<version>, such as [email protected].
  • Conventional commit subjects starting with fix, feat, docs, or refactor, with optional scopes and ! breaking markers.

Tradeoff

The library favors a predictable, narrow rule set over configurability. You get deterministic version bumps from commit history with no runtime dependencies, but you do not get knobs for custom release policies.

Install

pnpm add bumped-version

CLI

This demonstrates the core decision: only release-relevant commits since the package's release tag are considered, and the result is printed without mutating files or tags.

bumped-version packages/widget
# 1.3.0

Use --verbose to see the package read and git commands used during the calculation.

bumped-version --verbose packages/widget

API

import { getBumpedVersion } from 'bumped-version'
import { fileURLToPath } from 'node:url'

const version = getBumpedVersion({
  packageDir: fileURLToPath(new URL('./packages/widget', import.meta.url)),
})

console.log(version)

getBumpedVersion runs git synchronously by default. Tests or controlled environments can provide a git(args) adapter and a verbose(message) callback.

Version Rules

  • 0.0.0 returns 0.1.0 without reading git history.
  • Breaking fix!, feat!, docs!, or refactor! commits bump 1.x packages to the next major version and 0.x packages to the next minor version.
  • feat commits bump 1.x packages to the next minor version and 0.x packages to the next patch version.
  • Other included fix, docs, and refactor commits bump the patch version.
  • Commits scoped as (ci) are ignored.
  • If no included commits remain, the current version is returned.