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 🙏

© 2024 – Pkg Stats / Ryan Hefner

changelog.md

v1.1.0

Published

Manage CHANGELOG.md so easy it hurts.

Downloads

64

Readme

How does it work

  • Get last version from git tag, if no tags it defaults to 0.0.0
  • Get the commits since last version
    • Prompt user to enter the type of each commit
    • Infer the new version from the types of all commits
  • Generate markdown string from commits and prompt answers
  • Create or prepend to CHANGELOG.md and update package.json version field
  • Commits changes and create new git tag

Install

$ yarn global add changelog.md

Usage

$ changelog

Recipes

Commit types

  • patch: Bug fixes
  • minor: Backward-compatible updates
  • major: Introducing breaking changes
  • ignore: Do not include this commit in changelog

Besides choosing ignore in prompts to exclude commits from changelog, the commit message that starts with ignore: will also be excluded.

You can also use format like type: message to pre-define commit type, they will be converted to the commit type we use:

|semantic type|description|commit type|0.y.z| |---|---|---|---| |chore|changes to build process|ignore|| |docs|documentation only changes|ignore|| |feat|a new feature|minor|patch| |fix|bug fix|patch|| |refactor|code refactor|patch|| |style|code style changes|ignore|| |test|add missing tests|ignore|| |breaking|introduce breaking changes|major|minor| |perf|performance improvements|patch|| |tweaks|don't know how to describe|patch||

Note: in 0.y.z versions, major changes will affect y, other changes and patches will affect z. So in such situation you can never reach 1.0.0 do you? Then just explicitly specific the version for your next release, like: changelog 1.0.0

For tweaks: subject, a message with only tweaks or tweak will also be a patch.

You don't have to use these types in your commit message since you can set them one by one when actually running changelog (only for CHANGELOG.md, will not update the commit itself).

Work with npm publish

# made some changes to your code...
$ git commit -am "feat: change the world"
$ npm test
$ changelog
$ git push --follow-tags
$ npm publish

Projects using this

  • SAO: ⚔️ Futuristic scaffolding tool.
  • docute: 📜 Effortlessly documentation done right.
  • welcome to add your project here...

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

changelog.md © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).

egoistian.com · GitHub @EGOIST · Twitter @rem_rin_rin