MCPcopy
hub / github.com/changesets/changesets

github.com/changesets/changesets @0.7.0 sqlite

repository ↗ · DeepWiki ↗ · release 0.7.0 ↗
241 symbols 876 edges 110 files 1 documented · 0%
README
<img alt="Changesets banner" src="https://github.com/changesets/changesets/raw/0.7.0/assets/images/changesets-banner-light.png">

A tool to manage versioning and changelogs

with a focus on multi-package repositories

npm package View changelog

The changesets workflow is designed to help when people are making changes, all the way through to publishing. It lets contributors declare how their changes should be released, then we automate updating package versions, and changelogs, and publishing new versions of packages based on the provided information.

Changesets has a focus on solving these problems for multi-package repositories, and keeps packages that rely on each other within the multi-package repository up-to-date, as well as making it easy to make changes to groups of packages.

How do we do that?

A changeset is an intent to release a set of packages at particular semver bump types with a summary of the changes made.

The @changesets/cli package allows you to write changeset files as you make changes, then combine any number of changesets into a release, that flattens the bump-types into a single release per package, handles internal dependencies in a multi-package-repository, and updates changelogs, as well as release all updated packages from a mono-repository with one command.

How do I get started?

If you just want to jump in to using changesets, the Intro to using changesets and @changesets/cli docs are where you should head.

If you want a detailed explanation of the concepts behind changesets, or to understand how you would build on top of changesets, check out our detailed-explanation.

We also have a dictionary.

Integrating with CI

While changesets can be an entirely manual process, we recommend integrating it with how your CI works.

To check that PRs contain a changeset, we recommend using the changeset bot, or if you want to fail builds on a changesets failure, run yarn changeset status in CI.

To make releasing easier, you can use this changesets github action to automate creating versioning pull requests, and optionally publishing packages.

Documentation

Cool Projects already using Changesets for versioning and changelogs

Thanks/Inspiration

  • bolt - Brought us a strong concept of how packages in a mono-repo should be able to interconnect, and provided the initial infrastructure to get inter-package information.
  • Atlassian - The original idea/sponsor of the changesets code, and where many of the ideas and processes were fermented. It was originally implemented by the team behind atlaskit.
  • lerna-semantic-release - put down many of the initial patterns around updating packages within a multi-package-repository, and started us thinking about how to manage dependent packages.
  • Thinkmill - For sponsoring the focused open sourcing of this project, and the version two rearchitecture.

Extension points exported contracts — how you extend this code

PrivatePackages (Interface)
(no doc)
packages/types/src/index.ts
PromiseWithResolvers (Interface)
(no doc)
packages/cli/src/utils/createPromiseQueue.ts
Fixture (Interface)
(no doc)
scripts/test-utils/src/index.ts
PublishOptions (Interface)
(no doc)
packages/cli/src/commands/publish/npm-utils.ts
RegistryInfo (Interface)
(no doc)
packages/cli/src/commands/publish/npm-utils.ts

Core symbols most depended-on inside this repo

testdir
called by 140
scripts/test-utils/src/index.ts
version
called by 76
packages/cli/src/commands/version/index.ts
writeChangeset
called by 68
packages/write/src/index.ts
assembleReleasePlan
called by 66
packages/assemble-release-plan/src/index.ts
addChangeset
called by 55
packages/assemble-release-plan/src/test-utils.ts
error
called by 53
packages/logger/src/index.ts
gitdir
called by 44
scripts/test-utils/src/index.ts
parse
called by 39
packages/config/src/index.ts

Shape

Function 202
Class 18
Method 16
Interface 5

Languages

TypeScript100%

Modules by API surface

packages/errors/src/index.ts17 symbols
packages/git/src/index.ts15 symbols
packages/assemble-release-plan/src/test-utils.ts13 symbols
packages/cli/src/commands/publish/npm-utils.ts12 symbols
packages/cli/src/commands/version/version.test.ts9 symbols
packages/apply-release-plan/src/index.ts9 symbols
packages/config/src/index.ts8 symbols
packages/cli/src/utils/cli-utilities.ts8 symbols
packages/assemble-release-plan/src/index.ts8 symbols
scripts/test-utils/src/index.ts7 symbols
packages/release-utils/src/gitUtils.ts7 symbols
packages/logger/src/index.ts6 symbols

Dependencies from manifests, versioned

@babel/cli7.27.0 · 1×
@babel/core7.28.5 · 1×
@babel/preset-env7.28.5 · 1×
@babel/preset-typescript7.27.0 · 1×
@changesets/apply-release-plan7.1.1 · 1×
@changesets/assemble-release-plan6.0.10 · 1×
@changesets/changelog-git0.2.1 · 1×
@changesets/config3.1.4 · 1×
@changesets/errors0.2.0 · 1×
@changesets/get-dependents-graph2.1.4 · 1×
@changesets/get-github-info0.8.0 · 1×
@changesets/get-release-plan4.0.16 · 1×

For agents

$ claude mcp add changesets \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact