@changesets/parse
Advanced tools
Comparing version 0.3.14 to 0.3.15
# @changesets/parse | ||
## 0.3.15 | ||
### Patch Changes | ||
- Updated dependencies [[`8c08469`](https://github.com/changesets/changesets/commit/8c0846977597ddaf51aaeb35f1f0f9428bf8ba14)]: | ||
- @changesets/types@5.2.0 | ||
## 0.3.14 | ||
@@ -117,5 +124,5 @@ | ||
* [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, 1ff73b7]: | ||
- Updated dependencies [8c43fa0, 1ff73b7]: | ||
- @changesets/types@0.3.0 | ||
@@ -122,0 +129,0 @@ |
{ | ||
"name": "@changesets/parse", | ||
"version": "0.3.14", | ||
"version": "0.3.15", | ||
"description": "Parse a changeset file's contents into a usable json object", | ||
@@ -10,3 +10,3 @@ "main": "dist/parse.cjs.js", | ||
"dependencies": { | ||
"@changesets/types": "^5.1.0", | ||
"@changesets/types": "^5.2.0", | ||
"js-yaml": "^3.13.1" | ||
@@ -13,0 +13,0 @@ }, |
@@ -17,3 +17,3 @@ import outdent from "outdent"; | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -36,5 +36,5 @@ }); | ||
{ name: "cool-package2", type: "major" }, | ||
{ name: "cool-package3", type: "patch" } | ||
{ name: "cool-package3", type: "patch" }, | ||
], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -53,3 +53,3 @@ }); | ||
releases: [{ name: "@cool/package", type: "minor" }], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -78,3 +78,3 @@ }); | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: expectedSummary | ||
summary: expectedSummary, | ||
}); | ||
@@ -105,5 +105,5 @@ }); | ||
{ name: "cool-package", type: "minor" }, | ||
{ name: "best-package", type: "patch" } | ||
{ name: "best-package", type: "patch" }, | ||
], | ||
summary: expectedSummary | ||
summary: expectedSummary, | ||
}); | ||
@@ -122,3 +122,3 @@ }); | ||
releases: [{ name: "cool---package", type: "minor" }], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -142,3 +142,3 @@ }); | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: expectedSummary | ||
summary: expectedSummary, | ||
}); | ||
@@ -154,3 +154,3 @@ }); | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: "" | ||
summary: "", | ||
}); | ||
@@ -166,3 +166,3 @@ }); | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: "" | ||
summary: "", | ||
}); | ||
@@ -179,3 +179,3 @@ }); | ||
releases: [], | ||
summary: "" | ||
summary: "", | ||
}); | ||
@@ -187,3 +187,3 @@ }); | ||
releases: [], | ||
summary: "" | ||
summary: "", | ||
}); | ||
@@ -204,3 +204,3 @@ }); | ||
releases: [{ name: "cool-package", type: "minor" }], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -223,5 +223,5 @@ }); | ||
{ name: "cool-package", type: "minor" }, | ||
{ name: "best-package", type: "patch" } | ||
{ name: "best-package", type: "patch" }, | ||
], | ||
summary: "Nice simple summary" | ||
summary: "Nice simple summary", | ||
}); | ||
@@ -228,0 +228,0 @@ }); |
@@ -6,5 +6,3 @@ import yaml from "js-yaml"; | ||
export default function parseChangesetFile( | ||
contents: string | ||
): { | ||
export default function parseChangesetFile(contents: string): { | ||
summary: string; | ||
@@ -24,9 +22,8 @@ releases: Release[]; | ||
try { | ||
const yamlStuff: { [key: string]: VersionType } = yaml.safeLoad( | ||
roughReleases | ||
); | ||
const yamlStuff: { [key: string]: VersionType } = | ||
yaml.safeLoad(roughReleases); | ||
if (yamlStuff) { | ||
releases = Object.entries(yamlStuff).map(([name, type]) => ({ | ||
name, | ||
type | ||
type, | ||
})); | ||
@@ -33,0 +30,0 @@ } else { |
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
18175
347
Updated@changesets/types@^5.2.0