@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
Updated dependencies [7323704, 962ab91]:
#1417 bc75c1a Thanks @trivikr! - Replace chalk with picocolors to reduce install size
#1445 52c302a Thanks @bluwy! - Remove unused @babel/runtime dependency
Updated dependencies [bc75c1a, 52c302a]:
a971652 Thanks @Andarist! - package.json#exports have been added to limit what (and how) code might be imported from the package.a971652]:598136a, 521205d, 598136a, 598136a, 521205d]:8c08469, 8c08469]:f64bc1b]:dd9b76f, dd9b76f]:c87eba6, eb86652]:27a5a82]:fe8db75, 9a993ba]: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]:89f0c49, 2b49d66, 09f62f9]:1706fb7 #321 Thanks @mitchellhamilton! - Fix TypeScript declarations
Updated dependencies [1706fb7]:
011d57f]:04ddfd7 #305 Thanks @Noviny! - Add link to changelog in readme
Updated dependencies [04ddfd7, e56928b, b49e1cf]:
41e2e3d, cc8c921, cc8c921, cc8c921, 2363366, 41e2e3d]: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]: