# @changesets/parse

> Parse a changeset file's contents into a usable json object

Latest version **1.0.0** (published 2026-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @changesets/parse
pnpm add @changesets/parse
yarn add @changesets/parse
bun add @changesets/parse
```

## Health

**Score 70/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-08-11 |
| First published | 2019-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^22.11 \|\| ^24 \|\| >=26 |
| Dependencies | 2 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12421 |
| Maintainers | emmatown, andarist |

## Links

- npm: https://www.npmjs.com/package/@changesets/parse
- Repository: https://github.com/changesets/changesets
- npm.io page: https://npm.io/package/@changesets/parse

## Dependencies (2)

- [yaml](https://npm.io/package/yaml.md) ^2.9.0
- [@changesets/types](https://npm.io/package/@changesets/types.md) ^7.0.0

## Recent versions

- 1.0.0 (latest) — 2026-08-11
- 1.0.0-next.10 (next) — 2026-08-03
- 0.3.11-temp.0 (temp) — 2021-12-07
- 1.0.0-next.9 — 2026-07-25
- 1.0.0-next.8 — 2026-07-17
- 1.0.0-next.7 — 2026-07-01
- 1.0.0-next.6 — 2026-06-24
- 1.0.0-next.5 — 2026-05-28
- 1.0.0-next.4 — 2026-05-13
- 1.0.0-next.3 — 2026-05-07
- 1.0.0-next.2 — 2026-05-04
- 0.4.3 — 2026-03-03
- 0.4.2 — 2025-11-27
- 1.0.0-next.1 — 2025-10-30
- 1.0.0-next.0 — 2025-04-21
- … 23 more at https://npm.io/package/@changesets/parse/versions

## README

# @changesets/parse

[![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/@changesets/parse?name=true)](https://npmx.dev/package/@changesets/parse)
[![View changelog](https://npmx.dev/api/registry/badge/version/@changesets/cli?color=229fe4&value=View+changelog&label=+)](./CHANGELOG.md)

Parse a changeset from its written format to a data object.

## Usage

```ts
import { parseChangesetFile } from "@changesets/parse";

const changeset = `---
"pkg-a": minor
"pkg-b": patch
---

A summary of the change`;

const parsedChangeset = parseChangesetFile(changeset);
// {
//   "summary": "A summary of the change",
//   "releases": [
//     { "name": "pkg-a", "type": "minor" },
//     { "name": "pkg-b", "type": "patch" }
//   ]
// }
```

Note that this does not include the changeset id, but it is normally given as the file name, which parse is not aware of.

---
_Source: https://npm.io/package/@changesets/parse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
