@changesets/parse
Parse a changeset file's contents into a usable json object
Last updated 7 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @changesets/parse 
SYNC missed versions from official npm registry.

@changesets/parse

Open on npmx.dev View changelog

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

Usage

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.

Current Tags

  • 1.0.0                                ...           latest (4 months ago)
  • 1.0.0-next.10                                ...           next (4 months ago)
  • 0.3.11-temp.0                                ...           temp (5 years ago)

38 Versions

  • 1.0.0                                ...           4 months ago
  • 1.0.0-next.10                                ...           4 months ago
  • 1.0.0-next.9                                ...           4 months ago
  • 1.0.0-next.8                                ...           4 months ago
  • 1.0.0-next.7                                ...           5 months ago
  • 1.0.0-next.6                                ...           5 months ago
  • 1.0.0-next.5                                ...           6 months ago
  • 1.0.0-next.4                                ...           6 months ago
  • 1.0.0-next.3                                ...           7 months ago
  • 1.0.0-next.2                                ...           7 months ago
  • 0.4.3                                ...           9 months ago
  • 0.4.2                                ...           a year ago
  • 1.0.0-next.1                                ...           a year ago
  • 1.0.0-next.0                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.16                                ...           4 years ago
  • 0.3.15                                ...           4 years ago
  • 0.3.14                                ...           4 years ago
  • 0.3.13                                ...           5 years ago
  • 0.3.12                                ...           5 years ago
  • 0.3.11                                ...           5 years ago
  • 0.3.11-temp.0                                ...           5 years ago
  • 0.3.10                                ...           5 years ago
  • 0.3.9                                ...           5 years ago
  • 0.3.8                                ...           6 years ago
  • 0.3.7                                ...           6 years ago
  • 0.3.6                                ...           7 years ago
  • 0.3.5                                ...           7 years ago
  • 0.3.4                                ...           7 years ago
  • 0.3.3                                ...           7 years ago
  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Downloads
Total 97
Today 0
This Week 0
This Month 65
Last Day 0
Last Week 37
Last Month 3
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE