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

@vue-storefront/changesets

v1.0.0

Published

To make sure that the adopters of our products and integrations can always use the latest and greaters versions we implemented a standarization for Release Notes and Migration Guides. The goal is to make the migration process to the newer version of each

Downloads

3,904

Readme

Changesets

To make sure that the adopters of our products and integrations can always use the latest and greaters versions we implemented a standarization for Release Notes and Migration Guides. The goal is to make the migration process to the newer version of each package as smooth and effortless as possible.

To facilitate the process of creating the release notes and migration guides we use the changesets, and @vue-storefront/changesets that provides a custom changelog format for the changesets package.

Installation

yarn add -D @vue-storefront/changesets

Usage

Add the following to your changeset/config.json file:

{
  "changelog": "@vue-storefront/changesets",
}

This will use the @vue-storefront/changesets package to modify the changelog format.

Example

  1. Use the changeset CLI to create a new changeset
  2. Provide a changeset, following the conventions eg. [REMOVED] getPhysicalStores method was removed from the Middleware and SDK.
  3. Provide another changeset eg. [ADDED] getPhysicalStores method that allows fetching a list of physical stores and filtering it by their location.
  4. Merge changes to the main branch

Changeset will create a PR for relase, and the following markdown:

[REMOVED] getPhysicalStores method was removed from the Middleware and SDK.
[ADDED] getPhysicalStores method that allows fetching a list of physical stores and filtering it by their location.

will be transformed into:

- **[REMOVED]** getPhysicalStores method was removed from the Middleware and SDK.
- **[ADDED]** getPhysicalStores method that allows fetching a list of physical stores and filtering it by their location.

In the changeset's release PR makes sure, that the migration guide is provided in the CHANGELOG.md file.

Conventions

  • [ADDED] { what was added, with link to the docs }, { what new capabilities it introduced }{ example usage }
  • [CHANGED] { what has changed }, { why it has changed }{ before / after code }
  • [FIXED] { what was fixed }, { what was the previous behaviour}. { what is the new behaviour }
  • [REMOVED] { what was removed }, { why }. { additional context for ones using this feature eg. it is now handled in a different way in a different place }

Migration Guide

Below each version release, there should be a migration guide showing how to migrate to the new version of the package step by step even if it repeats some parts from the Release Notes. The migration Guide should describe actionable steps that will allow to migrate to the new version of the package and cover all breaking changes

Definition of breaking change

As a rule of thumb a “breaking change” is any kind of change that could result in failed application build or change in its functionality after automatically bumping the package to the newer version. We should treat specifically (but not exclusively) the following changes as breaking changes

API Contract change

  • package was removed/renamed
  • method was removed/renamed
  • property was removed/renamed
  • event names/payloads have changed,
  • number/types of method arguments have changed

Functional change

  • A feature works differently under the hood
  • Compatibility change
  • A feature/package requires to bump/install another package

How to write Migration Guide?

  1. Always describe the action that needs to be taken.
  2. Always provide before/after code.
  3. If the user needs to bump other packages for this version to work always mention it in the guide and provide links to the changelogs/migration guides of those versions.

Check the reference-changelog.md to see the format of the release notes and migration guides.