@changesets/read
Read in all changesets from a repository.
import readChangesets from "@changesets/read";
let changesets = await readChangesets(cwd);This returns an array of formatted changesets.
Read changesets from disc, and return the information as JSON
4c5a207]:
#1636 f73f84a Thanks @Netail! - Correctly resolve new changesets with since option when the .changeset directory is not directly in the git root
Updated dependencies [f73f84a]:
b15e629]:
84a4a1b]:
#789 82cacb2 Thanks @bastienrobert! - Allow lowercase readme.md in the .changeset directory
#1417 bc75c1a Thanks @trivikr! - Replace chalk with picocolors to reduce install size
#1445 52c302a Thanks @bluwy! - Remove unused @babel/runtime dependency
a971652 Thanks @Andarist! - package.json#exports have been added to limit what (and how) code might be imported from the package.a971652]:
f64bc1b]:
27a5a82]:
2b49c39]:
bc611cf Thanks @Andarist! - From now on, changeset files starting with a dot (e.g. .ignored-temporarily.md) will be be ignored and kept around after versioning. This allows you to prepare a changeset for something that isn't supposed to be released immediately. An example use case could involve code hidden behind a feature flag.e89e28a]:
de2b4a5]:
1706fb7 #321 Thanks @mitchellhamilton! - Fix TypeScript declarations
Updated dependencies [1706fb7]:
011d57f]:
fe0d9192]:
bca8865 #221 Thanks @mitchellhamilton! - Added support for reading old changesets from v1
bca8865 #221 Thanks @mitchellhamilton! - Replaced sinceMaster parameter with sinceRef parameter which can be any git ref such as a branch, tag, commit or etc.
bca8865]:
8f0a1ef]:
8dce96f #187 Thanks @gardnerjack! - Added --empty flag to the add command for empty changeset files. New tests for adding, writing, parsing, and reading empty changesets.8dce96f]:
89c0894 #167 Thanks @Noviny! - Fix broken sinceMaster arg - which was not working with v2 changesets
Updated dependencies [89c0894]:
0320391 #163 Thanks @Noviny! - Reordered dependencies in the package json (this should have no impact)
Updated dependencies [8c43fa0, 0320391, 1ff73b7]:
6d119893 - Initial Release
Updated dependencies [c46e9ee7]: