@changesets/changelog-git
Advanced tools
Comparing version 0.1.6 to 0.1.7
# @changesets/changelog-git | ||
## 0.1.7 | ||
### Patch Changes | ||
- Updated dependencies [[`de2b4a5`](https://github.com/atlassian/changesets/commit/de2b4a5a7b244a37d94625bcb70ecde9dde5b612)]: | ||
- @changesets/types@4.0.0 | ||
## 0.1.6 | ||
@@ -4,0 +11,0 @@ |
@@ -8,9 +8,9 @@ "use strict"; | ||
const getReleaseLine = async (changeset, _type) => { | ||
const [firstLine, ...futureLines] = changeset.summary.split("\n").map(l => l.trimRight()); | ||
let returnVal = `- ${changeset.commit ? `${changeset.commit}: ` : ""}${firstLine}`; | ||
return futureLines.length > 0 && (returnVal += `\n${futureLines.map(l => ` ${l}`).join("\n")}`), | ||
const [firstLine, ...futureLines] = changeset.summary.split("\n").map((l => l.trimRight())); | ||
let returnVal = `- ${changeset.commit ? changeset.commit + ": " : ""}${firstLine}`; | ||
return futureLines.length > 0 && (returnVal += "\n" + futureLines.map((l => " " + l)).join("\n")), | ||
returnVal; | ||
}, getDependencyReleaseLine = async (changesets, dependenciesUpdated) => { | ||
if (0 === dependenciesUpdated.length) return ""; | ||
return [ ...changesets.map(changeset => `- Updated dependencies [${changeset.commit}]`), ...dependenciesUpdated.map(dependency => ` - ${dependency.name}@${dependency.newVersion}`) ].join("\n"); | ||
return [ ...changesets.map((changeset => `- Updated dependencies [${changeset.commit}]`)), ...dependenciesUpdated.map((dependency => ` - ${dependency.name}@${dependency.newVersion}`)) ].join("\n"); | ||
}, defaultChangelogFunctions = { | ||
@@ -17,0 +17,0 @@ getReleaseLine: getReleaseLine, |
{ | ||
"name": "@changesets/changelog-git", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A changelog entry generator for git that writes hashes", | ||
@@ -8,6 +8,6 @@ "main": "dist/changelog-git.cjs.js", | ||
"license": "MIT", | ||
"repository": "https://github.com/changesets/changesets/tree/master/packages/changelog-git", | ||
"repository": "https://github.com/changesets/changesets/tree/main/packages/changelog-git", | ||
"dependencies": { | ||
"@changesets/types": "^3.0.0" | ||
"@changesets/types": "^4.0.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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
7217
+ Added@changesets/types@4.1.0(transitive)
- Removed@changesets/types@3.3.0(transitive)
Updated@changesets/types@^4.0.0