@changesets/read
Advanced tools
Comparing version 0.5.7 to 0.5.8
# @changesets/read | ||
## 0.5.8 | ||
### Patch Changes | ||
- Updated dependencies [[`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14), [`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14)]: | ||
- @changesets/git@1.5.0 | ||
- @changesets/types@5.2.0 | ||
- @changesets/parse@0.3.15 | ||
## 0.5.7 | ||
@@ -148,3 +157,3 @@ | ||
* [`bca8865`](https://github.com/changesets/changesets/commit/bca88652d38caa31e789c4564230ba0b49562ad2) [#221](https://github.com/changesets/changesets/pull/221) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Replaced sinceMaster parameter with sinceRef parameter which can be any git ref such as a branch, tag, commit or etc. | ||
- [`bca8865`](https://github.com/changesets/changesets/commit/bca88652d38caa31e789c4564230ba0b49562ad2) [#221](https://github.com/changesets/changesets/pull/221) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Replaced sinceMaster parameter with sinceRef parameter which can be any git ref such as a branch, tag, commit or etc. | ||
@@ -191,5 +200,5 @@ ### Patch Changes | ||
* [0320391](https://github.com/changesets/changesets/commit/0320391699a73621d0e51ce031062a06cbdefadc) [#163](https://github.com/changesets/changesets/pull/163) Thanks [@Noviny](https://github.com/Noviny)! - Reordered dependencies in the package json (this should have no impact) | ||
- [0320391](https://github.com/changesets/changesets/commit/0320391699a73621d0e51ce031062a06cbdefadc) [#163](https://github.com/changesets/changesets/pull/163) Thanks [@Noviny](https://github.com/Noviny)! - Reordered dependencies in the package json (this should have no impact) | ||
* Updated dependencies [8c43fa0, 0320391, 1ff73b7]: | ||
- Updated dependencies [8c43fa0, 0320391, 1ff73b7]: | ||
- @changesets/git@0.2.1 | ||
@@ -196,0 +205,0 @@ - @changesets/parse@0.2.1 |
{ | ||
"name": "@changesets/read", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Read changesets from disc, and return the information as JSON", | ||
@@ -11,6 +11,6 @@ "main": "dist/read.cjs.js", | ||
"@babel/runtime": "^7.10.4", | ||
"@changesets/git": "^1.4.1", | ||
"@changesets/git": "^1.5.0", | ||
"@changesets/logger": "^0.0.5", | ||
"@changesets/parse": "^0.3.14", | ||
"@changesets/types": "^5.1.0", | ||
"@changesets/parse": "^0.3.15", | ||
"@changesets/types": "^5.2.0", | ||
"chalk": "^2.1.0", | ||
@@ -17,0 +17,0 @@ "fs-extra": "^7.0.1", |
@@ -20,4 +20,4 @@ import fixtures from "fixturez"; | ||
summary: "Nice simple summary", | ||
id: "basic-changeset" | ||
} | ||
id: "basic-changeset", | ||
}, | ||
]); | ||
@@ -33,4 +33,4 @@ }); | ||
summary: "Nice simple summary", | ||
id: "basic-changeset" | ||
} | ||
id: "basic-changeset", | ||
}, | ||
]); | ||
@@ -48,4 +48,4 @@ }); | ||
summary: "Nice simple summary", | ||
id: "basic-changeset" | ||
} | ||
id: "basic-changeset", | ||
}, | ||
]); | ||
@@ -61,3 +61,3 @@ }); | ||
summary: "Nice simple summary", | ||
id: "first-changeset" | ||
id: "first-changeset", | ||
}, | ||
@@ -68,4 +68,4 @@ { | ||
"I'm amazed we needed to update the best package, because it was already the best", | ||
id: "second-changeset" | ||
} | ||
id: "second-changeset", | ||
}, | ||
]); | ||
@@ -113,4 +113,4 @@ }); | ||
summary: "", | ||
id: "empty-changeset" | ||
} | ||
id: "empty-changeset", | ||
}, | ||
]); | ||
@@ -126,6 +126,6 @@ }); | ||
summary: "Nice simple summary, much wow", | ||
id: "changesets-are-beautiful" | ||
} | ||
id: "changesets-are-beautiful", | ||
}, | ||
]); | ||
}); | ||
}); |
@@ -15,7 +15,7 @@ import fs from "fs-extra"; | ||
cwd: changesetBase, | ||
ref: sinceRef | ||
ref: sinceRef, | ||
}); | ||
const newHashes = newChangesets.map(c => c.split("/")[1]); | ||
const newHashes = newChangesets.map((c) => c.split("/")[1]); | ||
return changesets.filter(dir => newHashes.includes(dir)); | ||
return changesets.filter((dir) => newHashes.includes(dir)); | ||
} | ||
@@ -49,7 +49,7 @@ | ||
let changesets = contents.filter( | ||
file => | ||
(file) => | ||
!file.startsWith(".") && file.endsWith(".md") && file !== "README.md" | ||
); | ||
const changesetContents = changesets.map(async file => { | ||
const changesetContents = changesets.map(async (file) => { | ||
const changeset = await fs.readFile( | ||
@@ -64,4 +64,4 @@ path.join(changesetBase, file), | ||
...(await oldChangesetsPromise), | ||
...(await Promise.all(changesetContents)) | ||
...(await Promise.all(changesetContents)), | ||
]; | ||
} |
@@ -23,7 +23,7 @@ import chalk from "chalk"; | ||
// this needs to support just not dealing with dirs that aren't set up properly | ||
let changesets = await pFilter(dirs, async dir => | ||
let changesets = await pFilter(dirs, async (dir) => | ||
(await fs.lstat(path.join(changesetBase, dir))).isDirectory() | ||
); | ||
const changesetContents = changesets.map(async changesetDir => { | ||
const changesetContents = changesets.map(async (changesetDir) => { | ||
const jsonPath = path.join(changesetBase, changesetDir, "changes.json"); | ||
@@ -36,3 +36,3 @@ | ||
), | ||
fs.readJson(jsonPath) | ||
fs.readJson(jsonPath), | ||
]); | ||
@@ -39,0 +39,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32833
Updated@changesets/git@^1.5.0
Updated@changesets/parse@^0.3.15
Updated@changesets/types@^5.2.0